Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: amd64@g.o, releng@g.o, aballier@g.o, x11@g.o, "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 1/2] Order ABIs following MULTILIB_ABIS.
Date: Sun, 27 Jan 2013 22:46:24
Message-Id: 1359326768-4342-2-git-send-email-mgorny@gentoo.org
In Reply to: Re: [gentoo-dev] [PATCH 2/5] Use explicit abi_* flags to select multilib targets. by "Michał Górny"
1 This ensures that profile order is preserved.
2 ---
3 gx86/eclass/multilib-build.eclass | 23 +++++++++++++----------
4 1 file changed, 13 insertions(+), 10 deletions(-)
5
6 diff --git a/gx86/eclass/multilib-build.eclass b/gx86/eclass/multilib-build.eclass
7 index a6104e0..96bf26f 100644
8 --- a/gx86/eclass/multilib-build.eclass
9 +++ b/gx86/eclass/multilib-build.eclass
10 @@ -64,16 +64,19 @@ _multilib_build_set_globals
11 multilib_get_enabled_abis() {
12 debug-print-function ${FUNCNAME} "${@}"
13
14 - local supported_abis=$(get_all_abis)
15 - local i found
16 - for i in "${_MULTILIB_FLAGS[@]}"; do
17 - local abi=${i#*:}
18 - local flag=${i%:*}
19 -
20 - if has "${abi}" ${supported_abis} && use "${flag}"; then
21 - echo "${abi}"
22 - found=1
23 - fi
24 + local abis=( $(get_all_abis) )
25 +
26 + local abi i found
27 + for abi in "${abis[@]}"; do
28 + for i in "${_MULTILIB_FLAGS[@]}"; do
29 + local m_abi=${i#*:}
30 + local m_flag=${i%:*}
31 +
32 + if [[ ${m_abi} == ${abi} ]] && use "${m_flag}"; then
33 + echo "${abi}"
34 + found=1
35 + fi
36 + done
37 done
38
39 if [[ ! ${found} ]]; then
40 --
41 1.8.1.1