1 |
On Thu, 8 Aug 2019 12:53:37 +0200 |
2 |
Michael Haubenwallner <haubi@g.o> wrote: |
3 |
|
4 |
> Closes: https://bugs.gentoo.org/690686 |
5 |
> --- |
6 |
> eclass/toolchain.eclass | 4 ++-- |
7 |
> 1 file changed, 2 insertions(+), 2 deletions(-) |
8 |
|
9 |
Looks good! |
10 |
|
11 |
> diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass |
12 |
> index 6bc04b4cbfe..40d46ed0707 100644 |
13 |
> --- a/eclass/toolchain.eclass |
14 |
> +++ b/eclass/toolchain.eclass |
15 |
> @@ -687,9 +687,9 @@ do_gcc_CYGWINPORTS_patches() { |
16 |
> [[ -n ${CYGWINPORTS_GITREV} ]] || return 0 |
17 |
> use elibc_Cygwin || return 0 |
18 |
> |
19 |
> - local -a patches |
20 |
> local p d="${WORKDIR}/gcc-${CYGWINPORTS_GITREV}" |
21 |
> - readarray -t patches < <(sed -e '1,/PATCH_URI="/d;/"/,$d' < "${d}"/gcc.cygport) |
22 |
> + # readarray -t is available since bash-4.4 only, #690686 |
23 |
> + local patches=( $(sed -e '1,/PATCH_URI="/d;/"/,$d' < "${d}"/gcc.cygport) ) |
24 |
> for p in ${patches[*]}; do |
25 |
> epatch "${d}/${p}" |
26 |
> done |
27 |
> -- |
28 |
> 2.21.0 |
29 |
> |
30 |
> |
31 |
|
32 |
|
33 |
-- |
34 |
|
35 |
Sergei |