Merged from trunk 4676:4677
authorFabian Groffen <grobian@gentoo.org>
Sat, 14 Oct 2006 14:12:01 +0000 (14:12 -0000)
committerFabian Groffen <grobian@gentoo.org>
Sat, 14 Oct 2006 14:12:01 +0000 (14:12 -0000)
svn path=/main/branches/prefix/; revision=4687

bin/ebuild.sh
bin/misc-functions.sh

index 408ce7cdc8939940b4f3c3992625ffe0a55b250c..11f4a281448813edc15d3e9deea6ce026f53d4cd 100755 (executable)
@@ -1605,6 +1605,11 @@ fi
 # this can be left out of ebd variants, since they're unaffected.
 unset EBUILD_DEATH_HOOKS
 
+# *DEPEND and IUSE will be set during the sourcing of the ebuild.  In order to
+# ensure correct interaction between ebuilds and eclasses, they need to be
+# unset before this process of interaction begins.
+unset DEPEND RDEPEND PDEPEND IUSE
+
 source ${EBUILD} || die "error sourcing ebuild"
 if ! hasq depend $EBUILD_PHASE; then
        RESTRICT="${PORTAGE_RESTRICT}"
index e97b4c63eebe325cac7acb074dbcf8a97f7b4ec2..8ba1e90e7bdcf59aec23b5eda7541f36f8d3490a 100644 (file)
@@ -383,7 +383,7 @@ dyn_package() {
        # 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"
+       tar -cf - . | bzip2 -f > "${pkg_tmp}" || die "Failed to create tarball"
        cd ..
        export PYTHONPATH=${PORTAGE_PYM_PATH:-/usr/lib/portage/pym}
        python -c "import xpak; t=xpak.tbz2('${pkg_tmp}'); t.recompose('${PORTAGE_BUILDDIR}/build-info')"