summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Haubenwallner <haubi@gentoo.org>2019-08-08 12:51:08 +0200
committerMichael Haubenwallner <haubi@gentoo.org>2019-08-12 08:34:22 +0200
commit84fc5c9d1092eeacdf29900874d83fedca5bdacc (patch)
treea94c792002f2f0fb87256e20edb623af754a6340 /eclass/toolchain.eclass
parentmedia-plugins/hexter: Drop 1.0.2 (diff)
downloadgentoo-84fc5c9d1092eeacdf29900874d83fedca5bdacc.tar.gz
gentoo-84fc5c9d1092eeacdf29900874d83fedca5bdacc.tar.bz2
gentoo-84fc5c9d1092eeacdf29900874d83fedca5bdacc.zip
toolchain.eclass (do_gcc_CYGWINPORTS_patches): avoid bash-4.4ism
Closes: https://bugs.gentoo.org/690686 Signed-off-by: Michael Haubenwallner <haubi@gentoo.org>
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r--eclass/toolchain.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 6bc04b4cbfe4..40d46ed07075 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -687,9 +687,9 @@ do_gcc_CYGWINPORTS_patches() {
[[ -n ${CYGWINPORTS_GITREV} ]] || return 0
use elibc_Cygwin || return 0
- local -a patches
local p d="${WORKDIR}/gcc-${CYGWINPORTS_GITREV}"
- readarray -t patches < <(sed -e '1,/PATCH_URI="/d;/"/,$d' < "${d}"/gcc.cygport)
+ # readarray -t is available since bash-4.4 only, #690686
+ local patches=( $(sed -e '1,/PATCH_URI="/d;/"/,$d' < "${d}"/gcc.cygport) )
for p in ${patches[*]}; do
epatch "${d}/${p}"
done