Commit 9cc3ef30 authored by Jesper Juhl's avatar Jesper Juhl Committed by Sam Ravnborg

kbuild: ver_linux fix glibc version print

Fix ver_linux glibc version printing (for real this time)

Alexey Dobriyan reported that commit
4a645d5e
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.
Signed-off-by: default avatarAlexey Dobriyan <adobriyan@sw.ru>
Signed-off-by: default avatarAl Viro <viro@ftp.linux.org.uk>
Signed-off-by: default avatarJesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent de47062a
...@@ -65,9 +65,8 @@ isdnctrl 2>&1 | grep version | awk \ ...@@ -65,9 +65,8 @@ isdnctrl 2>&1 | grep version | awk \
showmount --version 2>&1 | grep nfs-utils | awk \ showmount --version 2>&1 | grep nfs-utils | awk \
'NR==1{print "nfs-utils ", $NF}' 'NR==1{print "nfs-utils ", $NF}'
ls -l `ldd /bin/sh | awk '/libc/{print $3}'` | sed \ echo -n "Linux C Library "
-e 's/\.so$//' | sed -e 's/>//' | \ sed -n -e '/^.*\/libc-\([^/]*\)\.so$/{s//\1/;p;q}' < /proc/self/maps
awk -F'[.-]' '{print "Linux C Library "$(NF-1)"."$NF}'
ldd -v > /dev/null 2>&1 && ldd -v || ldd --version |head -n 1 | awk \ ldd -v > /dev/null 2>&1 && ldd -v || ldd --version |head -n 1 | awk \
'NR==1{print "Dynamic linker (ldd) ", $NF}' 'NR==1{print "Dynamic linker (ldd) ", $NF}'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment