Gentoo Archives: gentoo-dev

From: Nathan Phillip Brink <ohnobinki@××××××××××××××.net>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Packaging LSB symlinks for ld-linux.so
Date: Mon, 31 Jan 2011 15:23:44
Message-Id: 20110131152321.GW1713@ohnopublishing.net
In Reply to: [gentoo-dev] Packaging LSB symlinks for ld-linux.so by Vlastimil Babka
1 On Mon, Jan 31, 2011 at 04:14:47PM +0100, Vlastimil Babka wrote:
2 > Hi,
3 >
4 > when trying to bump sci-geosciences/googleearth to a 6 beta version [1],
5 > there's a problem with missing /lib/ld-lsb.so.3 file, which the binary
6 > somehow requires, and otherwise fails with a rather cryptic error
7 > message (saying that the binary itself is missing).
8 > Apparently this is mandated by LSB and some distros provide it in
9 > packages such as lsb-core (debian/ubuntu), redhat-lsb (fedora) or
10 > glibc-lsb (mandriva), possibly along with other files. It's always a
11 > symlink to ld-linux.so.2.
12 >
13 > Gentoo only seems to have one lsb-related package (sys-apps/lsb-release)
14 > which is just some query script.
15 >
16 > So, I think the options are:
17 >
18 > 1) adding the symlink to the googleearth itself
19 > 2) adding an extra package for the symlinks
20 > 3) adding the symlink to glibc itself
21 > 4) working around it somehow
22 >
23 > I've tried 4) with no luck (executing "ld-linux.so.2 googleearth-bin",
24 > trying LD_LIBRARY_PATH overrides, putting ld-lsb.so.3 symlink in the
25 > same directory as the binary), nothing worked except creating the
26 > symlink under /lib. If there was a way, it would be easiest for me.
27 >
28 > Doing 1) would be easy but rather incorrect and possibly result in
29 > collisions in the future.
30 >
31 > Doing 3) would be a question for glibc maintainers (didn't try yet), but
32 > I guess they won't like it.
33 >
34 > Doing 2) is a question of what package to put it in and what else to put
35 > there. Frankly, I don't want to study all of LSB to see what's the
36 > lsb-core/redhat-lsb packages about, just to get googleearth working, if
37 > there's no general interest in LSB compliance. The mandriva approach
38 > seems easiest for my needs (it's just the ld symlinks and nothing more).
39 > But I understand that I shouldn't make such decision myself, so I ask
40 > here. Thoughs?
41
42 Have you checked if patchelf can fix the googleearth binary? I think
43 that it is intended for this sort of problem:
44 http://nixos.org/patchelf.html .
45
46
47 > [1] https://bugs.gentoo.org/show_bug.cgi?id=348911
48 >
49
50 --
51 binki
52
53 Look out for missing apostrophes!

Replies

Subject Author
Re: [gentoo-dev] Packaging LSB symlinks for ld-linux.so Vlastimil Babka <caster@g.o>