mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-09 06:37:10 -08:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user