Gentoo Archives: gentoo-dev

From: Pacho Ramos <pacho@g.o>
To: "Michał Górny" <mgorny@g.o>
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH] autotools-multilib: wrapper eclass for multilib builds.
Date: Sun, 23 Sep 2012 11:05:02
Message-Id: 1348398236.2085.83.camel@belkin4
In Reply to: Re: [gentoo-dev] [PATCH] autotools-multilib: wrapper eclass for multilib builds. by "Michał Górny"
1 El dom, 23-09-2012 a las 12:40 +0200, Michał Górny escribió:
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 > I don't mind having cmake-multilib as well? We could probably move
65 > the foreach_abi() function to some more common eclass, like multilib
66 > eclass.
67 >
68
69 Looks interesting, yes, it uses cmake. I guess we would need to move all
70 packages needing 32bits libs to this eclasses. Are you sure wouldn't be
71 better to try to go to an "upper" level like Alexis Ballier suggested
72 some messages ago?:
73 "On Sat, 22 Sep 2012 23:24:46 +0200
74 Michał Górny <mgorny@g.o> wrote:
75
76 > It is a simple eclass using autotools out-of-source builds to build
77 > packages for multiple ABIs when multilib is supported.
78 >
79
80 to some extent, can't you do the same by unpacking twice to different
81 $S and calling src_prepare/compile/install instead of their
82 autotools-utils counterpart with tweaked $S so that it works with almost
83 every ebuild ?
84
85 -- this really starts to resemble multilib portage :)"
86
87 That would be better as there are a ton of ebuilds not inheritting
88 autotools-utils.eclass even being autotools based (think for example in
89 gnome packages or many others)

Attachments

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

Replies