From: Victor Martinez Date: Sat, 26 Jun 2010 14:41:50 +0000 (+0000) Subject: procps: Added patch to fix priorities and avoid HZ messages. (Thank you Tilman) X-Git-Url: http://gitweb/?a=commitdiff_plain;h=1414c7e3138bd9ac1440ed9f2d79e2514d251afd;p=crossrootfs.git procps: Added patch to fix priorities and avoid HZ messages. (Thank you Tilman) --- diff --git a/procps/.md5sum b/procps/.md5sum index 01364b3..a1ebaf6 100644 --- a/procps/.md5sum +++ b/procps/.md5sum @@ -1,2 +1,3 @@ +710451091fad30aa12d0d6fe40b327ae procps-3.2.8-priorities.patch 9532714b6846013ca9898984ba4cd7e0 procps-3.2.8.tar.gz 9875c218e1b14bee8f9f5800403a8a24 sysctl.conf diff --git a/procps/Pkgfile b/procps/Pkgfile index c397ad0..05d5ec5 100644 --- a/procps/Pkgfile +++ b/procps/Pkgfile @@ -6,13 +6,14 @@ name=procps version=3.2.8 -release=1 +release=2 source=(http://procps.sourceforge.net/$name-$version.tar.gz \ - sysctl.conf) + sysctl.conf \ + procps-3.2.8-priorities.patch) build() { cd $name-$version - + patch -p1 -i $SRC/procps-3.2.8-priorities.patch make make DESTDIR=$PKG \ ldconfig=true \ diff --git a/procps/procps-3.2.8-priorities.patch b/procps/procps-3.2.8-priorities.patch new file mode 100644 index 0000000..07d27ef --- /dev/null +++ b/procps/procps-3.2.8-priorities.patch @@ -0,0 +1,36 @@ +diff -aur procps-3.2.8.orig/proc/sig.c procps-3.2.8/proc/sig.c +--- procps-3.2.8.orig/proc/sig.c 2003-03-19 01:52:39.000000000 +0100 ++++ procps-3.2.8/proc/sig.c 2010-06-25 20:39:06.081194787 +0200 +@@ -231,7 +231,7 @@ + } + + /* sanity check */ +-static int init_signal_list(void) __attribute__((constructor)); ++static int init_signal_list(void) __attribute__((constructor(0))); + static int init_signal_list(void){ + if(number_of_signals != 31){ + fprintf(stderr, "WARNING: %d signals -- adjust and recompile.\n", number_of_signals); +diff -aur procps-3.2.8.orig/proc/sysinfo.c procps-3.2.8/proc/sysinfo.c +--- procps-3.2.8.orig/proc/sysinfo.c 2008-03-24 05:33:43.000000000 +0100 ++++ procps-3.2.8/proc/sysinfo.c 2010-06-25 20:41:33.254192147 +0200 +@@ -209,7 +209,7 @@ + return !!rc; + } + +-static void init_libproc(void) __attribute__((constructor)); ++static void init_libproc(void) __attribute__((constructor(2))); + static void init_libproc(void){ + have_privs = check_for_privs(); + // ought to count CPUs in /proc/stat instead of relying +diff -aur procps-3.2.8.orig/proc/version.c procps-3.2.8/proc/version.c +--- procps-3.2.8.orig/proc/version.c 2003-01-29 02:11:43.000000000 +0100 ++++ procps-3.2.8/proc/version.c 2010-06-25 20:39:12.126192267 +0200 +@@ -33,7 +33,7 @@ + + int linux_version_code; + +-static void init_Linux_version(void) __attribute__((constructor)); ++static void init_Linux_version(void) __attribute__((constructor(1))); + static void init_Linux_version(void) { + static struct utsname uts; + int x = 0, y = 0, z = 0; /* cleared in case sscanf() < 3 */