Gentoo Archives: gentoo-osx

From: Christopher Chan <cchan@×××××××××××.com>
To: gentoo-osx@l.g.o
Subject: RE: [gentoo-osx] [PREFIX] LD_LIBRARY_PATH issue
Date: Wed, 06 Sep 2006 19:47:33
Message-Id: 004c01c6d1ed$15fc7a00$491610ac@cardigan
In Reply to: Re: [gentoo-osx] [PREFIX] LD_LIBRARY_PATH issue by Michael Haubenwallner
1 Looking forward to the patches, I'm just sourcing environment scripts as
2 well.
3
4 -----Original Message-----
5 From: Michael Haubenwallner [mailto:michael.haubenwallner@×××××××.at]
6 Sent: Wednesday, September 06, 2006 6:38 AM
7 To: gentoo-osx@l.g.o
8 Subject: Re: [gentoo-osx] [PREFIX] LD_LIBRARY_PATH issue
9
10 Hi,
11
12 this is one reason why i never stopped using my toolsbox to bootstrap
13 portage: it creates environment-scripts, besides others containing those
14 LD_LIBRARY_PATH bits. And well, this is called SHLIB_PATH on HP-UX and
15 LIBPATH on AIX.
16
17 And for the running portage, i've some patches to let portage
18 dynamically extend the list of extendable variables with values
19 from /etc/env.d/ files.
20 In combination with some baselayout-packages, which do those
21 configuration through /etc/env.d/, i'm able to inform portage to dupe
22 the value of LDPATH into LD_LIBRARY_PATH, SHLIB_PATH or LIBPATH,
23 depending on the profile, which unmask the correct baselayout for a
24 specific platform.
25
26 Patches/ebuilds coming soon ...
27
28 -- haubi
29
30 On Wed, 2006-09-06 at 14:58 +0200, Grobian wrote:
31 > Hi all,
32 >
33 > While trying to get "system" emerged, I ran into a problem with perl.
34 > For a change, perl doesn't seem to be the problem itself to me :D
35 >
36 > The problem is that perl links against gdbm which succeeds fine, but
37 > then when running the linked executable, it fails to find (the right)
38 > gdbm. I think that all packages before perl just didn't link against
39 > dynamic libraries, or that my native system happened to have the same or
40 > sufficient libraries installed. The problem is of course that the
41 > dynamic (runtime) linker has to know that dynamic libraries exist on
42 > other paths than the usual system paths. This is typically done using
43 > the LD_LIBRARY_PATH environment variable.
44 >
45 > I made a temporary hack using a profile.bash file to set the
46 > LD_LIBRARY_PATH for portage itself. The whole issue triggered some
47 > questions for me:
48 > - should portage "inject" LD_LIBRARY_PATH itself in prefix to make sure
49 > its environment is correct?
50 > - all our shells should set LD_LIBRARY_PATH, right?
51 > - if the shell sets it, portage uses it, does it? If so, the inject
52 > should not be necessary if you require a portage built shell to be
53 > used. During bootstrap this is a problem (the phase I'm in)
54 >
55 > comments?
56 >
57 > --
58 > Fabian Groffen
59 > Gentoo for Mac OS X Project
60
61 --
62 gentoo-osx@g.o mailing list
63
64
65 --
66 gentoo-osx@g.o mailing list