Gentoo Archives: gentoo-commits

From: "Benda XU (heroxbd)" <heroxbd@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in profiles/prefix/linux: profile.bashrc
Date: Wed, 21 Dec 2011 04:13:21
Message-Id: 20111221041308.3A3812004B@flycatcher.gentoo.org
1 heroxbd 11/12/21 04:13:08
2
3 Modified: profile.bashrc
4 Log:
5 include to prevent this trick apply to cross compilers; fix grep pattern against ldd; recomment the excluded patch names
6
7 Revision Changes Path
8 1.3 profiles/prefix/linux/profile.bashrc
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/profiles/prefix/linux/profile.bashrc?rev=1.3&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/profiles/prefix/linux/profile.bashrc?rev=1.3&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/profiles/prefix/linux/profile.bashrc?r1=1.2&r2=1.3
13
14 Index: profile.bashrc
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/profiles/prefix/linux/profile.bashrc,v
17 retrieving revision 1.2
18 retrieving revision 1.3
19 diff -u -r1.2 -r1.3
20 --- profile.bashrc 15 Dec 2011 18:35:49 -0000 1.2
21 +++ profile.bashrc 21 Dec 2011 04:13:08 -0000 1.3
22 @@ -3,14 +3,14 @@
23 #
24 # # Remember, bash treats floats like strings..
25
26 -if [[ ${PN} == gcc && ${EBUILD_PHASE} == unpack ]]; then
27 +if [[ ${CATEGORY}/${PN} == sys-devel/gcc && ${EBUILD_PHASE} == unpack ]]; then
28 # Since 2.3 > 2.12 in numerical terms, just compare 2.X to 2.Y, will break
29 # if >=3.0 is ever released
30 - VERS=$(/usr/bin/ldd --version | head -n1 | grep -o "version [0-9]\.[0-9]\+" | cut -d. -f2 )
31 + VERS=$(/usr/bin/ldd --version | head -n1 | grep -o ") [0-9]\.[0-9]\+" | cut -d. -f2 )
32 if [[ $VERS -lt 12 ]]; then # compare host glibc 2.x to 2.12
33 ewarn "Your host glibc is too old; disabling automatic fortify. bug 289757"
34 - EPATCH_EXCLUDE+=" 10_all_gcc-default-fortify-source.patch" # old name
35 - EPATCH_EXCLUDE+=" 10_all_default-fortify-source.patch" # new name
36 + EPATCH_EXCLUDE+=" 10_all_gcc-default-fortify-source.patch" # <=gcc-4.5*
37 + EPATCH_EXCLUDE+=" 10_all_default-fortify-source.patch" # >=gcc-4.6*
38 fi
39 fi