CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
procps: Added patch to fix priorities and avoid HZ messages. (Thank you Tilman)
authorVictor Martinez <pitillo@ono.com>
Sat, 26 Jun 2010 14:41:50 +0000 (14:41 +0000)
committerVictor Martinez <pitillo@ono.com>
Sat, 26 Jun 2010 14:41:50 +0000 (14:41 +0000)
procps/.md5sum
procps/Pkgfile
procps/procps-3.2.8-priorities.patch [new file with mode: 0644]

index 01364b352165051d9a7a6bcadc3d0ea72dc2e53f..a1ebaf61427c231e272e91c776b9394dad3d2d85 100644 (file)
@@ -1,2 +1,3 @@
+710451091fad30aa12d0d6fe40b327ae  procps-3.2.8-priorities.patch
 9532714b6846013ca9898984ba4cd7e0  procps-3.2.8.tar.gz
 9875c218e1b14bee8f9f5800403a8a24  sysctl.conf
index c397ad0ff5ee7ef019037721c62944364305c28c..05d5ec56972ebf0af99152f369a26894c1e93f74 100644 (file)
@@ -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 (file)
index 0000000..07d27ef
--- /dev/null
@@ -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 */