Gentoo Archives: gentoo-alt

From: Fabian Groffen <grobian@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] revdep-rebuild and install_name
Date: Fri, 11 May 2007 12:44:58
Message-Id: 20070511124446.GB21372@gentoo.org
In Reply to: Re: [gentoo-alt] revdep-rebuild and install_name by Johan Hattne
1 On 10-05-2007 12:26:47 +0200, Johan Hattne wrote:
2 > I think there will always be a path for a dynamic library: if one wasn't
3
4 On Darwin, yes.
5
6 >>>> readline patch: I don't understand it
7 >>>
8 >>> readline is configured with --libdir=/usr/lib. Then all libraries are
9 >>> moved to /lib. I wanted to create symlinks for all libraries moved. I
10 >>> guess the intention would have been clearer if I had configured with
11 >>> --libdir=/lib and skipped the move altogether (not tested).
12 >
13 > What I don't understand is why readline is configured to /usr/lib if
14 > everything is going to be moved to /lib anyway? To me it seems clearer to
15 > configure to /lib, and then create whatever symlinks/wrappers in /usr/lib
16 > are needed to prevent static linking.
17
18 I finally understand your problem here. It *is* a problem actually.
19 Curses is done in the right way, libreadline (maybe because of Darwin in
20 the past) is done wrong, IMO. It should be configured to install into
21 /lib iso /usr/lib. The problem here is that the Darwin linker wants a
22 real file, but doesn't check if it exists, so something linking to
23 readline now ends up with a link to usr/lib/libreadline.5.2.dylib, which
24 doesn't exist (any more). This is because usr/lib/libreadline.dylib
25 simply refers to usr/lib/libreadline.5.2.dylib. (i.e. it is broken!)
26
27 > I'm all for alignment, too. And I have a lot to learn!
28
29 Your point is actually valid, so thanks again.
30
31
32 --
33 Fabian Groffen
34 Gentoo on a different level
35
36 --
37 gentoo-alt@g.o mailing list