Disable sandbox during package phase interaction with $PKGDIR for compatibility with...
authorZac Medico <zmedico@gentoo.org>
Sat, 22 Apr 2006 19:46:07 +0000 (19:46 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 22 Apr 2006 19:46:07 +0000 (19:46 -0000)
svn path=/main/trunk/; revision=3189

bin/misc-functions.sh

index c6776807beb457b257bd04c65793c82dc7a47954..50d9e03793361744bb1ae2aeec50170883ae3109 100755 (executable)
@@ -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')"