From owner-freebsd-current@FreeBSD.ORG Sat Apr 10 22:45:25 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 4ADD11065673; Sat, 10 Apr 2010 22:45:25 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from monday.kientzle.com (kientzle.com [66.166.149.50]) by mx1.freebsd.org (Postfix) with ESMTP id 1B7958FC1F; Sat, 10 Apr 2010 22:45:24 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.3/8.14.3) id o3AMjaKx005708; Sat, 10 Apr 2010 22:45:36 GMT (envelope-from kientzle@freebsd.org) Received: from horton.x.kientzle.com (fw2.kientzle.com [10.123.1.2]) by kientzle.com with SMTP id eivfvtwtf7266ixd6zrdpsdpmw; Sat, 10 Apr 2010 22:45:36 +0000 (UTC) (envelope-from kientzle@freebsd.org) Message-ID: <4BC0FF80.4000907@freebsd.org> Date: Sat, 10 Apr 2010 15:45:20 -0700 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.23) Gecko/20100314 SeaMonkey/1.1.18 MIME-Version: 1.0 To: Julian Elischer References: <4BBFD502.1010507@elischer.org> <4BC03ABA.6090309@elischer.org> <4BC0CC6F.7010009@freebsd.org> <4BC0E9AE.1000904@elischer.org> In-Reply-To: <4BC0E9AE.1000904@elischer.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org, 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: Sat, 10 Apr 2010 22:45:25 -0000 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 > something is replaced/removed. 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. (Curiously, no one has mentioned filesystem-level deduping yet as the "big hammer" solution... ;-) 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. Tim