From: Zac Medico Date: Sat, 22 Apr 2006 19:46:07 +0000 (-0000) Subject: Disable sandbox during package phase interaction with $PKGDIR for compatibility with... X-Git-Tag: v2.1_pre10~85 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9e2d985e6d5480449c8b5b9880d240011297d6eb;p=portage.git Disable sandbox during package phase interaction with $PKGDIR for compatibility with symlinks (See bug #130824). svn path=/main/trunk/; revision=3189 --- 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')"