Hello community,

here is the log from the commit of package kinfocenter5 for openSUSE:Factory 
checked in at 2019-05-03 22:21:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kinfocenter5 (Old)
 and      /work/SRC/openSUSE:Factory/.kinfocenter5.new.5148 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kinfocenter5"

Fri May  3 22:21:57 2019 rev:84 rq:699565 version:5.15.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/kinfocenter5/kinfocenter5.changes        
2019-04-04 15:23:19.626806404 +0200
+++ /work/SRC/openSUSE:Factory/.kinfocenter5.new.5148/kinfocenter5.changes      
2019-05-03 22:22:00.980658644 +0200
@@ -1,0 +2,7 @@
+Tue Apr 30 05:15:51 UTC 2019 - wba...@tmo.at
+
+- Add Correctly-show-mem-size-over-4GiB-on-32bit.patch to fix wrong
+  display of RAM size on a 32bit system if there is more than 4 GiB
+  (boo#1131826, kde#406351)
+
+-------------------------------------------------------------------

New:
----
  Correctly-show-mem-size-over-4GiB-on-32bit.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ kinfocenter5.spec ++++++
--- /var/tmp/diff_new_pack.DwBbdC/_old  2019-05-03 22:22:01.616659935 +0200
+++ /var/tmp/diff_new_pack.DwBbdC/_new  2019-05-03 22:22:01.616659935 +0200
@@ -37,6 +37,8 @@
 %endif
 # PATCH-FIX-OPENSUSE plasma-session-name.patch
 Patch0:         plasma-session-name.patch
+# PATCH-FIX-UPSTREAM
+Patch1:         Correctly-show-mem-size-over-4GiB-on-32bit.patch
 BuildRequires:  extra-cmake-modules >= 1.2.0
 BuildRequires:  kf5-filesystem
 BuildRequires:  libraw1394-devel
@@ -86,7 +88,7 @@
 %lang_package
 %prep
 %setup -q -n kinfocenter-%{version}
-%patch0 -p1
+%autopatch -p1
 
 %build
   %cmake_kf5 -d build -- -DCMAKE_INSTALL_LOCALEDIR=%{_kf5_localedir}

++++++ Correctly-show-mem-size-over-4GiB-on-32bit.patch ++++++
>From 10d60170eaa46c3e4233c4eef966418d0065754d Mon Sep 17 00:00:00 2001
From: Christoph Feck <cf...@kde.org>
Date: Tue, 30 Apr 2019 00:55:12 +0200
Subject: Correctly show memory sizes > 4 GiB on 32 bit Linux

BUG: 406351
FIXED-IN: 5.16.0

Differential Revision: https://phabricator.kde.org/D20828
---
 Modules/about-distro/src/Module.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Modules/about-distro/src/Module.cpp 
b/Modules/about-distro/src/Module.cpp
index 56358cd..b4bc67e 100644
--- a/Modules/about-distro/src/Module.cpp
+++ b/Modules/about-distro/src/Module.cpp
@@ -56,7 +56,7 @@ static qlonglong calculateTotalRam()
     struct sysinfo info;
     if (sysinfo(&info) == 0)
         // manpage "sizes are given as multiples of mem_unit bytes"
-        ret = info.totalram * info.mem_unit;
+        ret = qlonglong(info.totalram) * info.mem_unit;
 #elif defined(Q_OS_FREEBSD)
     /* Stuff for sysctl */
     size_t len;
-- 
cgit v1.1




Reply via email to