/usr/lib/private

Dag-Erling Smørgrav des at des.no
Tue Sep 3 13:37:35 UTC 2013


The attached patch introduces a mechanism for installing libraries into
/usr/lib/private, which is not in the standard rtld search path, and
setting -rpath accordingly for programs and libraries that need one of
those libraries.  Private libraries are meant for internal use only and
need to be kept out of the way so they don't conflict with similarly-
named libraries installed by ports.  The first to go is libssh (which
shouldn't even exist, but that's another story).

There is one issue this patch does not address: 32-bit binaries which
reference private libraries on a 64-bit system won't find them.  This
can be fixed by having rtld automagically translate /usr/lib/private to
/usr/lib32/private when appropriate, which is rather gross.

I intend to commit this shortly - it is blocking DNSSEC for FreeBSD 10.

DES
-- 
Dag-Erling Smørgrav - des at des.no

-------------- next part --------------
A non-text attachment was scrubbed...
Name: head-privatelib.diff
Type: text/x-patch
Size: 12725 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20130903/a2e3a731/attachment.bin>


More information about the freebsd-arch mailing list