toolchain.eclass: fix cygwinports patching
authorMichael Haubenwallner <haubi@gentoo.org>
Mon, 16 Mar 2020 17:26:33 +0000 (18:26 +0100)
committerMichael Haubenwallner <haubi@gentoo.org>
Tue, 17 Mar 2020 07:49:05 +0000 (08:49 +0100)
Introduction of tc_apply_patches dropped patch dir, per
commit bd758f25a82460f6e7011314f9fb7923864e9e1e

Signed-off-by: Michael Haubenwallner <haubi@gentoo.org>
eclass/toolchain.eclass

index 9f4359219225deac296c10464df4c6e933b6efa7..7135af0817d9c6bc960e2434f3cacc9c530b7a1e 100644 (file)
@@ -646,7 +646,13 @@ do_gcc_CYGWINPORTS_patches() {
 
        local p d="${WORKDIR}/gcc-${CYGWINPORTS_GITREV}"
        # readarray -t is available since bash-4.4 only, #690686
-       local patches=( $(sed -e '1,/PATCH_URI="/d;/"/,$d' < "${d}"/gcc.cygport) )
+       local patches=( $(
+               for p in $(
+                       sed -e '1,/PATCH_URI="/d;/"/,$d' < "${d}"/gcc.cygport
+               ); do
+                       echo "${d}/${p}"
+               done
+       ) )
        tc_apply_patches "Applying cygwin port patches ..." ${patches[*]}
 }