From 1e1645c4d4f56cad96baa7ae2a5a8bc71f853a20 Mon Sep 17 00:00:00 2001 From: albert <> Date: Mon, 14 Oct 2002 07:53:08 +0000 Subject: [PATCH] first 3.0.4 thing: ELF note warning --- Makefile | 6 +++--- Makefile.noam | 2 +- NEWS | 4 ++++ proc/sysinfo.c | 9 ++++++--- procps.lsm | 8 ++++---- procps.spec | 2 +- 6 files changed, 19 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index cb2e1123..fe0d8742 100644 --- a/Makefile +++ b/Makefile @@ -18,9 +18,9 @@ VERSION := 3 SUBVERSION := 0 -MINORVERSION := 3 -TARVERSION := 3.0.3 -LIBVERSION := 3.0.3 +MINORVERSION := 4 +TARVERSION := 3.0.4 +LIBVERSION := 3.0.4 ############ vars diff --git a/Makefile.noam b/Makefile.noam index f90caceb..486d310f 100644 --- a/Makefile.noam +++ b/Makefile.noam @@ -106,7 +106,7 @@ MINORVERSION = $(shell awk '/^%define revision/ { print $$3 }' < procps.spec) # Note: LIBVERSION may be less than $(VERSION).$(SUBVERSION).$(MINORVERSION) # LIBVERSION is only set to current $(VERSION).$(SUBVERSION).$(MINORVERSION) # when an incompatible change is made in libproc. -LIBVERSION = 3.0.3 +LIBVERSION = 3.0.4 ifdef MINORVERSION LIBPROCPASS = SHARED=$(SHARED) SHLIBDIR=$(SHLIBDIR) VERSION=$(VERSION) SUBVERSION=$(SUBVERSION) MINORVERSION=$(MINORVERSION) LIBVERSION=$(LIBVERSION) else diff --git a/NEWS b/NEWS index e733f901..e674ec33 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,7 @@ +procps-3.0.3 --> procps-3.0.4 + +only Linux 2.4.0 supply the ELF note + procps-3.0.2 --> procps-3.0.3 more "make install" fixes diff --git a/proc/sysinfo.c b/proc/sysinfo.c index 36e4040d..8b8b4665 100644 --- a/proc/sysinfo.c +++ b/proc/sysinfo.c @@ -127,7 +127,6 @@ static void old_Hertz_hack(void){ unsigned h; char *savelocale; - fprintf(stderr, "ELF note not found - report to albert@users.sf.net\n"); savelocale = setlocale(LC_NUMERIC, NULL); setlocale(LC_NUMERIC, "C"); do{ @@ -195,8 +194,12 @@ static void init_libproc(void){ smp_num_cpus = sysconf(_SC_NPROCESSORS_CONF); // or _SC_NPROCESSORS_ONLN if(smp_num_cpus<1) smp_num_cpus=1; /* SPARC glibc is buggy */ - Hertz = find_elf_note(AT_CLKTCK); - if(Hertz==42) old_Hertz_hack(); + if(linux_version_code > LINUX_VERSION(2, 4, 0)){ + Hertz = find_elf_note(AT_CLKTCK); + if(Hertz!=42) return; + fprintf(stderr, "2.4 kernel w/o ELF notes? -- report to albert@users.sf.net\n"); + } + old_Hertz_hack(); } /*********************************************************************** diff --git a/procps.lsm b/procps.lsm index daf4f25a..4696f537 100644 --- a/procps.lsm +++ b/procps.lsm @@ -1,15 +1,15 @@ Begin4 Title: procps -Version: 3.0.3 -Entered-date: 2002-10-14 +Version: 3.0.4 +Entered-date: 2002-10-15 Description: Linux system utilities Keywords: procps /proc libproc sysctl ps uptime tload free w top vmstat watch skill snice kill pgrep pkill Author: Albert Cahalan, Michael K. Johnson, Jim Warner, etc. Maintained-by: various Primary-site: http://procps.sf.net/ - 230kB procps-3.0.3.tar.gz + 230kB procps-3.0.4.tar.gz Alternate-site: http://www.debian.org/Packages/unstable/base/procps.html - 230kB procps-3.0.3.tar.gz + 230kB procps-3.0.4.tar.gz Copying-policy: mixed End diff --git a/procps.spec b/procps.spec index 3bd93506..a94c1910 100644 --- a/procps.spec +++ b/procps.spec @@ -2,7 +2,7 @@ Summary: Utilities for monitoring your system and processes on your system. Name: procps %define major_version 3 %define minor_version 0 -%define revision 3 +%define revision 4 %define version %{major_version}.%{minor_version}.%{revision} Version: %{version} Release: 1