From 01e902405dd6552763cf66e4077f801a65bc244b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Fri, 11 Dec 2015 22:26:45 +0100 Subject: 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. --- eclass/python-utils-r1.eclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'eclass/python-utils-r1.eclass') diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass index cf0e13496245..7830323abc05 100644 --- a/eclass/python-utils-r1.eclass +++ b/eclass/python-utils-r1.eclass @@ -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: -- cgit v1.2.3