summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-05-04 23:25:00 +0000
committerMike Frysinger <vapier@gentoo.org>2005-05-04 23:25:00 +0000
commitf4ebf4efeec098af9de330644f44fea6a08729c3 (patch)
tree52a156d01c2d760906c826c7441d6f4ebe1f0cd8 /sys-apps/sandbox
parentVersion bump (diff)
downloadgentoo-2-f4ebf4efeec098af9de330644f44fea6a08729c3.tar.gz
gentoo-2-f4ebf4efeec098af9de330644f44fea6a08729c3.tar.bz2
gentoo-2-f4ebf4efeec098af9de330644f44fea6a08729c3.zip
Fix multilib building on amd64/2004.3 profiles.
(Portage version: 2.0.51.21)
Diffstat (limited to 'sys-apps/sandbox')
-rw-r--r--sys-apps/sandbox/ChangeLog5
-rw-r--r--sys-apps/sandbox/sandbox-1.2.5.ebuild39
2 files changed, 26 insertions, 18 deletions
diff --git a/sys-apps/sandbox/ChangeLog b/sys-apps/sandbox/ChangeLog
index 16a43d017706..21ce265e3660 100644
--- a/sys-apps/sandbox/ChangeLog
+++ b/sys-apps/sandbox/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for sys-apps/sandbox
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/sandbox/ChangeLog,v 1.10 2005/05/04 15:16:00 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/sandbox/ChangeLog,v 1.11 2005/05/04 23:25:00 vapier Exp $
+
+ 04 May 2005; Mike Frysinger <vapier@gentoo.org> sandbox-1.2.5.ebuild:
+ Fix multilib building on amd64/2004.3 profiles.
*sandbox-1.2.5 (04 May 2005)
diff --git a/sys-apps/sandbox/sandbox-1.2.5.ebuild b/sys-apps/sandbox/sandbox-1.2.5.ebuild
index 40f8628b61c7..e79778654a19 100644
--- a/sys-apps/sandbox/sandbox-1.2.5.ebuild
+++ b/sys-apps/sandbox/sandbox-1.2.5.ebuild
@@ -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/sys-apps/sandbox/sandbox-1.2.5.ebuild,v 1.3 2005/05/04 22:53:27 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/sandbox/sandbox-1.2.5.ebuild,v 1.4 2005/05/04 23:25:00 vapier Exp $
#
# don't monkey with this ebuild unless contacting portage devs.
@@ -22,19 +22,13 @@ RESTRICT="multilib-pkg-force"
DEPEND="virtual/libc"
-check_multilib() {
- has_m32
- if [ "$?" == 0 ] ; then
- einfo "Found valid multilib environment."
- einfo "Building with multilib support."
- export MULTILIB="1"
+has_old_amd64_multilib() {
+ if has_m32 && [[ ${CONF_MULTILIBDIR} == "lib32" ]] ; then
+ export SANDBOX_MULTILIB=0
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."
+ export SANDBOX_MULTILIB=1
fi
+ return ${SANDBOX_MULTILIB}
}
src_unpack() {
@@ -46,6 +40,10 @@ src_unpack() {
mv ${S} ${S%/}-${ABI} || die "failed moving \$S to ${ABI}"
done
else
+ if has_old_amd64_multilib ; then
+ unpack ${A}
+ mv ${S} lib32
+ fi
unpack ${A}
fi
}
@@ -81,13 +79,17 @@ src_compile() {
}
done
ABI="${OABI}"
+
else
- if useq amd64 ; then
- check_multilib
- export HAVE_64BIT_ARCH="${MULTILIB}"
- fi
econf || die "econf failed"
emake || die "emake failed"
+
+ if has_old_amd64_multilib ; then
+ cd ${WORKDIR}/lib32
+ append-flags -m32
+ econf --libdir=/usr/${CONF_MULTILIBDIR} || die "econf m32 failed"
+ emake || die "emake m32 failed"
+ fi
fi
}
@@ -102,6 +104,9 @@ src_install() {
done
ABI="${OABI}"
else
- make install DESTDIR="${D}" || die "einstalled failed"
+ if has_old_amd64_multilib ; then
+ make install DESTDIR="${D}" -C ${WORKDIR}/lib32 || die "install m32 failed"
+ fi
+ make install DESTDIR="${D}" || die "install failed"
fi
}