Gentoo Archives: gentoo-dev

From: "Santiago M. Mola" <coldwind@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Real multilib support for Gentoo
Date: Sat, 04 Apr 2009 13:48:22
Message-Id: 3c32af40904040647r4bb5c8c0gfbaf5f58c7de43a0@mail.gmail.com
In Reply to: [gentoo-dev] Real multilib support for Gentoo by Thomas Sachau
1 On Sat, Apr 4, 2009 at 2:59 PM, Thomas Sachau <tommy@g.o> wrote:
2 > Hi folks,
3 >
4 >
5 > i would like to hear about other opinions about real multilib support within our tree and package
6 > managers. From what i know, there are mainly 2 different ideas:
7
8 The proposals are not exactly these.
9
10 1. Make package managers multilib-aware [1][2].
11
12 Package managers would be able to have a default ABI (say, x86_64) and
13 optional ones (x86). Everything would be built for the default ABI,
14 and the package manager could build things for optional ABIs on an as
15 needed basis. That is, if I install a 32bit binary package, the
16 package manager will build any 32bit libraries it needs automatically.
17
18 Package managers will have to expose to ebuilds a mechanism to iterate
19 over enabled ABIs and build anything needed for each one.
20
21 Pros:
22 - Any package can be made multilib aware, getting rid of the emul-* packages.
23 - 32bit libraries are built automatically and as needed.
24 - This system can be extended to support other kind of ABIs. Making it
25 possible to build packages for various versions of Python/GHC/etc
26 simultaneously.
27
28 Cons:
29 - Needs to be implemented on the PM-side and needs a new EAPI.
30
31 2. Implement multilib on the ebuild level.
32
33 For amd64, this would mean adding a 'lib32' USE flag to every multilib
34 ebuild, and use it for building 32bit libs as needed.
35
36 Pros:
37 - Any package can be made multilib aware, getting rid of the emul-* packages.
38 - Doesn't need PM changes.
39
40 Cons:
41 - Package manager won't be multilib-aware, so it won't be able to
42 build 32bit libraries automatically and as needed.
43 - Users will have to enable 'lib32' USE flag manually for every
44 library they needed. Enabling 'lib32' by default is not an option
45 since it would build tons of unneeded 32bit libraries for every user.
46
47
48 [1] http://dev.exherbo.org/~pioto/abi-ideas.html
49 [2] http://bugs.gentoo.org/show_bug.cgi?id=145737
50
51 Regards,
52 --
53 Santiago M. Mola
54 Jabber ID: cooldwind@×××××.com

Replies

Subject Author
Re: [gentoo-dev] Real multilib support for Gentoo Thilo Bangert <bangert@g.o>