Gentoo Archives: gentoo-dev

From: Ben de Groot <yngwin@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH] autotools-multilib: wrapper eclass for multilib builds.
Date: Mon, 24 Sep 2012 03:20:07
Message-Id: CAB9SyzR7qjfeziW__Rcizwtve-yBqmcmVhC+WETB-gg2c_TiEA@mail.gmail.com
In Reply to: Re: [gentoo-dev] [PATCH] autotools-multilib: wrapper eclass for multilib builds. by "Michał Górny"
1 On 23 September 2012 18:40, Michał Górny <mgorny@g.o> wrote:
2 > On Sun, 23 Sep 2012 12:33:58 +0200
3 > Pacho Ramos <pacho@g.o> wrote:
4 >
5 >> El dom, 23-09-2012 a las 11:56 +0200, Michał Górny escribió:
6 >> > On Sun, 23 Sep 2012 11:07:30 +0200
7 >> > Thomas Sachau <tommy@g.o> wrote:
8 >> >
9 >> > > Matt Turner schrieb:
10 >> > > > On Sat, Sep 22, 2012 at 2:24 PM, Michał Górny <mgorny@g.o> wrote:
11 >> > > >> It is a simple eclass using autotools out-of-source builds to build
12 >> > > >> packages for multiple ABIs when multilib is supported.
13 >> > > >
14 >> > > > Thanks a lot, Michał! This looks good to me.
15 >> > > >
16 >> > > >> Use case: xorg packages, ask Matt.
17 >> > > >
18 >> > > > So the idea is that users want up-to-date 32-bit drivers for games and
19 >> > > > WINE. The emul- packages aren't a very good solution for a number of
20 >> > > > reasons.
21 >> > > >
22 >> > > > I'd like to add multilib USE flags to Mesa and thus its dependencies.
23 >> > > > I realized that almost everything in x11-libs/ could be converted very
24 >> > > > easily, which would allow us to get rid of emul-linux-x86-xlibs in
25 >> > > > addition to emul-linux-x86-opengl.
26 >> > > >
27 >> > > >
28 >> > >
29 >> > > This looks like a shortened duplication of a subset of multilib-portage
30 >> > > features. While this wont hurt multilib-portage (since it does exclude
31 >> > > most actions on ebuilds with USE=multilib), it will mean a rewrite for
32 >> > > many ebuilds, which then again need another rewrite (or more likely
33 >> > > revert), when multilib-portage is accepted in a future EAPI.
34 >> >
35 >> > s/when/if/
36 >> >
37 >> > > So i would prefer some help/support with multilib-portage to get it
38 >> > > accepted sooner, instead of this additional workaround for a subset of
39 >> > > packages.
40 >> >
41 >> > I prefer the simpler solution.
42 >> >
43 >> > > P.S.: I know, that users, who want up-to-date 32bit drivers for games
44 >> > > and wine do use multilib-portage, so we already have a working solution
45 >> > > for this issue.
46 >> >
47 >> > They will no longer have to do that.
48 >> >
49 >>
50 >> I would prefer if eclass way could be extended to packages not using
51 >> autotools too, otherwise, we will still need emul packages for, for
52 >> example, qt libs. If that would be possible via eclass, maybe
53 >> multilib-portage wouldn't be needed but, if not, we will still need it
54 >> and, then, would be nice if this inclussion for autotools packages
55 >> wouldn't cause more problems to get the "strong" solution land in the
56 >> "near" future :/
57 >>
58 >> The simpler solution (eclass) looks fine to me, but it would need to be
59 >> extended to more packages than autotools based ones to let it replace
60 >> portage-multilib/emul packages
61 >
62 > Qt uses cmake, doesn't it?
63
64 No, it uses qmake, its own make tool. See qt4-build and qt4-r2 eclasses.
65 KDE and a number of other reverse dependencies of the Qt libs do use cmake.
66
67 > I don't mind having cmake-multilib as well? We could probably move
68 > the foreach_abi() function to some more common eclass, like multilib
69 > eclass.
70 >
71 > --
72 > Best regards,
73 > Michał Górny
74
75
76
77 --
78 Cheers,
79
80 Ben | yngwin
81 Gentoo developer
82 Gentoo Qt project lead, Gentoo Wiki admin