From owner-freebsd-current@FreeBSD.ORG Sun Apr 11 10:28:31 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F6DA106564A; Sun, 11 Apr 2010 10:28:31 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id CD4D48FC0C; Sun, 11 Apr 2010 10:28:30 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id o3BARNnK074358 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 11 Apr 2010 13:27:23 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id o3BARNJa068737; Sun, 11 Apr 2010 13:27:23 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id o3BARNfF068736; Sun, 11 Apr 2010 13:27:23 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 11 Apr 2010 13:27:23 +0300 From: Kostik Belousov To: Tim Kientzle Message-ID: <20100411102723.GT2415@deviant.kiev.zoral.com.ua> References: <4BBFD502.1010507@elischer.org> <4BC03ABA.6090309@elischer.org> <4BC0CC6F.7010009@freebsd.org> <4BC0E9AE.1000904@elischer.org> <4BC0FF80.4000907@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="CG/OVgx2cbnpzYw6" Content-Disposition: inline In-Reply-To: <4BC0FF80.4000907@freebsd.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_05, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: ports@freebsd.org, Julian Elischer , FreeBSD Current Subject: Re: ports and PBIs X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Apr 2010 10:28:31 -0000 --CG/OVgx2cbnpzYw6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 10, 2010 at 03:45:20PM -0700, Tim Kientzle wrote: > Julian Elischer wrote: > >On 4/10/10 12:07 PM, Tim Kientzle wrote: > >>[1] Actually, PBI might work just fine even for > >>embedded if we address the disk bloat issue. One > >>approach would be to make > >>/Package/Bar/libfoo-2.8.7.so > >>a symlink or hardlink to > >>/Package/Shared/libfoo-2.8.7.so- > >>This gives easy sharing of identical files. > > > >yeah that's more or less what we were thinking.. > >hardlinks allow you to garbage collect when the last pbi that needs=20 > >something is replaced/removed. >=20 > The point of /Package/Shared in this design is > basically that it provides a list of all of > the files that can be shared, so you > avoid doing a full disk search to identify other > places that might have this file. You could > accomplish the same goal by building and > storing a database of sharable files somewhere, > of course. >=20 > (Curiously, no one has mentioned filesystem-level > deduping yet as the "big hammer" solution... ;-) >=20 > The LD_LIBRARY_PATH issue is the most interesting > problem here. I don't immediately see a solution that > doesn't include teaching ld-elf.so.1 about some form > of per-application library path. I already pointed in the other reply in this thread, $ORIGIN dynamic token should solve the issue. See http://docs.sun.com/app/docs/doc/817-1984/chapter3-13312?l=3Den&a=3Dview --CG/OVgx2cbnpzYw6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkvBpAsACgkQC3+MBN1Mb4hOSACfWth76i+iMumFXU0rtbXiGeaT YS8An1J7+/IliJ5mlcOdfIr8RjK6I+OT =utD/ -----END PGP SIGNATURE----- --CG/OVgx2cbnpzYw6--