diff options
author | 2004-05-21 17:50:14 +0000 | |
---|---|---|
committer | 2004-05-21 17:50:14 +0000 | |
commit | a4727f8e6d422a0dae416997c65ae62d7e9c5f94 (patch) | |
tree | 4f1b2adf660329c6b50ffb253247b93cd07ab737 /sys-apps | |
parent | version bump (Manifest recommit) (diff) | |
download | gentoo-2-a4727f8e6d422a0dae416997c65ae62d7e9c5f94.tar.gz gentoo-2-a4727f8e6d422a0dae416997c65ae62d7e9c5f94.tar.bz2 gentoo-2-a4727f8e6d422a0dae416997c65ae62d7e9c5f94.zip |
Added check_multilib. Don't build 32bit sandbox on amd64 in case gcc doesnt support it, even if we have multilib in USE."
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/portage/ChangeLog | 9 | ||||
-rw-r--r-- | sys-apps/portage/portage-2.0.50-r6.ebuild | 28 |
2 files changed, 31 insertions, 6 deletions
diff --git a/sys-apps/portage/ChangeLog b/sys-apps/portage/ChangeLog index c6381a36a3d0..fdeb9872e437 100644 --- a/sys-apps/portage/ChangeLog +++ b/sys-apps/portage/ChangeLog @@ -1,10 +1,17 @@ # ChangeLog for sys-apps/portage # Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.31 2004/04/26 17:24:41 carpaski Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.32 2004/05/21 17:50:14 kugelfang Exp $ # See the gentoo-src Portage ChangeLog for up-to-date release information: # http://www.gentoo.org/cgi-bin/viewcvs.cgi/portage/ChangeLog?rev=HEAD&cvsroot=gentoo-src&content-type=text/vnd.viewcvs-markup +*portage-2.0.50-r6 (21 May 2004) + + 21 May 2004; Danny van Dyk <kugelfang@gentoo.org> portage-2.0.50-r6.ebuild: + Added check_multilib() to check for valid multilib environment; this keeps the + build of portage from dying in case "multilib" is in USE, but gcc hasn't been + compiled with it. Applys to amd64 platform only. + *portage-2.0.50-r3 (23 Mar 2004) 23 Mar 2004; Nicholas Jones <carpaski@gentoo.org> portage-2.0.50-r3: diff --git a/sys-apps/portage/portage-2.0.50-r6.ebuild b/sys-apps/portage/portage-2.0.50-r6.ebuild index f1f3a0831c52..211a13929588 100644 --- a/sys-apps/portage/portage-2.0.50-r6.ebuild +++ b/sys-apps/portage/portage-2.0.50-r6.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.0.50-r6.ebuild,v 1.4 2004/05/20 16:29:53 carpaski Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.0.50-r6.ebuild,v 1.5 2004/05/21 17:50:14 kugelfang Exp $ IUSE="build multilib" @@ -31,6 +31,24 @@ python_version() { export PYVER="${PYVER_MAJOR}.${PYVER_MINOR}" } +check_multilib() { + use !multilib && return + echo "main() {}" > ./check-multilib.c + /usr/bin/gcc -m32 -o ./check-multilib ./check-multilib.c > /dev/null 2>&1 + if [ "$?" == 0 ]; then + einfo "Found valid multilib environment." + einfo "Building with multilib support." + export MULTILIB="1" + else + ewarn "No valid multilib environment found!" + ewarn "Building without multilib support. If" + ewarn "you want to have multilib support," + ewarn "emerge gcc with \"multilib\" in your" + ewarn "useflags." + sleep 20 + fi +} + src_unpack() { unpack ${A} cd ${S} @@ -43,9 +61,9 @@ src_compile() { "x86") make CFLAGS="-march=i386 -O1 -pipe" || die ;; - "amd64") - use multilib && einfo "Building with multilib support on amd64" - make CFLAGS="-O2 -pipe" HAVE_64BIT_ARCH="`use multilib`" || die + "amd64") + check_multilib + make CFLAGS="-O2 -pipe" HAVE_64BIT_ARCH="${MULTILIB}" || die ;; *) make || die @@ -120,7 +138,7 @@ src_install() { cd ${S}/src/sandbox-1.1 make clean make DESTDIR=${D} \ - HAVE_64BIT_ARCH="`use amd64 && use multilib`" \ + HAVE_64BIT_ARCH="${MULTILIB}" \ install || die "Failed to compile sandbox" #symlinks |