History

kbuild: ver_linux fix glibc version print

Fix ver_linux glibc version printing (for real this time) Alexey Dobriyan reported that commit 4a645d5ea65baaa5736bcb566673bf4a351b2ad8 broke ver_linux when glibc has a 3 digit version number, and proposed a patch. Al Viro then suggested a simpler way to solve the problem which I've then simply put into patch form.

Jesper Juhl committed 19 years ago

Commit 9cc3ef31 parent de470621 file · +2 −3Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/ver_linux+2−3
@@ -65,9 +65,8 @@ isdnctrl 2>&1 | grep version | awk \ · 64 unmodified lines
6565 showmount --version 2>&1 | grep nfs-utils | awk \
6666 'NR==1{print "nfs-utils ", $NF}'
6767
68−ls -l `ldd /bin/sh | awk '/libc/{print $3}'` | sed \
69−-e 's/\.so$//' | sed -e 's/>//' | \
70−awk -F'[.-]' '{print "Linux C Library "$(NF-1)"."$NF}'
68+echo -n "Linux C Library "
69+sed -n -e '/^.*\/libc-\([^/]*\)\.so$/{s//\1/;p;q}' < /proc/self/maps
7170
7271 ldd -v > /dev/null 2>&1 && ldd -v || ldd --version |head -n 1 | awk \
7372 'NR==1{print "Dynamic linker (ldd) ", $NF}'

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t