lkml.org 
[lkml]   [2003]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[2.5 patch]
Burton Windle sent a patch that does the following (slightly reformatted 
by me) in Bugzilla #142:


--- linux-2.5.72/scripts/ver_linux.old 2003-06-19 01:26:24.000000000 +0200
+++ linux-2.5.72/scripts/ver_linux 2003-06-19 01:27:53.000000000 +0200
@@ -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 -->


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.015 / U:19.512 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site