RPATH status

Jakub Jelinek jakub at redhat.com
Thu Mar 15 07:38:59 UTC 2007


On Wed, Mar 14, 2007 at 08:14:20PM -0700, Ulrich Drepper wrote:
> Enrico Scholz wrote:
> > Sorry, when $ORIGIN was really designed to allow things like '$ORIGIN/..',
> > then the design of $ORIGIN is flawed.
> 
> Nonsense.  The whole assumption that every single moronic file system
> setup must be supported is wrong.  Not everything that is technically
> possible is worth it.  A ground rule must be that /usr/bin and
> /usr/lib{,64} mustn't be symlinks.

Well, they actually can, but they either need to point to sibling
directories (say /usr/bin -> /opt/foo/bar/bin, /usr/lib -> /opt/foo/bar/lib,
/usr/lib64 -> /opt/foo/bar/lib64) or if for whatever reason they are not,
then you need symlinks in both locations (say /usr/bin -> /opt/foo/bar/bin,
/usr/lib -> /opt/bar/baz/lib, then you'd need also /opt/foo/bar/lib ->
../../bar/baz/lib and /opt/bar/baz/bin -> ../../foo/bar/bin).

This is not just for the sake of $ORIGIN/.., e.g. gcc does a similar search
for libraries and other relocatable packages do so as well.

	Jakub




More information about the fedora-devel-list mailing list