1 |
commit: 864b148cbfd35252de45e48beb2704b4675044ae |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 27 15:19:18 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 28 19:26:07 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=864b148c |
7 |
|
8 |
dev-util/mingw64-toolchain: fix array check |
9 |
|
10 |
Unimportant given variables are prefixed and unlikely |
11 |
users set any of these (check is to ignore envionment), |
12 |
but was wrong anyway. |
13 |
|
14 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
15 |
|
16 |
dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0.ebuild | 4 ++-- |
17 |
1 file changed, 2 insertions(+), 2 deletions(-) |
18 |
|
19 |
diff --git a/dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0.ebuild b/dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0.ebuild |
20 |
index e0569a0e7981..5347cee7ffdc 100644 |
21 |
--- a/dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0.ebuild |
22 |
+++ b/dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0.ebuild |
23 |
@@ -203,8 +203,8 @@ src_compile() { |
24 |
# mostly unused here, so use configure directly |
25 |
eval ' |
26 |
local conf=( "${WORKDIR}/${1}"/configure "${conf[@]}" ) |
27 |
- [[ ${conf_'${id}'@a} ]] && conf+=( "${conf_'${id}'[@]}" ) |
28 |
- [[ ${2} && ${conf_'${id}_${2}'@a} ]] && conf+=( "${conf_'${id}_${2}'[@]}" ) |
29 |
+ [[ ${conf_'${id}'@a} =~ a ]] && conf+=( "${conf_'${id}'[@]}" ) |
30 |
+ [[ ${2} && ${conf_'${id}_${2}'@a} =~ a ]] && conf+=( "${conf_'${id}_${2}'[@]}" ) |
31 |
conf+=( ${EXTRA_ECONF} ${MWT_'${id^^}'_CONF} ) |
32 |
[[ ${2} ]] && conf+=( ${MWT_'${1^^}_${2^^}'_CONF} )' |