diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2011-10-21 23:00:19 +0000 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2011-10-21 23:00:19 +0000 |
commit | 9593c3f162d841080ba527adc1bea71bf42c5051 (patch) | |
tree | 8032c1cd5ca134bdff5714c0adf9381cb4b07318 /eclass | |
parent | Version bump, security bug #388055. (diff) | |
download | gentoo-2-9593c3f162d841080ba527adc1bea71bf42c5051.tar.gz gentoo-2-9593c3f162d841080ba527adc1bea71bf42c5051.tar.bz2 gentoo-2-9593c3f162d841080ba527adc1bea71bf42c5051.zip |
Use MERGE_TYPE variable only for EAPI=4, bug 385589
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/kde4-base.eclass | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/eclass/kde4-base.eclass b/eclass/kde4-base.eclass index 696fc99fd588..6d4267642b54 100644 --- a/eclass/kde4-base.eclass +++ b/eclass/kde4-base.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.108 2011/10/06 14:13:29 alexxy Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.109 2011/10/21 23:00:19 dilfridge Exp $ # @ECLASS: kde4-base.eclass # @MAINTAINER: @@ -621,10 +621,14 @@ kde4-base_pkg_setup() { # In theory should be in pkg_pretend but we check it only for kdelibs there # and for others we do just quick scan in pkg_setup because pkg_pretend # executions consume quite some time. - if [[ ${MERGE_TYPE} != binary ]]; then - [[ $(gcc-major-version) -lt 4 ]] || \ - ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 3 ]] ) \ - && die "Sorry, but gcc-4.3 and earlier wont work for KDE (see bug 354837)." + # We can only do this for EAPI 4 or later because the MERGE_TYPE variable + # is otherwise undefined. + if [[ ${EAPI:-0} != 3 ]]; then + if [[ ${MERGE_TYPE} != binary ]]; then + [[ $(gcc-major-version) -lt 4 ]] || \ + ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 3 ]] ) \ + && die "Sorry, but gcc-4.3 and earlier wont work for KDE (see bug 354837)." + fi fi KDEDIR=/usr |