summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDavide Pesavento <pesa@gentoo.org>2015-05-09 18:19:31 +0000
committerDavide Pesavento <pesa@gentoo.org>2015-05-09 18:19:31 +0000
commit265a3c916261b238bc12505a031d92225b1d7056 (patch)
tree43b0566887ab681997df779568ec34f85b7912cc /eclass
parentdrop broken (diff)
downloadhistorical-265a3c916261b238bc12505a031d92225b1d7056.tar.gz
historical-265a3c916261b238bc12505a031d92225b1d7056.tar.bz2
historical-265a3c916261b238bc12505a031d92225b1d7056.zip
Update from qt overlay: overhaul toolchain and *FLAGS handling for proper multilib support during the configure phase. Fixes bug #545106.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ChangeLog6
-rw-r--r--eclass/qt4-build-multilib.eclass28
2 files changed, 27 insertions, 7 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog
index ab54cfc25a7f..5056b9c34e00 100644
--- a/eclass/ChangeLog
+++ b/eclass/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for eclass directory
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1606 2015/05/09 15:33:21 mrueg Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1607 2015/05/09 18:19:31 pesa Exp $
+
+ 09 May 2015; Davide Pesavento <pesa@gentoo.org> qt4-build-multilib.eclass:
+ Update from qt overlay: overhaul toolchain and *FLAGS handling for proper
+ multilib support during the configure phase. Fixes bug #545106.
09 May 2015; Manuel Rüger <mrueg@gentoo.org> kde5.eclass:
Sync with overlay.
diff --git a/eclass/qt4-build-multilib.eclass b/eclass/qt4-build-multilib.eclass
index 48dcf62d226b..bf8f26556324 100644
--- a/eclass/qt4-build-multilib.eclass
+++ b/eclass/qt4-build-multilib.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build-multilib.eclass,v 1.10 2015/04/22 20:23:47 pesa Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build-multilib.eclass,v 1.11 2015/05/09 18:19:31 pesa Exp $
# @ECLASS: qt4-build-multilib.eclass
# @MAINTAINER:
@@ -208,12 +208,16 @@ qt4-build-multilib_src_prepare() {
QMakeVar set QMAKE_LFLAGS_DEBUG\n' \
configure || die "sed QMAKE_*FLAGS_{RELEASE,DEBUG} failed"
- # Respect CC, CXX, LINK and *FLAGS in config.tests
+ # Drop -nocache from qmake invocation in all configure tests, to ensure that the
+ # correct toolchain and build flags are picked up from config.tests/.qmake.cache
find config.tests/unix -name '*.test' -type f -print0 | xargs -0 \
- sed -i -e "/bin\/qmake/ s: \"\$SRCDIR/: \
- 'QMAKE_CC=$(tc-getCC)' 'QMAKE_CXX=$(tc-getCXX)' 'QMAKE_LINK=$(tc-getCXX)' \
- 'QMAKE_CFLAGS+=${CFLAGS}' 'QMAKE_CXXFLAGS+=${CXXFLAGS}' 'QMAKE_LFLAGS+=${LDFLAGS}'&:" \
- || die "sed config.tests failed"
+ sed -i -e '/bin\/qmake/s/ -nocache//' || die "sed -nocache failed"
+
+ # compile.test needs additional patching so that it doesn't create another cache file
+ # inside the test subdir, which would incorrectly override config.tests/.qmake.cache
+ sed -i -e '/echo.*QT_BUILD_TREE.*\.qmake\.cache/d' \
+ -e '/bin\/qmake/s/ "$SRCDIR/ "QT_BUILD_TREE=$OUTDIR"&/' \
+ config.tests/unix/compile.test || die "sed compile.test failed"
# Delete references to the obsolete /usr/X11R6 directory
# On prefix, this also prevents looking at non-prefix stuff
@@ -339,6 +343,18 @@ qt4_multilib_src_configure() {
-arch ${arch}
-platform $(qt4_get_mkspec)
+ # instruction set support
+ $(is-flagq -mno-mmx && echo -no-mmx)
+ $(is-flagq -mno-3dnow && echo -no-3dnow)
+ $(is-flagq -mno-sse && echo -no-sse)
+ $(is-flagq -mno-sse2 && echo -no-sse2)
+ $(is-flagq -mno-sse3 && echo -no-sse3)
+ $(is-flagq -mno-ssse3 && echo -no-ssse3)
+ $(is-flagq -mno-sse4.1 && echo -no-sse4.1)
+ $(is-flagq -mno-sse4.2 && echo -no-sse4.2)
+ $(is-flagq -mno-avx && echo -no-avx)
+ $(is-flagq -mfpu=* && ! is-flagq -mfpu=*neon* && echo -no-neon)
+
# prefer system libraries
-system-zlib