toolchain.eclass (do_gcc_CYGWINPORTS_patches): avoid bash-4.4ism
authorMichael Haubenwallner <haubi@gentoo.org>
Thu, 8 Aug 2019 10:51:08 +0000 (12:51 +0200)
committerMichael Haubenwallner <haubi@gentoo.org>
Mon, 12 Aug 2019 06:34:22 +0000 (08:34 +0200)
Closes: https://bugs.gentoo.org/690686
Signed-off-by: Michael Haubenwallner <haubi@gentoo.org>
eclass/toolchain.eclass

index 6bc04b4cbfe4cd82b16def6fd899e705ebc319a3..40d46ed07075fc25363a21421eaa14a146926efe 100644 (file)
@@ -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