From owner-freebsd-arch@FreeBSD.ORG Thu Sep 5 02:37:14 2013 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 9F512932 for ; Thu, 5 Sep 2013 02:37:14 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1343F2DB3 for ; Thu, 5 Sep 2013 02:37:13 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.7/8.14.7) with ESMTP id r852b3fv003289; Thu, 5 Sep 2013 05:37:03 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.8.3 kib.kiev.ua r852b3fv003289 Received: (from kostik@localhost) by tom.home (8.14.7/8.14.7/Submit) id r852b3sP003288; Thu, 5 Sep 2013 05:37:03 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 5 Sep 2013 05:37:03 +0300 From: Konstantin Belousov To: Dag-Erling Sm??rgrav Subject: Re: /usr/lib/private Message-ID: <20130905023703.GN41229@kib.kiev.ua> References: <86zjrut4an.fsf@nine.des.no> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WQS/f3aCdEH+xDC1" Content-Disposition: inline In-Reply-To: <86zjrut4an.fsf@nine.des.no> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on tom.home Cc: freebsd-arch@freebsd.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Sep 2013 02:37:14 -0000 --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- 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--