summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-04-22 19:46:07 +0000
committerZac Medico <zmedico@gentoo.org>2006-04-22 19:46:07 +0000
commit9e2d985e6d5480449c8b5b9880d240011297d6eb (patch)
treea2d974da55e078a1fa47598e3f18aa8905bc8a44
parent26902e158c627bc47bc1da33cc3fd2b1c9de82cc (diff)
downloadportage-9e2d985e6d5480449c8b5b9880d240011297d6eb.tar.gz
portage-9e2d985e6d5480449c8b5b9880d240011297d6eb.tar.bz2
portage-9e2d985e6d5480449c8b5b9880d240011297d6eb.zip
Disable sandbox during package phase interaction with $PKGDIR for compatibility with symlinks (See bug #130824).
svn path=/main/trunk/; revision=3189
-rwxr-xr-xbin/misc-functions.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh
index c6776807b..50d9e0379 100755
--- a/bin/misc-functions.sh
+++ b/bin/misc-functions.sh
@@ -349,7 +349,9 @@ dyn_package() {
install_mask "${PORTAGE_BUILDDIR}/image" ${PKG_INSTALL_MASK}
local pkg_dest="${PKGDIR}/All/${PF}.tbz2"
local pkg_tmp="${PKGDIR}/All/${PF}.tbz2.$$"
- addwrite "${PKGDIR}"
+ # Sandbox is disabled in case the user wants to use a symlink
+ # for $PKGDIR and/or $PKGDIR/All.
+ export SANDBOX_ON="0"
tar cpvf - ./ | bzip2 -f > "${pkg_tmp}" || die "Failed to create tarball"
cd ..
python -c "import xpak; t=xpak.tbz2('${pkg_tmp}'); t.recompose('${PORTAGE_BUILDDIR}/build-info')"