Skip to contentSkip to conversation

[2.5 patch]

PATCH New Adrian Bunk 1 participant 1 message Jun 18, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 [2.5 patch]

Burton Windle sent a patch that does the following (slightly reformatted by me) in Bugzilla #142:

scripts/ver_linux renamed from scripts/ver_linux.old +2 -1
@@ -61,7 +61,8 @@
 ls -l /usr/lib/lib{g,stdc}++.so  2>/dev/null | awk -F. \
        '{print "Linux C++ Library      " $4"."$5"."$6}'
 
-ps --version 2>&1 | awk 'NR==1{print "Procps                ", $NF}'
+ps --version 2>&1 | grep version | awk \
+'NR==1{print "Procps                ", $NF}'
 
 ifconfig --version 2>&1 | grep tools | awk \
 'NR==1{print "Net-tools             ", $NF}'

Explanation by Burton (from Bugzilla) follows below.

Please apply
Adrian

<-- snip -->

With the current 2.5 Linux kernel, the ver_linux script prints bad version
info for the Procps line:

Procps 100.

Steps to reproduce:
This is because

razor:/giant/linux/scripts# ps --version
Unknown HZ value! (85) Assume 100.
procps version 2.0.7
razor:/giant/linux/scripts# ps --version 2>&1 | awk 'NR==1
{print "Procps         , $NF}'
Procps                 100.

<-- snip -->