1 |
mgorny 14/05/23 07:11:53 |
2 |
|
3 |
Modified: ChangeLog multilib-build.eclass |
4 |
Log: |
5 |
Introduce multilib_get_enabled_abi_pairs() to obtain list containing both ABI values and USE flag names. |
6 |
|
7 |
Revision Changes Path |
8 |
1.1266 eclass/ChangeLog |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1266&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1266&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.1265&r2=1.1266 |
13 |
|
14 |
Index: ChangeLog |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v |
17 |
retrieving revision 1.1265 |
18 |
retrieving revision 1.1266 |
19 |
diff -u -r1.1265 -r1.1266 |
20 |
--- ChangeLog 23 May 2014 07:09:07 -0000 1.1265 |
21 |
+++ ChangeLog 23 May 2014 07:11:53 -0000 1.1266 |
22 |
@@ -1,6 +1,10 @@ |
23 |
# ChangeLog for eclass directory |
24 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1265 2014/05/23 07:09:07 mgorny Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1266 2014/05/23 07:11:53 mgorny Exp $ |
27 |
+ |
28 |
+ 23 May 2014; Michał Górny <mgorny@g.o> multilib-build.eclass: |
29 |
+ Introduce multilib_get_enabled_abi_pairs() to obtain list containing both ABI |
30 |
+ values and USE flag names. |
31 |
|
32 |
23 May 2014; Michał Górny <mgorny@g.o> git-r3.eclass: |
33 |
Give an explanatory error when trying to fetch https:// with |
34 |
|
35 |
|
36 |
|
37 |
1.49 eclass/multilib-build.eclass |
38 |
|
39 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/multilib-build.eclass?rev=1.49&view=markup |
40 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/multilib-build.eclass?rev=1.49&content-type=text/plain |
41 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/multilib-build.eclass?r1=1.48&r2=1.49 |
42 |
|
43 |
Index: multilib-build.eclass |
44 |
=================================================================== |
45 |
RCS file: /var/cvsroot/gentoo-x86/eclass/multilib-build.eclass,v |
46 |
retrieving revision 1.48 |
47 |
retrieving revision 1.49 |
48 |
diff -u -r1.48 -r1.49 |
49 |
--- multilib-build.eclass 12 May 2014 21:56:17 -0000 1.48 |
50 |
+++ multilib-build.eclass 23 May 2014 07:11:53 -0000 1.49 |
51 |
@@ -1,6 +1,6 @@ |
52 |
# Copyright 1999-2014 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/multilib-build.eclass,v 1.48 2014/05/12 21:56:17 mgorny Exp $ |
55 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/multilib-build.eclass,v 1.49 2014/05/23 07:11:53 mgorny Exp $ |
56 |
|
57 |
# @ECLASS: multilib-build.eclass |
58 |
# @MAINTAINER: |
59 |
@@ -106,6 +106,21 @@ |
60 |
multilib_get_enabled_abis() { |
61 |
debug-print-function ${FUNCNAME} "${@}" |
62 |
|
63 |
+ local pairs=( $(multilib_get_enabled_abi_pairs) ) |
64 |
+ echo "${pairs[@]#*:}" |
65 |
+} |
66 |
+ |
67 |
+# @FUNCTION: multilib_get_enabled_abi_pairs |
68 |
+# @DESCRIPTION: |
69 |
+# Return the ordered list of enabled <use-flag>:<ABI> pairs |
70 |
+# if multilib builds are enabled. The best (most preferred) |
71 |
+# ABI will come last. |
72 |
+# |
73 |
+# If multilib is disabled, the default ABI will be returned |
74 |
+# along with empty <use-flag>. |
75 |
+multilib_get_enabled_abi_pairs() { |
76 |
+ debug-print-function ${FUNCNAME} "${@}" |
77 |
+ |
78 |
local abis=( $(get_all_abis) ) |
79 |
|
80 |
local abi i found |
81 |
@@ -119,7 +134,7 @@ |
82 |
# for the split is more complex than cheating like this |
83 |
for m_abi in ${m_abis//,/ }; do |
84 |
if [[ ${m_abi} == ${abi} ]] && use "${m_flag}"; then |
85 |
- echo "${abi}" |
86 |
+ echo "${m_flag}:${abi}" |
87 |
found=1 |
88 |
break 2 |
89 |
fi |
90 |
@@ -134,7 +149,7 @@ |
91 |
|
92 |
debug-print "${FUNCNAME}: no ABIs enabled, fallback to ${abi}" |
93 |
debug-print "${FUNCNAME}: ABI=${ABI}, DEFAULT_ABI=${DEFAULT_ABI}" |
94 |
- echo ${abi} |
95 |
+ echo ":${abi}" |
96 |
fi |
97 |
} |