scripts/ver_linux use 'gcc -dumpversion'
PATCH 1/1 scripts/ver_linux use 'gcc -dumpversion'
These magic greps and hacks in ver_linux to get the gcc version always break after some gcc releases.
Since now gcc >4.3 allows compiling with '--with-pkgversion' ( which can be everything 'My Cool Gcc' or something ) ver_linux will report random junk for these.
Simply use 'gcc -dumpversion' to get the gcc version which should always work.
---
Andrew sorry to bug you about that but
I have no clue how is maintaining scripts/*
scripts/ver_linux | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-)
scripts/ver_linux +1 -4
@@ -12,12 +12,9 @@ echo ' ' uname -a echo ' ' -gcc --version 2>&1| head -n 1 | grep -v gcc | awk \ +gcc -dumpversion 2>&1| awk \ 'NR==1{print "Gnu C ", $1}' -gcc --version 2>&1| grep gcc | awk \ -'NR==1{print "Gnu C ", $3}' - make --version 2>&1 | awk -F, '{print $1}' | awk \ '/GNU Make/{print "Gnu make ",$NF}'
Quoted 5 lines · On Wed, 21 May 2008 20:36:19 +0200 Gabriel C <[email protected]> wrote:
These magic greps and hacks in
ver_linuxto get the gcc version always break after some gcc releases.Since now gcc >4.3 allows compiling with '--with-pkgversion' ( which can be everything 'My Cool Gcc' or something )
ver_linuxwill report random junk for these.
gcc sometimes looks like an anti-Linux plot.
Quoted 7 lines
Simply use 'gcc -dumpversion' to get the gcc version which should always work.
Signed-off-by Gabriel C <[email protected]>---
Andrew sorry to bug you about that but
I have no clue how is maintainingscripts/*
Depends on the script, really. Most of them are Sam stuff.
Quoted 10 lines
scripts/ver_linux | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-)scripts/ver_linux +0
-0@@ -12,12 +12,9 @@ echo ' ' uname -a echo ' '
scripts/ver_linux echo ' ' · line 19
Quoted 10 lines
scripts/ver_linux +1
-4-gcc --version 2>&1| head -n 1 | grep -v gcc | awk \ +gcc -dumpversion 2>&1| awk \ 'NR==1{print "Gnu C ", $1}' -gcc --version 2>&1| grep gcc | awk \ -'NR==1{print "Gnu C ", $3}' - make --version 2>&1 | awk -F, '{print $1}' | awk \ '/GNU Make/{print "Gnu make ",$NF}'
including this one, I believe.