1 |
Thomas Sachau schrieb: |
2 |
> Ulrich Mueller schrieb: |
3 |
>>>>>>> On Sun, 25 Aug 2013, Thomas Sachau wrote: |
4 |
>> |
5 |
>>> workaround: add a variable, which changes the return of the function |
6 |
>>> checking for the current ABI (always true with variable, without |
7 |
>>> only true, when $ABI == $DEFAULT_ABI) |
8 |
>> |
9 |
>> Would this variable be set by the user, in profiles, or in ebuilds? |
10 |
> |
11 |
> This variable can be set by users and profiles, when they want binaries |
12 |
> for a different ABI (e.g. 64bit toolchain with 32bit userland). |
13 |
> |
14 |
>> |
15 |
>>> first version (multilib1.patch) directly changes the output of the |
16 |
>>> currently used multilib_is_native_abi() function: |
17 |
>> |
18 |
>> I think this would be very misleading. If a function is called |
19 |
>> multilib_is_native_abi then it should test for exactly that, not for |
20 |
>> something else. |
21 |
>> |
22 |
>>> second version (multilib2.patch) creates a new function, which |
23 |
>>> should then be used by ebuild authors to check, if they should build |
24 |
>>> ABI-specific content or not (using build_binaries() function instead |
25 |
>>> of multilib_is_native_abi() function) |
26 |
>> |
27 |
>> +build_binaries() { |
28 |
>> |
29 |
>> Name space pollution? Prefix with "multilib" please. |
30 |
> |
31 |
> i dont really care about the naming, so if you prefer some multilib in |
32 |
> there, how about this: |
33 |
> |
34 |
> multilib_build_binaries()? |
35 |
> |
36 |
>> |
37 |
>> + if [[ ${COMPLETE_MULTILIB} == yes ]] ; then |
38 |
>> + return 0 |
39 |
>> + else |
40 |
>> + multilib_is_native_abi |
41 |
>> + fi |
42 |
>> |
43 |
>> This can be expressed much shorter (and clearer): |
44 |
>> |
45 |
>> [[ ${COMPLETE_MULTILIB} == yes ]] || multilib_is_native_abi |
46 |
|
47 |
Thanks for the suggestion, this has now been added with my above |
48 |
suggested name and your suggested shorter version. |
49 |
|
50 |
I will give ebuild maintainers some days to adapt their ebuilds and will |
51 |
likely start opening bugs against ebuilds next week. Anyone, who wants |
52 |
to delegate that work to me, just tell me and i will modify your ebuilds |
53 |
to use the new function. |
54 |
|
55 |
|
56 |
-- |
57 |
|
58 |
Thomas Sachau |
59 |
Gentoo Linux Developer |