diff options
author | Joshua Baergen <joshuabaergen@gentoo.org> | 2005-12-07 22:10:45 +0000 |
---|---|---|
committer | Joshua Baergen <joshuabaergen@gentoo.org> | 2005-12-07 22:10:45 +0000 |
commit | 51f66d0a4bbf13abd1c01b66785f6e0b8f00d32b (patch) | |
tree | d5ba53cf28a69d9247a950e4478991ee2c58f5f0 /eclass | |
parent | Update font deps for RC3. (diff) | |
download | gentoo-2-51f66d0a4bbf13abd1c01b66785f6e0b8f00d32b.tar.gz gentoo-2-51f66d0a4bbf13abd1c01b66785f6e0b8f00d32b.tar.bz2 gentoo-2-51f66d0a4bbf13abd1c01b66785f6e0b8f00d32b.zip |
Prevent packages that bork with hardened gccs from building. Based on Starling's patch in bug #110506.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/x-modular.eclass | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/eclass/x-modular.eclass b/eclass/x-modular.eclass index 9fea8e15aae6..73434d99a921 100644 --- a/eclass/x-modular.eclass +++ b/eclass/x-modular.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.25 2005/12/07 11:19:47 spyderous Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.26 2005/12/07 22:10:45 joshuabaergen Exp $ # # Author: Donnie Berkholz <spyderous@gentoo.org> # @@ -12,7 +12,7 @@ EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_preinst pkg_postinst pkg_postrm -inherit eutils libtool +inherit eutils libtool toolchain-funcs # Directory prefix to use for everything XDIR="/usr" @@ -141,6 +141,14 @@ x-modular_reconf_source() { } x-modular_src_unpack() { + for x in xorg-server xf86-video- xf86-input- ; do + if [[ ${PN:0:11} = $x ]] && gcc-specs-now; then + msg="Do not emerge ${PN} without vanilla gcc!" + eerror "$msg" + die "$msg" + fi + done + x-modular_unpack_source x-modular_patch_source x-modular_reconf_source |