* [gentoo-commits] gentoo-x86 commit in sys-apps/sandbox: ChangeLog sandbox-1.2.18.1-r3.ebuild
@ 2008-06-27 16:44 Robin H. Johnson (robbat2)
0 siblings, 0 replies; only message in thread
From: Robin H. Johnson (robbat2) @ 2008-06-27 16:44 UTC (permalink / raw
To: gentoo-commits
robbat2 08/06/27 16:44:42
Modified: ChangeLog
Added: sandbox-1.2.18.1-r3.ebuild
Log:
Fix for bug #206678. Variations of it have been running on infra boxes for two months now, we seem to have traced it down to RTLD_NEXT not always having a usable value under hardened on new libc.
(Portage version: 2.2_rc1/cvs/Linux 2.6.26-rc4-00103-g1beee8d x86_64)
Revision Changes Path
1.89 sys-apps/sandbox/ChangeLog
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/sandbox/ChangeLog?rev=1.89&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/sandbox/ChangeLog?rev=1.89&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/sandbox/ChangeLog?r1=1.88&r2=1.89
Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-apps/sandbox/ChangeLog,v
retrieving revision 1.88
retrieving revision 1.89
diff -p -w -b -B -u -u -r1.88 -r1.89
--- ChangeLog 4 Nov 2007 18:18:49 -0000 1.88
+++ ChangeLog 27 Jun 2008 16:44:42 -0000 1.89
@@ -1,6 +1,15 @@
# ChangeLog for sys-apps/sandbox
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/sandbox/ChangeLog,v 1.88 2007/11/04 18:18:49 flameeyes Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/sandbox/ChangeLog,v 1.89 2008/06/27 16:44:42 robbat2 Exp $
+
+*sandbox-1.2.18.1-r3 (27 Jun 2008)
+
+ 27 Jun 2008; Robin H. Johnson <robbat2@gentoo.org>
+ +files/sandbox-1.2.18.1-rtld-validation.patch,
+ +sandbox-1.2.18.1-r3.ebuild:
+ Fix for bug #206678. Variations of it have been running on infra boxes for
+ two months now, we seem to have traced it down to RTLD_NEXT not always
+ having a usable value under hardened on new libc.
*sandbox-1.2.20_alpha2-r1 (04 Nov 2007)
1.1 sys-apps/sandbox/sandbox-1.2.18.1-r3.ebuild
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/sandbox/sandbox-1.2.18.1-r3.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/sandbox/sandbox-1.2.18.1-r3.ebuild?rev=1.1&content-type=text/plain
Index: sandbox-1.2.18.1-r3.ebuild
===================================================================
# Copyright 1999-2008 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.1-r3.ebuild,v 1.1 2008/06/27 16:44:42 robbat2 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"
IUSE=""
DEPEND=""
EMULTILIB_PKG="true"
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}
cd "${S}"
epatch "${FILESDIR}"/${P}-open-normal-fail.patch #135745
epatch "${FILESDIR}"/${P}-open-cloexec.patch #196720
epatch "${FILESDIR}"/${P}-rtld-validation.patch #206678
}
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 "${D}"/var/log/sandbox
chmod 0770 "${D}"/var/log/sandbox
}
--
gentoo-commits@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-06-27 16:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-27 16:44 [gentoo-commits] gentoo-x86 commit in sys-apps/sandbox: ChangeLog sandbox-1.2.18.1-r3.ebuild Robin H. Johnson (robbat2)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox