diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-09-17 21:27:08 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-09-17 21:27:08 -0700 |
commit | 8402bc4a0b2cae74bdc33ccdf9fab85dc2d76602 (patch) | |
tree | 5be7d13f473f648619b7eb68347bad9ada0c735d | |
parent | 7e10d7603d3dae51997928e41a6de2b03e18344c (diff) | |
download | portage-8402bc4a0b2cae74bdc33ccdf9fab85dc2d76602.tar.gz portage-8402bc4a0b2cae74bdc33ccdf9fab85dc2d76602.tar.bz2 portage-8402bc4a0b2cae74bdc33ccdf9fab85dc2d76602.zip |
Rename READONLY_EBUILD_METADATA and READONLY_PORTAGE_VARS to start
with PORTAGE_, and make them both readonly.
-rwxr-xr-x | bin/ebuild.sh | 9 | ||||
-rw-r--r-- | bin/isolated-functions.sh | 2 |
2 files changed, 6 insertions, 5 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh index f5fb3e29d..c6f1b72ef 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -1680,14 +1680,15 @@ source_all_bashrcs() { # of ebuild.sh will work for pkg_postinst, pkg_prerm, and pkg_postrm # when portage is upgrading itself. -READONLY_EBUILD_METADATA="DEFINED_PHASES DEPEND DESCRIPTION +PORTAGE_READONLY_METADATA="DEFINED_PHASES DEPEND DESCRIPTION EAPI HOMEPAGE INHERITED IUSE REQUIRED_USE KEYWORDS LICENSE PDEPEND PROVIDE RDEPEND RESTRICT SLOT SRC_URI" -READONLY_PORTAGE_VARS="D EBUILD EBUILD_PHASE \ +PORTAGE_READONLY_VARS="D EBUILD EBUILD_PHASE \ EBUILD_SH_ARGS EMERGE_FROM FILESDIR \ PORTAGE_BINPKG_FILE PORTAGE_BIN_PATH PORTAGE_BUILDDIR PORTAGE_IUSE \ PORTAGE_PYM_PATH PORTAGE_MUTABLE_FILTERED_VARS \ + PORTAGE_READONLY_METADATA PORTAGE_READONLY_VARS \ PORTAGE_SAVED_READONLY_VARS PORTAGE_TMPDIR T WORKDIR" PORTAGE_SAVED_READONLY_VARS="A CATEGORY P PF PN PR PV PVR" @@ -1751,7 +1752,7 @@ filter_readonly_variables() { SANDBOX_LOG SANDBOX_ON" local misc_garbage_vars="_portage_filter_opts" filtered_vars="$readonly_bash_vars $bash_misc_vars - $READONLY_PORTAGE_VARS $misc_garbage_vars" + $PORTAGE_READONLY_VARS $misc_garbage_vars" # Don't filter/interfere with prefix variables unless they are # supported by the current EAPI. @@ -2100,7 +2101,7 @@ fi # Note: readonly variables interfere with preprocess_ebuild_env(), so # declare them only after it has already run. if [ "${EBUILD_PHASE}" != "depend" ] ; then - declare -r ${READONLY_EBUILD_METADATA} ${READONLY_PORTAGE_VARS} + declare -r $PORTAGE_READONLY_METADATA $PORTAGE_READONLY_VARS case "$EAPI" in 0|1|2) ;; diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index 081e3b9ee..3069a08bb 100644 --- a/bin/isolated-functions.sh +++ b/bin/isolated-functions.sh @@ -610,7 +610,7 @@ save_ebuild_env() { PORTDIR_OVERLAY ${!PORTAGE_SANDBOX_*} PREROOTPATH \ PROFILE_PATHS PWORKDIR QA_INTERCEPTORS \ RC_DEFAULT_INDENT RC_DOT_PATTERN RC_ENDCOL \ - RC_INDENTATION READONLY_EBUILD_METADATA READONLY_PORTAGE_VARS \ + RC_INDENTATION \ REPLACING_VERSIONS REPLACED_BY_VERSION \ ROOT ROOTPATH RPMDIR TEMP TMP TMPDIR USE_EXPAND \ WARN XARGS _RC_GET_KV_CACHE |