I have uploaded a NMU of lxtask to fix the reporting of -1% CPU on some
kernels to delayed/10. I also removed Daniel Baumann from uploaders per
his request.
Please tell me if you have any problems with this upload so that I can
change or cancel it.
diff -Nru lxtask-0.1.4/debian/changelog lxtask-0.1.4/debian/changelog
--- lxtask-0.1.4/debian/changelog 2012-05-18 18:26:05.000000000 +0100
+++ lxtask-0.1.4/debian/changelog 2013-05-08 00:17:01.000000000 +0100
@@ -1,3 +1,12 @@
+lxtask (0.1.4-3.1) unstable; urgency=low
+
+ * Use nprocs function instead of trying to parse /proc/cpuinfo
+ (closes: #705506)
+ * Remove Daniel Baumann from uploaders at his own request.
+ (closes: #704350)
+
+ -- Peter Michael Green <plugw...@debian.org> Tue, 07 May 2013 23:03:27 +0000
+
lxtask (0.1.4-3) unstable; urgency=low
* Correcting spelling of lxtask in package long description.
diff -Nru lxtask-0.1.4/debian/control lxtask-0.1.4/debian/control
--- lxtask-0.1.4/debian/control 2012-05-18 18:24:57.000000000 +0100
+++ lxtask-0.1.4/debian/control 2013-05-08 00:05:41.000000000 +0100
@@ -4,7 +4,7 @@
Maintainer: Debian LXDE Maintainers <lxde-deb...@lists.lxde.org>
Uploaders:
Andrew Lee (æå¥ç§) <ajq...@debian.org>,
- Nikolas Poniros <edhun...@sidux.com>, Daniel Baumann <dan...@debian.org>
+ Nikolas Poniros <edhun...@sidux.com>
Build-Depends:
debhelper (>= 9), autotools-dev, intltool, libglib2.0-dev, libgtk2.0-dev
Standards-Version: 3.9.3
diff -Nru lxtask-0.1.4/debian/patches/02-use-nprocs.patch
lxtask-0.1.4/debian/patches/02-use-nprocs.patch
--- lxtask-0.1.4/debian/patches/02-use-nprocs.patch 1970-01-01
01:00:00.000000000 +0100
+++ lxtask-0.1.4/debian/patches/02-use-nprocs.patch 2013-05-08
00:24:08.000000000 +0100
@@ -0,0 +1,39 @@
+Description: use nprocs() function instead of /proc/cpuinfo
+ /proc/cpuinfo varies a lot between architectures leading to the code
+ identifying zero CPUs on some systems and hence ending up reporting a cpu
+ usage of -1
+
+Author: Peter Michael Green <plugw...@debian.org>
+Bug-Raspbian: https://bugs.launchpad.net/raspbian/+bug/1128012
+Bug-Debian: http://bugs.debian.org/705506
+
+--- lxtask-0.1.4.orig/src/xfce-taskmanager-linux.c
++++ lxtask-0.1.4/src/xfce-taskmanager-linux.c
+@@ -28,7 +28,7 @@
+ #include <glib/gi18n.h>
+ #include <glib/gprintf.h>
+ #include "xfce-taskmanager-linux.h"
+-
++#include <sys/sysinfo.h>
+
+ #if 1
+ void get_task_details(gint pid,struct task *task)
+@@ -378,17 +378,7 @@ gboolean get_system_status (system_statu
+
+ if(!cpu_count)
+ {
+- file = fopen ("/proc/cpuinfo", "r");
+- if(!file) return FALSE;
+- while (fgets (buffer, 100, file) != NULL)
+- {
+- if(buffer[0]!='p') continue;
+- if(!strncmp(buffer,"processor",9))
+- {
+- cpu_count++;
+- }
+- }
+- fclose (file);
++ cpu_count=get_nprocs();
+ }
+ sys_stat->cpu_count=cpu_count;
+ return TRUE;
diff -Nru lxtask-0.1.4/debian/patches/series lxtask-0.1.4/debian/patches/series
--- lxtask-0.1.4/debian/patches/series 2012-04-28 11:05:34.000000000 +0100
+++ lxtask-0.1.4/debian/patches/series 2013-04-15 21:10:52.000000000 +0100
@@ -1 +1,2 @@
01-kfreebsd.patch
+02-use-nprocs.patch