summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2015-12-06 16:12:45 +0100
committerMichał Górny <mgorny@gentoo.org>2015-12-09 21:41:16 +0100
commitf8e6b812abca6132a0d4d2bee404aee87665ee9d (patch)
tree572d5d0ee73cb28d9c143723af695ab91f63cb6e /eclass/multilib-build.eclass
parentmedia-sound/spotify: adding zenety for file picking (diff)
downloadgentoo-f8e6b812abca6132a0d4d2bee404aee87665ee9d.tar.gz
gentoo-f8e6b812abca6132a0d4d2bee404aee87665ee9d.tar.bz2
gentoo-f8e6b812abca6132a0d4d2bee404aee87665ee9d.zip
multilib-build.eclass: Mark eclass-generated variables read-only
Diffstat (limited to 'eclass/multilib-build.eclass')
-rw-r--r--eclass/multilib-build.eclass7
1 files changed, 4 insertions, 3 deletions
diff --git a/eclass/multilib-build.eclass b/eclass/multilib-build.eclass
index ca0fd5444111..dd0355351e8e 100644
--- a/eclass/multilib-build.eclass
+++ b/eclass/multilib-build.eclass
@@ -37,7 +37,7 @@ inherit multibuild multilib
# Please contact multilib before modifying this list. This way we can
# ensure that every *preliminary* work is done and the multilib can be
# extended safely.
-_MULTILIB_FLAGS=(
+declare -g -r _MULTILIB_FLAGS=(
abi_x86_32:x86,x86_fbsd,x86_freebsd,x86_linux,x86_macos,x86_solaris
abi_x86_64:amd64,amd64_fbsd,x64_freebsd,amd64_linux,x64_macos,x64_solaris
abi_x86_x32:x32
@@ -123,7 +123,7 @@ _multilib_build_set_globals() {
local usedeps=${flags[@]/%/(-)?}
IUSE=${flags[*]}
- MULTILIB_USEDEP=${usedeps// /,}
+ declare -g -r MULTILIB_USEDEP=${usedeps// /,}
}
_multilib_build_set_globals
@@ -196,9 +196,10 @@ _multilib_multibuild_wrapper() {
debug-print-function ${FUNCNAME} "${@}"
local ABI=${MULTIBUILD_VARIANT#*.}
- local MULTILIB_ABI_FLAG=${MULTIBUILD_VARIANT%.*}
+ local -r MULTILIB_ABI_FLAG=${MULTIBUILD_VARIANT%.*}
multilib_toolchain_setup "${ABI}"
+ readonly ABI
"${@}"
}