Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: tommy@g.o
Subject: Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs
Date: Sun, 03 Mar 2013 16:58:12
Message-Id: 20130303175826.24a7f0c1@pomiocik.lan
In Reply to: Re: [gentoo-dev] Re: [RFC] multilib-build.eclass and restricting unsupported ABIs by Thomas Sachau
1 On Sun, 03 Mar 2013 17:27:50 +0100
2 Thomas Sachau <tommy@g.o> wrote:
3
4 > Alexis Ballier schrieb:
5 > > On Sun, 03 Mar 2013 16:47:43 +0100
6 > > Thomas Sachau <tommy@g.o> wrote:
7 > >
8 > >> Alexis Ballier schrieb:
9 > >>> On Sun, 03 Mar 2013 14:02:58 +0100
10 > >>> Thomas Sachau <tommy@g.o> wrote:
11 > >>>>
12 > >>>> Once the eclass has per-ABI header
13 > >>>
14 > >>> I think this is needed.
15 > >>>
16 > >>>> and binaries support,
17 > >>>
18 > >>> but here, could you enlighten me on its use cases ? I can't imagine
19 > >>> why having multi binaries support would be useful.
20 > >>>
21 > >>> Alexis.
22 > >>>
23 > >>
24 > >>
25 > >> At least some binaries do have abi-specific output, which is used by
26 > >> other applications. As a good example of this, have a look at qmake
27 > >> and qmake based build systems.
28 > >
29 > > hmm, qmake doesnt seem to be the perfect example: how do you handle
30 > > this?
31 > >
32 > > - install qmake-${abi}
33 >
34 > ok
35 >
36 > > - ln -s qmake-${DEFAULT_ABI} qmake
37 >
38 > Just the same as with headers:
39 >
40 > You dont symlink the headers for the default ABI, but instead a wrapper
41 > is placed, which does then call/include the real target, so in this
42 > case, qmake is then a symlink to the abiwrapper, which does execute the
43 > real abi-specific binary, depending on the current ABI.
44 > We can of course place this abiwrapper in every place, where it is
45 > needed instead of the symlink, but having one central and package
46 > provided wrapper instead is easier to maintain and update.
47 >
48 > > - modify eqmake4 to call the right qmake when doing multilib?
49 >
50 > not needed at all (with multilib-portage), since when any package calls
51 > qmake to get any abi-specific details, the abiwrapper executes the
52 > binary, that matches the ABI and you get the right details for your ABI.
53
54 What do we need that wrapper for? What does the wrapper do? Does it
55 just rely on custom 'ABI' variable? Or maybe should it try to detect
56 whether it was called by a 64- or 32-bit app? What for?
57
58 It's just a needless complexity, a big tool to handle a few corner
59 cases. Alexis just pointed out a perfectly good way of handling it.
60
61 --
62 Best regards,
63 Michał Górny

Attachments

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

Replies