diff --git a/deskutils/superkaramba/Makefile b/deskutils/superkaramba/Makefile index 7f2d5cc896ea..7af7ddf4fce4 100644 --- a/deskutils/superkaramba/Makefile +++ b/deskutils/superkaramba/Makefile @@ -2,6 +2,7 @@ PORTNAME= superkaramba PORTVERSION= ${KDE4_VERSION} +PORTREVISION= 1 CATEGORIES= deskutils kde MASTER_SITES= KDE/${KDE4_BRANCH}/${PORTVERSION}/src DIST_SUBDIR= KDE/${PORTVERSION} diff --git a/deskutils/superkaramba/files/patch-src_sensors_mem.cpp b/deskutils/superkaramba/files/patch-src_sensors_mem.cpp new file mode 100644 index 000000000000..9f13d0271925 --- /dev/null +++ b/deskutils/superkaramba/files/patch-src_sensors_mem.cpp @@ -0,0 +1,21 @@ +Use the right type to avoid overflows and negative values. +--- src/sensors/mem.cpp.orig 2014-09-14 14:15:59 UTC ++++ src/sensors/mem.cpp +@@ -97,7 +97,7 @@ void MemSensor::processExited(K3Process + int MemSensor::getMemTotal() + { + #if defined Q_OS_FREEBSD || defined(Q_OS_NETBSD) || defined(__DragonFly__) +- static int mem = 0; ++ static long mem = 0; + size_t size = sizeof(mem); + + sysctlbyname("hw.physmem", &mem, &size, NULL, 0); +@@ -136,7 +136,7 @@ int MemSensor::getMemFree() + int MemSensor::getBuffers() + { + #if defined(Q_OS_FREEBSD) || defined(__DragonFly__) +- static int mem = 0; ++ static long mem = 0; + size_t size = sizeof(mem); + + sysctlbyname("vfs.bufspace", &mem, &size, NULL, 0);