-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Fink "the" and "regina" packages appear to be setting the environment
variable DYLD_LIBRARY_PATH to %p/lib in its profile.d scripts. This
causes very undesirable behavior when I attempt to maintain two versions
of a library, one installed by fink as a dependency and the other of my own
compilation for a special project. Is there any particular need for
DYLD_LIBRARY_PATH? I can only think of a certain set of limited
circumstances when it should be used, only to replace bad behavior of a
system library with your own. If you really need it, perhaps you could
replace %p/lib with %p/lib/the, and install the extra libraries in %p/lib/the,
that way it will not affect libraries that I wish to use as the defaults
elsewhere. The hidden gotcha with that particular env var is that though
the program compiles and links with the correct library, it does not use it at
runtime, which is a big problem if the two libraries are different versions.
Does anybody else have any comments, or should we suggest that porters
avoid the usage of DYLD_LIBRARY_PATH in packages? I just spent an
hour and a half trying to debug my application to figure out why it crashed
on one machine and not another. The answer was that I was trying to use
a library in /usr/local, but the DYLD_LIBRARY_PATH variable caused the
linker to always use the one it found in /sw/lib, despite the fact that my
program was linked to the one in /usr/local.
Cheers, Kyle Moffett
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin)
iD8DBQE/xWr2ag7LSGnFq10RAlVBAKDTzmYmwPFPYvDeM70ZeAdIhCZ8tQCg7MhB /btslPStf9D++m+wGiIf944= =weoG -----END PGP SIGNATURE-----
------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel