mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-11 09:48:24 +02:00
procps: Update to 3.2.8
For details see: http://procps.sourceforge.net/changelog.html Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
bb91c2f744
commit
15f37d7738
35
src/patches/procps-3.2.8-fix_unknown_HZ_value.patch
Normal file
35
src/patches/procps-3.2.8-fix_unknown_HZ_value.patch
Normal file
@@ -0,0 +1,35 @@
|
||||
diff -Naur procps-3.2.6.org/proc/sysinfo.c procps-3.2.6/proc/sysinfo.c
|
||||
--- procps-3.2.6.org/proc/sysinfo.c 2005-03-14 05:31:27.000000000 +0100
|
||||
+++ procps-3.2.6/proc/sysinfo.c 2011-10-02 12:51:32.000000000 +0200
|
||||
@@ -212,6 +212,7 @@
|
||||
static void init_libproc(void) __attribute__((constructor));
|
||||
static void init_libproc(void){
|
||||
have_privs = check_for_privs();
|
||||
+ init_Linux_version();
|
||||
// ought to count CPUs in /proc/stat instead of relying
|
||||
// on glibc, which foolishly tries to parse /proc/cpuinfo
|
||||
//
|
||||
diff -Naur procps-3.2.6.org/proc/version.c procps-3.2.6/proc/version.c
|
||||
--- procps-3.2.6.org/proc/version.c 2003-01-29 02:11:43.000000000 +0100
|
||||
+++ procps-3.2.6/proc/version.c 2011-10-02 12:52:36.000000000 +0200
|
||||
@@ -33,8 +33,7 @@
|
||||
|
||||
int linux_version_code;
|
||||
|
||||
-static void init_Linux_version(void) __attribute__((constructor));
|
||||
-static void init_Linux_version(void) {
|
||||
+void init_Linux_version(void) {
|
||||
static struct utsname uts;
|
||||
int x = 0, y = 0, z = 0; /* cleared in case sscanf() < 3 */
|
||||
|
||||
diff -Naur procps-3.2.6.org/proc/version.h procps-3.2.6/proc/version.h
|
||||
--- procps-3.2.6.org/proc/version.h 2002-12-15 01:08:32.000000000 +0100
|
||||
+++ procps-3.2.6/proc/version.h 2011-10-02 12:53:10.000000000 +0200
|
||||
@@ -14,6 +14,7 @@
|
||||
|
||||
EXTERN_C_BEGIN
|
||||
|
||||
+extern void init_Linux_version(void);
|
||||
extern void display_version(void); /* display suite version */
|
||||
extern const char procps_version[]; /* global buf for suite version */
|
||||
|
||||
Reference in New Issue
Block a user