diff options
author | 2017-03-24 21:42:08 +0100 | |
---|---|---|
committer | 2017-04-14 18:27:50 +0200 | |
commit | 6d500fe9685086e024f6a876d42c49985f005a88 (patch) | |
tree | a137ea998a2fd733cd0f716882ff77f934613867 | |
parent | enlightenment.eclass: Replace eutils inherit w/ split eclasses (diff) | |
download | gentoo-6d500fe9685086e024f6a876d42c49985f005a88.tar.gz gentoo-6d500fe9685086e024f6a876d42c49985f005a88.tar.bz2 gentoo-6d500fe9685086e024f6a876d42c49985f005a88.zip |
toolchain-glibc.eclass: Replace evar_* with local variables
Use local variable to limit the scope of ABI variable override. This is
a builtin bash solution that is reliable and simple, unlike the complex
evar_* logic that unnecessarily pollutes global variables.
-rw-r--r-- | eclass/toolchain-glibc.eclass | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/eclass/toolchain-glibc.eclass b/eclass/toolchain-glibc.eclass index d410775759df..365198303e8f 100644 --- a/eclass/toolchain-glibc.eclass +++ b/eclass/toolchain-glibc.eclass @@ -381,15 +381,13 @@ foreach_abi() { else abilist=${DEFAULT_ABI} fi - evar_push ABI - export ABI + local -x ABI for ABI in ${abilist:-default} ; do setup_env einfo "Running $1 for ABI ${ABI}" $1 : $(( ret |= $? )) done - evar_pop return ${ret} } |