summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-12-31 08:39:30 +0000
committerMike Frysinger <vapier@gentoo.org>2005-12-31 08:39:30 +0000
commitbd67723cad92ba956e25099cd197ba140dd5ae20 (patch)
treee4c69b17b166d56694d53e2b3c9876b89f37ae79 /eclass
parentVersion bump as reported by Peter Simons via e-mail. (diff)
downloadhistorical-bd67723cad92ba956e25099cd197ba140dd5ae20.tar.gz
historical-bd67723cad92ba956e25099cd197ba140dd5ae20.tar.bz2
historical-bd67723cad92ba956e25099cd197ba140dd5ae20.zip
add a sanity check to make sure ETYPE is set by ebuilds and make the GCC_A_FAKEIT setting more flexible (not all tarballs are tar.bz2)
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index a577da6625d7..d1b8b9a076a2 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.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/toolchain.eclass,v 1.236 2005/12/29 03:06:35 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.237 2005/12/31 08:39:30 vapier Exp $
HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html"
LICENSE="GPL-2 LGPL-2.1"
@@ -808,6 +808,8 @@ create_eselect_conf() {
#---->> pkg_* <<----
gcc_pkg_setup() {
+ [[ -z ${ETYPE} ]] && die "Your ebuild needs to set the ETYPE variable"
+
if [[ ( $(tc-arch) == "amd64" || $(tc-arch) == "ppc64" ) && ( ${LD_PRELOAD} == "/lib/libsandbox.so" || ${LD_PRELOAD} == "/usr/lib/libsandbox.so" ) ]] && is_multilib ; then
eerror "Sandbox in your installed portage does not support compilation."
eerror "of a multilib gcc. Please set FEATURES=-sandbox and try again."
@@ -1716,7 +1718,7 @@ gcc_quick_unpack() {
export HTB_GCC_VER=${HTB_GCC_VER:-${GCC_RELEASE_VER}}
if [[ -n ${GCC_A_FAKEIT} ]] ; then
- unpack ${GCC_A_FAKEIT}.tar.bz2
+ unpack ${GCC_A_FAKEIT}
mv ${GCC_A_FAKEIT} "${S}"
elif [[ -n ${PRERELEASE} ]] ; then
unpack gcc-${PRERELEASE}.tar.bz2