Gentoo Archives: gentoo-commits

From: "Gordon Malm (gengor)" <gengor@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: qt4-build.eclass
Date: Sat, 28 Mar 2009 00:21:15
Message-Id: E1LnMIT-0001VS-Uw@stork.gentoo.org
1 gengor 09/03/28 00:21:13
2
3 Modified: qt4-build.eclass
4 Log:
5 Add fix for bug 253127 dropped in qt4-build.eclass revision 1.21
6
7 Revision Changes Path
8 1.29 eclass/qt4-build.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/qt4-build.eclass?rev=1.29&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/qt4-build.eclass?rev=1.29&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/qt4-build.eclass?r1=1.28&r2=1.29
13
14 Index: qt4-build.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v
17 retrieving revision 1.28
18 retrieving revision 1.29
19 diff -u -r1.28 -r1.29
20 --- qt4-build.eclass 16 Mar 2009 08:21:18 -0000 1.28
21 +++ qt4-build.eclass 28 Mar 2009 00:21:13 -0000 1.29
22 @@ -1,6 +1,6 @@
23 # Copyright 2007-2009 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.28 2009/03/16 08:21:18 aballier Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.29 2009/03/28 00:21:13 gengor Exp $
27
28 # @ECLASS: qt4-build.eclass
29 # @MAINTAINER:
30 @@ -135,7 +135,6 @@
31 replace-flags -O3 -O2
32 fi
33
34 - # Bug 253127
35 # Unsupported old gcc versions - hardened needs this :(
36 if [[ $(gcc-major-version) -lt "4" ]] ; then
37 ewarn "Appending -fno-stack-protector to CXXFLAGS"
38 @@ -148,6 +147,12 @@
39 append-flags -fno-gcse
40 fi
41
42 + # Bug 253127
43 + if [[ $(gcc-major-version) -lt "4" ]] ; then
44 + sed -e "/^QMAKE_CFLAGS\t/ s:$: -fno-stack-protector-all:" \
45 + -i "${S}"/mkspecs/common/g++.conf || die "sed ${S}/mkspecs/common/g++.conf failed"
46 + fi
47 +
48 # Bug 172219
49 sed -e "s:QMAKE_CFLAGS_RELEASE.*=.*:QMAKE_CFLAGS_RELEASE=${CFLAGS}:" \
50 -e "s:QMAKE_CXXFLAGS_RELEASE.*=.*:QMAKE_CXXFLAGS_RELEASE=${CXXFLAGS}:" \