Bug#738280: gnome-system-monitor: Fix FTBFS on hurd-i386
Samuel Thibault
sthibault at debian.org
Sat Feb 8 21:17:20 UTC 2014
Package: gnome-system-monitor
Version: 3.8.2.1-2
Severity: important
Tags: patch
User: debian-hurd at lists.debian.org
Usertags: hurd
Hello,
The attached patch makes gnome-system-monitor build on hurd-i386, could
you apply it?
Thanks,
Samuel
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.13.0 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages gnome-system-monitor depends on:
ii dconf-gsettings-backend [gsettings-backend] 0.18.0-1
ii libc6 2.17-97
ii libcairo2 1.12.16-2
ii libgcc1 1:4.8.2-14
ii libgdk-pixbuf2.0-0 2.28.2-1+b1
ii libglib2.0-0 2.36.4-1
ii libglibmm-2.4-1c2a 2.36.2-1
ii libgtk-3-0 3.8.6-1
ii libgtkmm-3.0-1 3.8.1-1
ii libgtop2-7 2.28.5-2
ii libpango-1.0-0 1.36.0-1+b1
ii libpangocairo-1.0-0 1.36.0-1+b1
ii librsvg2-2 2.40.0-1
ii libsigc++-2.0-0c2a 2.2.10-0.2
ii libstdc++6 4.8.2-14
ii libwnck-3-0 3.4.7-1
Versions of packages gnome-system-monitor recommends:
ii gvfs 1.16.3-2
gnome-system-monitor suggests no packages.
-- no debconf information
--
Samuel
<c> hiri, le cri ici, c des marrants
<c> j'ai un rep ".uglyhackdirectorywithoutacls" ds mon home
-+- #ens-mim en stage -+-
-------------- next part --------------
--- gnome-system-monitor-3.8.2.1/src/procproperties.cpp.original 2014-02-08 21:09:08.000000000 +0000
+++ gnome-system-monitor-3.8.2.1/src/procproperties.cpp 2014-02-08 21:12:12.000000000 +0000
@@ -125,6 +125,12 @@
else
HZ = (cinf.stathz ? cinf.stathz : cinf.hz);
#endif
+#ifdef __GNU__
+ int HZ;
+ HZ = sysconf(_SC_CLK_TCK);
+ if (HZ < 0)
+ HZ = 100;
+#endif
proc_arg proc_props[] = {
{ N_("Process Name"), g_strdup_printf("%s", info->name)},
{ N_("User"), g_strdup_printf("%s (%d)", info->user.c_str(), info->uid)},
More information about the pkg-gnome-maintainers
mailing list