Date: Thu, 5 Sep 2013 05:37:03 +0300 From: Konstantin Belousov <kostikbel@gmail.com> To: Dag-Erling Sm??rgrav <des@des.no> Cc: freebsd-arch@freebsd.org Subject: Re: /usr/lib/private Message-ID: <20130905023703.GN41229@kib.kiev.ua> In-Reply-To: <86zjrut4an.fsf@nine.des.no> References: <86zjrut4an.fsf@nine.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
--WQS/f3aCdEH+xDC1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 03, 2013 at 03:37:04PM +0200, Dag-Erling Sm??rgrav wrote: > 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). >=20 > 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. You could consider using the $PLATFORM token in the rpath, so that you use /usr/lib/private-<hw-machine-arch> as the installation target. --WQS/f3aCdEH+xDC1 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (FreeBSD) iQIcBAEBAgAGBQJSJ+5OAAoJEJDCuSvBvK1Bqa0P+gN093wyL/C5r1zpHNAKmri2 6izgq97yDGJrcgMHEolvG10vVtwoqKks1OEDJX8/u1iOykaDT8WyOfpM4qCMk9E0 mthq1jH5nSMsvijRDGvyaYy+NynxunbA0OjzrSjYXBNHbAG1j5QNDLfF7HgEBanm B8jxxHVslg66LUD2EeqgeDQ9c3CR9mNxVu+dmvyWZZzyZA1wZoXmx9vDku2bntdD uuFDzOj1y36/mkDNPEBtQspYm5pSqxx8hYr1a+97w3hQUVk86KNtaG4WSHUYg7LR Apum71D1Ns6f49+5uu/tq05kbk+uhZ8TNzZ0TToaBwg90f+lcRZT/pPzaLz1e+aK q0tBD+IpFPzdHZJf+S1nXEXs29DVD+v50e6rB8cJ9TS1HxgjXQ+T0CqndXSLAGmQ r3Ce35nv/CNNiATNGBctwPfK85gw5sbiDIAWx3Xan61qpoNEne0tAfG4rgdLT54Y M/gC/bc/Xb17DknNERfSpD31bMfUp2wRKuXk85l1ywY4Ciqox4egxIPObVJ8GJy/ EsZdB6zF4Gen1w6Hg8eziVWuMN1d6jSzBr8rAXGePyboOOF0Di8iqqHSQpcPf0kw DcsRYc/UQjY8zDwvXHHhKi1wyoTNNFb8le0ql/1xRh1mFgZqElWK6psxlATBiUbr L7ekGvXFyVpUL2b+ZkMS =oCpt -----END PGP SIGNATURE----- --WQS/f3aCdEH+xDC1--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130905023703.GN41229>