Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: New SYMLINK_LIB=no migration tool for review
Date: Wed, 02 Aug 2017 19:44:51
Message-Id: 1501703073.17909.1.camel@gentoo.org
In Reply to: [gentoo-dev] Re: New SYMLINK_LIB=no migration tool for review by Martin Vaeth
1 On śro, 2017-08-02 at 19:07 +0000, Martin Vaeth wrote:
2 > Mike Gilbert <floppym@g.o> wrote:
3 > > On Wed, Aug 2, 2017 at 1:51 PM, Martin Vaeth <martin@×××××.de> wrote:
4 > > > If this already was discussed then sorry for the noise:
5 > > >
6 > > > What is the rationale for merging lib32 with lib?
7 > > > Wouldn't it be somewhat cleaner to have a completely
8 > > > split structure
9 > > >
10 > > > lib64
11 > > > lib32
12 > > > libx32 (possibly)
13 > > > lib
14 > >
15 > > Here are a couple of reasons:
16 > >
17 > > 1. Other distros (notably Red Hat and Fedora) put 32-bit libs in "lib".
18 >
19 > According to bug 506276, Debian has instead merged 64-bit to lib.
20 > So it seems to me that there is no "mainstream" to follow.
21 > Perhaps striving for the cleanest solution would be the best?
22
23 'No mainstream' as you claim it doesn't mean it's fine to invent yet
24 another completely incompatible solution.
25
26 > > 2. The path to the 32-bit runtime linker (/lib/ld-linux.so.2) is
27 > > hard-coded in every x86 binary on your system.
28 >
29 > I am afraid that these must stay exceptional in any case:
30 > Also currently, gentoo (and if I understood correctly, also Debian
31 > and Red Hat) has the possible ld-linux{,-x86-64,-x32}.so.2 symlinks
32 > in _all_ /lib* directories; I suppose that this is not intended to
33 > change. (I assume that a change might break some proprietary binaries
34 > which might have hard-coded the "wrong" directory.)
35
36 This is not true.
37
38 $ ls /lib*/ld-linux*
39 /lib64/ld-linux-x86-64.so.2  /lib/ld-linux.so.2  /libx32/ld-linux-x32.so.2
40
41 The only symlinks ever there was in /lib64 because of the Gentoo symlink
42 deviation.
43
44 The 32-bit proprietary binaries use exactly /lib which is the main
45 reason for the switch. Plus, the linker uses /lib path independently of
46 how multilib is done on the system.
47
48 --
49 Best regards,
50 Michał Górny

Attachments

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