From bd67723cad92ba956e25099cd197ba140dd5ae20 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 31 Dec 2005 08:39:30 +0000 Subject: 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) --- eclass/toolchain.eclass | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'eclass') 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 -- cgit v1.2.3-65-gdbad