From 1df9c2ccdcc4e3ba2e1969b9951f792cd6c6d04e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 2 Sep 2010 13:06:08 -0700 Subject: [PATCH] Prevent the local filter_opts variable in filter_readonly_variables() from being saved in environment.bz2. --- bin/ebuild.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 714084f0b..5177494f9 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -1735,8 +1735,9 @@ filter_readonly_variables() { local filtered_sandbox_vars="SANDBOX_ACTIVE SANDBOX_BASHRC SANDBOX_DEBUG_LOG SANDBOX_DISABLED SANDBOX_LIB SANDBOX_LOG SANDBOX_ON" + local misc_garbage_vars="_portage_filter_opts" filtered_vars="$readonly_bash_vars $bash_misc_vars - $READONLY_PORTAGE_VARS" + $READONLY_PORTAGE_VARS $misc_garbage_vars" # Don't filter/interfere with prefix variables unless they are # supported by the current EAPI. @@ -1783,17 +1784,17 @@ filter_readonly_variables() { # interfering with the current environment. This is useful when an existing # environment needs to be loaded from a binary or installed package. preprocess_ebuild_env() { - local filter_opts="" + local _portage_filter_opts="" if [ -f "${T}/environment.raw" ] ; then # This is a signal from the python side, indicating that the # environment may contain stale SANDBOX_{DENY,PREDICT,READ,WRITE} # and FEATURES variables that should be filtered out. Between # phases, these variables are normally preserved. - filter_opts+=" --filter-features --filter-locale --filter-path --filter-sandbox" + _portage_filter_opts+=" --filter-features --filter-locale --filter-path --filter-sandbox" fi - filter_readonly_variables ${filter_opts} < "${T}"/environment \ + filter_readonly_variables $_portage_filter_opts < "${T}"/environment \ > "${T}"/environment.filtered || return $? - unset filter_opts + unset _portage_filter_opts mv "${T}"/environment.filtered "${T}"/environment || return $? rm -f "${T}/environment.success" || return $? # WARNING: Code inside this subshell should avoid making assumptions -- 2.26.2