Add PORTAGE_USERNAME and PORTAGE_GROUPNAME to the environment whitelist and
authorZac Medico <zmedico@gentoo.org>
Fri, 26 Mar 2010 22:58:34 +0000 (15:58 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 26 Mar 2010 22:58:34 +0000 (15:58 -0700)
filter them from the saved environment.

bin/isolated-functions.sh
pym/portage/package/ebuild/config.py

index e7d0d4ee997109c6cb7be70cd4aedc2b28f325ee..bf11c0d4bd494f28b67ac968543f868cbfd80172 100644 (file)
@@ -555,11 +555,12 @@ save_ebuild_env() {
                        PORTAGE_BASHRC PORTAGE_BASHRCS_SOURCED \
                        PORTAGE_BINPKG_TAR_OPTS PORTAGE_BINPKG_TMPFILE PORTAGE_BUILDDIR \
                        PORTAGE_COLORMAP PORTAGE_CONFIGROOT PORTAGE_DEBUG \
-                       PORTAGE_DEPCACHEDIR PORTAGE_GID PORTAGE_INST_GID \
+                       PORTAGE_DEPCACHEDIR PORTAGE_GID \
+                       PORTAGE_GROUPNAME PORTAGE_INST_GID \
                        PORTAGE_INST_UID PORTAGE_LOG_FILE PORTAGE_MASTER_PID \
                        PORTAGE_NONFATAL PORTAGE_QUIET \
                        PORTAGE_REPO_NAME PORTAGE_RESTRICT PORTAGE_UPDATE_ENV \
-                       PORTAGE_VERBOSE PORTAGE_WORKDIR_MODE PORTDIR \
+                       PORTAGE_USERNAME PORTAGE_VERBOSE PORTAGE_WORKDIR_MODE PORTDIR \
                        PORTDIR_OVERLAY ${!PORTAGE_SANDBOX_*} PREROOTPATH \
                        PROFILE_PATHS PWORKDIR QA_INTERCEPTORS \
                        RC_DEFAULT_INDENT RC_DOT_PATTERN RC_ENDCOL \
index 7be1af1e7a997b1c08e3137c8fad2d2add4a7a3a..7b54d9a46827c97440ce1edb6710837e47240178 100644 (file)
@@ -178,12 +178,13 @@ class config(object):
                "PORTAGE_BIN_PATH",
                "PORTAGE_BUILDDIR", "PORTAGE_COLORMAP",
                "PORTAGE_CONFIGROOT", "PORTAGE_DEBUG", "PORTAGE_DEPCACHEDIR",
-               "PORTAGE_GID", "PORTAGE_INST_GID", "PORTAGE_INST_UID",
+               "PORTAGE_GID", "PORTAGE_GROUPNAME",
+               "PORTAGE_INST_GID", "PORTAGE_INST_UID",
                "PORTAGE_IUSE",
                "PORTAGE_LOG_FILE", "PORTAGE_MASTER_PID",
                "PORTAGE_PYM_PATH", "PORTAGE_QUIET",
                "PORTAGE_REPO_NAME", "PORTAGE_RESTRICT",
-               "PORTAGE_TMPDIR", "PORTAGE_UPDATE_ENV",
+               "PORTAGE_TMPDIR", "PORTAGE_UPDATE_ENV", "PORTAGE_USERNAME",
                "PORTAGE_VERBOSE", "PORTAGE_WORKDIR_MODE",
                "PORTDIR", "PORTDIR_OVERLAY", "PREROOTPATH", "PROFILE_PATHS",
                "ROOT", "ROOTPATH", "T", "TMP", "TMPDIR",