summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2015-12-11 22:25:17 +0100
committerMichał Górny <mgorny@gentoo.org>2015-12-11 22:27:19 +0100
commite4c940086141d6a45daefb705c261f170f178bde (patch)
tree44a9410fb269b6f00ab2169d498c9cdf788c756b /eclass
parentperl-core/ExtUtils-MakeMaker: Add a PDEPEND on virtual/perl-Test-Harness (diff)
downloadgentoo-e4c940086141d6a45daefb705c261f170f178bde.tar.gz
gentoo-e4c940086141d6a45daefb705c261f170f178bde.tar.bz2
gentoo-e4c940086141d6a45daefb705c261f170f178bde.zip
multilib-build.eclass: Replace non-portable use of 'declare -g'
Replace uses of 'declare -g -r' (bash-4.2+) with 'readonly'. Reported by Arfrever.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/multilib-build.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/multilib-build.eclass b/eclass/multilib-build.eclass
index 0d4ffd9df9b4..91885a464501 100644
--- a/eclass/multilib-build.eclass
+++ b/eclass/multilib-build.eclass
@@ -38,7 +38,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.
-declare -g -r _MULTILIB_FLAGS=(
+readonly _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
@@ -124,7 +124,7 @@ _multilib_build_set_globals() {
local usedeps=${flags[@]/%/(-)?}
IUSE=${flags[*]}
- declare -g -r MULTILIB_USEDEP=${usedeps// /,}
+ readonly MULTILIB_USEDEP=${usedeps// /,}
}
_multilib_build_set_globals
unset -f _multilib_build_set_globals