login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
22
Re: [PATCH] scripts/ver_linux use 'gcc -dumpversion'
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Andrew Morton <akpm@...>
To: Gabriel C <nix.or.die@...>
Cc: Linux Kernel list <linux-kernel@...>
Subject:
Re: [PATCH] scripts/ver_linux use 'gcc -dumpversion'
Date: Thursday, May 22, 2008 - 2:29 am
On Wed, 21 May 2008 20:36:19 +0200 Gabriel C <nix.or.die@googlemail.com> wrote:
quoted text
> > 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.
gcc sometimes looks like an anti-Linux plot.
quoted text
> Simply use 'gcc -dumpversion' to get the gcc version which should always work. > > Signed-off-by: Gabriel C <nix.or.die@googlemail.com> > --- > > Andrew sorry to bug you about that but > I have no clue how is maintaining scripts/*
Depends on the script, really. Most of them are Sam stuff.
quoted text
> scripts/ver_linux | 5 +---- > 1 files changed, 1 insertions(+), 4 deletions(-) > > diff --git a/scripts/ver_linux b/scripts/ver_linux > index ab69ece..7ac0e30 100755 > --- a/scripts/ver_linux > +++ b/scripts/ver_linux > @@ -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 ", }' > > -gcc --version 2>&1| grep gcc | awk \ > -'NR==1{print "Gnu C ", }' > - > make --version 2>&1 | awk -F, '{print }' | awk \ > '/GNU Make/{print "Gnu make ",$NF}'
including this one, I believe. --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH] scripts/ver_linux use 'gcc -dumpversion'
, Gabriel C
, (Wed May 21, 2:36 pm)
Re: [PATCH] scripts/ver_linux use 'gcc -dumpversion'
, Andrew Morton
, (Thu May 22, 2:29 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ingo Molnar
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
Roland Dreier
Re: Integration of SCST in the mainstream Linux kernel
git
:
linux-netdev
:
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Arjan van de Ven
Re: [GIT]: Networking
Linus Torvalds
Re: iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
21 users
and
871 guests
online.
Online users
zeekec
improveyoureye
alaskacruisexc
baseballnewqulm
airfreightchai
fujii
photomugsspnmni
pennsylvanialo
traceacellphon
KenanMoly129
ocroexjqwwuu
usedhymermottr
liverangiosarc
swinefluccjwe
beatsrddh
carinsuranceov
MiaCline
hotelridaz
adamclark
CasseroleRecip
creditcarddebt
Syndicate