Filter prefix variables ED, EPREFIX, and EROOT inside
authorZac Medico <zmedico@gentoo.org>
Fri, 11 Dec 2009 05:56:09 +0000 (05:56 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 11 Dec 2009 05:56:09 +0000 (05:56 -0000)
filter_readonly_variables() but don't mark them readonly for now since some
ebuilds/eclasses try to assign EROOT (such as kde4-base_pkg_setup) which
causes the whole bash shell to exit like this:

>>> Extracting info
 * CPV:  kde-base/oxygen-icons-4.3.4
 * REPO: gentoo
 * USE:  elibc_glibc kernel_linux test userland_GNU x86
/var/tmp/portage/kde-base/oxygen-icons-4.3.4/temp/environment: line 2781: EROOT: readonly variable

Also, add ED to the environment blacklist.

svn path=/main/trunk/; revision=15030

bin/ebuild.sh
pym/portage/__init__.py

index 630ff3118c3b71368e26981d87e01c5a7113193a..0bbfc10f0504a205136ce1ab4b700ffe2b54bd8f 100755 (executable)
@@ -1597,7 +1597,7 @@ READONLY_EBUILD_METADATA="DEFINED_PHASES DEPEND DESCRIPTION
        PDEPEND PROVIDE RDEPEND RESTRICT SLOT SRC_URI"
 
 READONLY_PORTAGE_VARS="D EBUILD EBUILD_PHASE \
-       EBUILD_SH_ARGS ED EMERGE_FROM EROOT FILESDIR \
+       EBUILD_SH_ARGS EMERGE_FROM FILESDIR \
        PORTAGE_BINPKG_FILE PORTAGE_BIN_PATH PORTAGE_IUSE \
        PORTAGE_PYM_PATH PORTAGE_MUTABLE_FILTERED_VARS \
        PORTAGE_SAVED_READONLY_VARS PORTAGE_TMPDIR T WORKDIR"
@@ -1651,7 +1651,7 @@ filter_readonly_variables() {
                SANDBOX_DEBUG_LOG SANDBOX_DISABLED SANDBOX_LIB
                SANDBOX_LOG SANDBOX_ON"
        filtered_vars="$readonly_bash_vars $bash_misc_vars
-               $READONLY_PORTAGE_VARS PATH"
+               $READONLY_PORTAGE_VARS ED EPREFIX EROOT PATH"
        if hasq --filter-sandbox $* ; then
                filtered_vars="${filtered_vars} SANDBOX_.*"
        else
index e9c301ed42cb34f690638e85362588bc18df238c..62cdd79117c934ad43b88175c56b497ac902c0ec 100644 (file)
@@ -1375,7 +1375,7 @@ class config(object):
 
        _env_blacklist = [
                "A", "AA", "CATEGORY", "DEPEND", "DESCRIPTION", "EAPI",
-               "EBUILD_PHASE", "EMERGE_FROM", "EPREFIX", "EROOT",
+               "EBUILD_PHASE", "ED", "EMERGE_FROM", "EPREFIX", "EROOT",
                "HOMEPAGE", "INHERITED", "IUSE",
                "KEYWORDS", "LICENSE", "PDEPEND", "PF", "PKGUSE",
                "PORTAGE_CONFIGROOT", "PORTAGE_IUSE",