Subject: Re: NetBSD packages and LD_LIBRARY_PATH
To: None <email@example.com>
From: Joerg Sonnenberger <firstname.lastname@example.org>
Date: 10/25/2005 12:20:40
On Tue, Oct 25, 2005 at 11:43:03AM +0200, Hauke Fath wrote:
> recently I got complaints from users who called native NetBSD
> applications from Matlab's shell exit and saw them fail. When I
> investigated I found that those applications (typically of the more
> complex variant, like XEmacs or Firefox) tend to pick up Linux shared
> libraries. The environment that Matlab sets up for a shell exit
> >> !echo $LD_LIBRARY_PATH
That's the reason why I normally install the programs completely under
> which apparently is enough to confuse said applications. A wrapper
> script that unsets LD_LIBRARY_PATH successfully works around this;
> but it adds to the perception that NetBSD "always has to be a bit
> more complicated".
It is not a NetBSD problem, the same happens on Linux, but the results
are not as bad.
> Since NetBSD considers LD_LIBRARY_PATH deprecated for ELF binaries:
> Is there a way of globally keeping native binaries from looking at
Well, you could make them suid/sgid, but otherwise no. LD_LIBRARY_PATH
can not be avoided in some situations, even though stupid wrapper
scripts are concertainly not that reason.
Have you looked at using chrpath to eliminiate the need for the
LD_LIBRARY_PATH in Matlab?