diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2006-05-03 11:31:34 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2006-05-03 11:31:34 +0000 |
commit | 7c4c1af4116236d43268bffbf070f1a836ffea96 (patch) | |
tree | 1f8d2d57d89504d26894452ca2f42c853a1e0e96 /sys-apps/sandbox | |
parent | Cross-compile fix <http://article.gmane.org/gmane.linux.gentoo.embedded/588> (diff) | |
download | gentoo-2-7c4c1af4116236d43268bffbf070f1a836ffea96.tar.gz gentoo-2-7c4c1af4116236d43268bffbf070f1a836ffea96.tar.bz2 gentoo-2-7c4c1af4116236d43268bffbf070f1a836ffea96.zip |
New release.
(Portage version: 2.1_pre10-r2)
Diffstat (limited to 'sys-apps/sandbox')
-rw-r--r-- | sys-apps/sandbox/ChangeLog | 7 | ||||
-rw-r--r-- | sys-apps/sandbox/files/digest-sandbox-1.2.16 | 2 | ||||
-rw-r--r-- | sys-apps/sandbox/files/digest-sandbox-1.2.17 | 2 | ||||
-rw-r--r-- | sys-apps/sandbox/files/digest-sandbox-1.2.18 | 3 | ||||
-rw-r--r-- | sys-apps/sandbox/sandbox-1.2.18.ebuild | 118 |
5 files changed, 131 insertions, 1 deletions
diff --git a/sys-apps/sandbox/ChangeLog b/sys-apps/sandbox/ChangeLog index a55929535870..5f8f80294026 100644 --- a/sys-apps/sandbox/ChangeLog +++ b/sys-apps/sandbox/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-apps/sandbox # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/sandbox/ChangeLog,v 1.57 2006/05/03 05:48:35 corsair Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/sandbox/ChangeLog,v 1.58 2006/05/03 11:31:34 azarah Exp $ + +*sandbox-1.2.18 (03 May 2006) + + 03 May 2006; Martin Schlemmer <azarah@gentoo.org> +sandbox-1.2.18.ebuild: + New release. 03 May 2006; Markus Rothe <corsair@gentoo.org> sandbox-1.2.17.ebuild: Stable on ppc64; bug #132025 diff --git a/sys-apps/sandbox/files/digest-sandbox-1.2.16 b/sys-apps/sandbox/files/digest-sandbox-1.2.16 index c378adf79bd6..300f4fb788ca 100644 --- a/sys-apps/sandbox/files/digest-sandbox-1.2.16 +++ b/sys-apps/sandbox/files/digest-sandbox-1.2.16 @@ -1 +1,3 @@ MD5 033cccff5ca8bcd681a7dccc0f313358 sandbox-1.2.16.tar.bz2 232260 +RMD160 7f6a8b8e6eacebae69affc325ceceb5c0ca6e1c8 sandbox-1.2.16.tar.bz2 232260 +SHA256 301edf523cff0acc040cd2e7bd2ebcf9ef32776bb6634179e8c1193f0fe15862 sandbox-1.2.16.tar.bz2 232260 diff --git a/sys-apps/sandbox/files/digest-sandbox-1.2.17 b/sys-apps/sandbox/files/digest-sandbox-1.2.17 index 41c4d2abd4b0..2dcf9af5c42f 100644 --- a/sys-apps/sandbox/files/digest-sandbox-1.2.17 +++ b/sys-apps/sandbox/files/digest-sandbox-1.2.17 @@ -1 +1,3 @@ MD5 dc989b98ba8e096eea611b0ac3be16cb sandbox-1.2.17.tar.bz2 233461 +RMD160 ba050d0c972796b2096e2c623264b979fce134dd sandbox-1.2.17.tar.bz2 233461 +SHA256 1ed993eb4e34e75ac70a02df27056464b2b696c1d0fcf24a8d034923c79b3de8 sandbox-1.2.17.tar.bz2 233461 diff --git a/sys-apps/sandbox/files/digest-sandbox-1.2.18 b/sys-apps/sandbox/files/digest-sandbox-1.2.18 new file mode 100644 index 000000000000..c6046038731d --- /dev/null +++ b/sys-apps/sandbox/files/digest-sandbox-1.2.18 @@ -0,0 +1,3 @@ +MD5 e75c1c3de65125794d13848fb9a21e25 sandbox-1.2.18.tar.bz2 236474 +RMD160 0a622de5801e775057e24eadd2894f5352a9aa09 sandbox-1.2.18.tar.bz2 236474 +SHA256 3e070150d08f054ae958a67fc1382e2ed0465a5f5ded61b8e34874d0297df8e8 sandbox-1.2.18.tar.bz2 236474 diff --git a/sys-apps/sandbox/sandbox-1.2.18.ebuild b/sys-apps/sandbox/sandbox-1.2.18.ebuild new file mode 100644 index 000000000000..9c0a0d32ff7b --- /dev/null +++ b/sys-apps/sandbox/sandbox-1.2.18.ebuild @@ -0,0 +1,118 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/sandbox/sandbox-1.2.18.ebuild,v 1.1 2006/05/03 11:31:34 azarah Exp $ + +# +# don't monkey with this ebuild unless contacting portage devs. +# period. +# + +inherit eutils flag-o-matic eutils toolchain-funcs multilib + +DESCRIPTION="sandbox'd LD_PRELOAD hack" +HOMEPAGE="http://www.gentoo.org/" +SRC_URI="mirror://gentoo/${P}.tar.bz2 + http://dev.gentoo.org/~azarah/sandbox/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +#KEYWORDS=" alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="" +RESTRICT="multilib-pkg-force" + +DEPEND="" + +setup_multilib() { + if use amd64 && has_m32 && [[ ${CONF_MULTILIBDIR} == "lib32" ]]; then + export DEFAULT_ABI="amd64" + export MULTILIB_ABIS="x86 amd64" + export CFLAGS_amd64=${CFLAGS_amd64:-"-m64"} + export CFLAGS_x86=${CFLAGS_x86-"-m32 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib"} + export CHOST_amd64="x86_64-pc-linux-gnu" + export CHOST_x86="i686-pc-linux-gnu" + export LIBDIR_amd64=${LIBDIR_amd64-${CONF_LIBDIR}} + export LIBDIR_x86=${LIBDIR_x86-${CONF_MULTILIBDIR}} + fi +} + +src_unpack() { + unpack ${A} +} + +abi_fail_check() { + local ABI=$1 + if [[ ${ABI} == "x86" ]] ; then + echo + eerror "Building failed for ABI=x86!. This usually means a broken" + eerror "multilib setup. Please fix that before filling a bugreport" + eerror "against sandbox." + echo + fi +} + +src_compile() { + local myconf + local iscross=0 + + setup_multilib + + filter-lfs-flags #90228 + + has_multilib_profile && myconf="--enable-multilib" + + ewarn "If configure fails with a 'cannot run C compiled programs' error, try this:" + ewarn "FEATURES=-sandbox emerge sandbox" + + [[ -n ${CBUILD} && ${CBUILD} != ${CHOST} ]] && iscross=1 + + OABI=${ABI} + OCHOST=${CHOST} + for ABI in $(get_install_abis); do + mkdir "${WORKDIR}/build-${ABI}-${OCHOST}" + cd "${WORKDIR}/build-${ABI}-${OCHOST}" + + # Needed for older broken portage versions (bug #109036) + has_version '<sys-apps/portage-2.0.51.22' && \ + unset EXTRA_ECONF + + export ABI + export CHOST=$(get_abi_CHOST) + [[ ${iscross} == 0 ]] && export CBUILD=${CHOST} + + einfo "Configuring sandbox for ABI=${ABI}..." + ECONF_SOURCE="../${P}/" \ + econf --libdir="/usr/$(get_libdir)" ${myconf} + einfo "Building sandbox for ABI=${ABI}..." + emake || { + abi_fail_check "${ABI}" + die "emake failed for ${ABI}" + } + done + ABI=${OABI} + CHOST=${OCHOST} +} + +src_install() { + setup_multilib + + OABI=${ABI} + for ABI in $(get_install_abis); do + cd "${WORKDIR}/build-${ABI}-${CHOST}" + einfo "Installing sandbox for ABI=${ABI}..." + make DESTDIR="${D}" install || die "make install failed for ${ABI}" + done + ABI=${OABI} + + keepdir /var/log/sandbox + fowners root:portage /var/log/sandbox + fperms 0770 /var/log/sandbox + + cd ${S} + dodoc AUTHORS ChangeLog NEWS README +} + +pkg_preinst() { + chown root:portage ${IMAGE}/var/log/sandbox + chmod 0770 ${IMAGE}/var/log/sandbox +} |