python*-r1.eclass: Replace non-portable use of 'declare -g'

Replace uses of 'declare -g -r' (bash-4.2+) with 'readonly'. Reported
by Arfrever. This time use split assignments followed by readonly calls
since combined calls work unreliably.
This commit is contained in:
Michał Górny
2015-12-11 23:42:33 +01:00
parent f22f4e475c
commit 01e902405d
4 changed files with 9 additions and 7 deletions
+2 -1
View File
@@ -40,12 +40,13 @@ inherit toolchain-funcs
# @INTERNAL
# @DESCRIPTION:
# All supported Python implementations, most preferred last.
declare -g -r _PYTHON_ALL_IMPLS=(
_PYTHON_ALL_IMPLS=(
python2_7
python3_3 python3_4 python3_5
pypy pypy3
jython2_7
)
readonly _PYTHON_ALL_IMPLS
# @FUNCTION: _python_impl_supported
# @USAGE: <impl>