Gentoo Archives: gentoo-dev

From: Thomas Sachau <tommy@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs
Date: Sun, 03 Mar 2013 16:28:12
Message-Id: 51337A06.20400@gentoo.org
In Reply to: Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs by Alexis Ballier
1 Alexis Ballier schrieb:
2 > On Sun, 03 Mar 2013 16:47:43 +0100
3 > Thomas Sachau <tommy@g.o> wrote:
4 >
5 >> Alexis Ballier schrieb:
6 >>> On Sun, 03 Mar 2013 14:02:58 +0100
7 >>> Thomas Sachau <tommy@g.o> wrote:
8 >>>>
9 >>>> Once the eclass has per-ABI header
10 >>>
11 >>> I think this is needed.
12 >>>
13 >>>> and binaries support,
14 >>>
15 >>> but here, could you enlighten me on its use cases ? I can't imagine
16 >>> why having multi binaries support would be useful.
17 >>>
18 >>> Alexis.
19 >>>
20 >>
21 >>
22 >> At least some binaries do have abi-specific output, which is used by
23 >> other applications. As a good example of this, have a look at qmake
24 >> and qmake based build systems.
25 >
26 > hmm, qmake doesnt seem to be the perfect example: how do you handle
27 > this?
28 >
29 > - install qmake-${abi}
30
31 ok
32
33 > - ln -s qmake-${DEFAULT_ABI} qmake
34
35 Just the same as with headers:
36
37 You dont symlink the headers for the default ABI, but instead a wrapper
38 is placed, which does then call/include the real target, so in this
39 case, qmake is then a symlink to the abiwrapper, which does execute the
40 real abi-specific binary, depending on the current ABI.
41 We can of course place this abiwrapper in every place, where it is
42 needed instead of the symlink, but having one central and package
43 provided wrapper instead is easier to maintain and update.
44
45 > - modify eqmake4 to call the right qmake when doing multilib?
46
47 not needed at all (with multilib-portage), since when any package calls
48 qmake to get any abi-specific details, the abiwrapper executes the
49 binary, that matches the ABI and you get the right details for your ABI.
50
51 --
52
53 Thomas Sachau
54 Gentoo Linux Developer

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies