summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDavide Pesavento <pesa@gentoo.org>2013-10-20 21:45:31 +0000
committerDavide Pesavento <pesa@gentoo.org>2013-10-20 21:45:31 +0000
commit90634bdf354c9885a3619b828fa105ebb523bf5c (patch)
treec7e81cc5d1e4c47d8180c088b90090355e4f2feb /eclass
parentThis is only maintained by gstreamer herd (diff)
downloadgentoo-2-90634bdf354c9885a3619b828fa105ebb523bf5c.tar.gz
gentoo-2-90634bdf354c9885a3619b828fa105ebb523bf5c.tar.bz2
gentoo-2-90634bdf354c9885a3619b828fa105ebb523bf5c.zip
Updates from qt overlay: drop USE="c++0x" from 4.8.5 and later versions; warn on downgrades instead of dying.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ChangeLog6
-rw-r--r--eclass/qt4-build.eclass32
2 files changed, 20 insertions, 18 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog
index 24a1e0640256..0332ff98f1e1 100644
--- a/eclass/ChangeLog
+++ b/eclass/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for eclass directory
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1028 2013/10/20 16:27:24 hasufell Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1029 2013/10/20 21:45:31 pesa Exp $
+
+ 20 Oct 2013; Davide Pesavento <pesa@gentoo.org> qt4-build.eclass:
+ Updates from qt overlay: drop USE="c++0x" from 4.8.5 and later versions; warn
+ on downgrade instead of dying.
20 Oct 2013; Julian Ospald <hasufell@gentoo.org> multilib-minimal.eclass:
make doc installation part of default multilib_src_install_all() wrt #483304
diff --git a/eclass/qt4-build.eclass b/eclass/qt4-build.eclass
index 3162f18e37fc..f34b0ccc9c9c 100644
--- a/eclass/qt4-build.eclass
+++ b/eclass/qt4-build.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.152 2013/10/14 17:29:55 pesa Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.153 2013/10/20 21:45:31 pesa Exp $
# @ECLASS: qt4-build.eclass
# @MAINTAINER:
@@ -43,7 +43,9 @@ case ${QT4_BUILD_TYPE} in
esac
IUSE="aqua debug pch"
-[[ ${CATEGORY}/${PN} != dev-qt/qtwebkit ]] && IUSE+=" c++0x"
+if ! version_is_at_least 4.8.5; then
+ [[ ${CATEGORY}/${PN} != dev-qt/qtwebkit ]] && IUSE+=" c++0x"
+fi
[[ ${CATEGORY}/${PN} != dev-qt/qtxmlpatterns ]] && IUSE+=" +exceptions"
DEPEND="virtual/pkgconfig"
@@ -57,16 +59,12 @@ S=${WORKDIR}/${MY_P}
# @DESCRIPTION:
# Sets up PATH and LD_LIBRARY_PATH.
qt4-build_pkg_setup() {
- # Protect users by not allowing downgrades between releases.
- # Downgrading revisions within the same release should be allowed.
+ # Warn users of possible breakage when downgrading to a previous release.
+ # Downgrading revisions within the same release is safe.
if has_version ">${CATEGORY}/${P}-r9999:4"; then
- if [[ -z ${I_KNOW_WHAT_I_AM_DOING} ]]; then
- eerror " *** Sanity check to keep you from breaking your system ***"
- eerror "Downgrading Qt is completely unsupported and will break your system!"
- die "aborting to save your system"
- else
- ewarn "Downgrading Qt is completely unsupported and will break your system!"
- fi
+ ewarn
+ ewarn "Downgrading Qt is completely unsupported and can break your system!"
+ ewarn
fi
PATH="${S}/bin${PATH:+:}${PATH}"
@@ -101,21 +99,21 @@ qt4-build_pkg_setup() {
qt4-build_src_unpack() {
setqtenv
- if ! version_is_at_least 4.1 $(gcc-version); then
- ewarn "Using a GCC version lower than 4.1 is not supported."
- elif use_if_iuse c++0x && ! version_is_at_least 4.4 $(gcc-version); then
- ewarn "USE=c++0x requires GCC 4.4 or later."
+ if ! version_is_at_least 4.4 $(gcc-version); then
+ ewarn
+ ewarn "Using a GCC version lower than 4.4 is not supported."
+ ewarn
fi
if [[ ${CATEGORY}/${PN} == dev-qt/qtwebkit ]]; then
eshopts_push -s extglob
if is-flagq '-g?(gdb)?([1-9])'; then
- echo
+ ewarn
ewarn "You have enabled debug info (probably have -g or -ggdb in your CFLAGS/CXXFLAGS)."
ewarn "You may experience really long compilation times and/or increased memory usage."
ewarn "If compilation fails, please try removing -g/-ggdb before reporting a bug."
ewarn "For more info check out https://bugs.gentoo.org/307861"
- echo
+ ewarn
fi
eshopts_pop
fi