From: Jesper Juhl Currently scripts/ver_linux prints "Binutils" or other random information for the version number in the "binutils" output line on some distributions. This patch corrects that. Signed-off-by: Jesper Juhl Signed-off-by: Andrew Morton --- scripts/ver_linux | 4 +--- 1 files changed, 1 insertion(+), 3 deletions(-) diff -puN scripts/ver_linux~scripts-ver_linux-correct-printing-of-binutils-version scripts/ver_linux --- a/scripts/ver_linux~scripts-ver_linux-correct-printing-of-binutils-version +++ a/scripts/ver_linux @@ -21,9 +21,7 @@ gcc --version 2>&1| grep gcc | awk \ make --version 2>&1 | awk -F, '{print $1}' | awk \ '/GNU Make/{print "Gnu make ",$NF}' -ld -v | awk -F\) '{print $1}' | awk \ -'/BFD/{print "binutils ",$NF} \ -/^GNU/{print "binutils ",$4}' +echo "binutils $(ld -v | egrep -o '[0-9]+\.[0-9\.]+')" echo -n "util-linux " fdformat --version | awk '{print $NF}' | sed -e s/^util-linux-// -e s/\)$// _