From owner-freebsd-ports@FreeBSD.ORG Tue Jul 19 21:40:10 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 48BEE1065673 for ; Tue, 19 Jul 2011 21:40:10 +0000 (UTC) (envelope-from freebsd-ports-local@be-well.ilk.org) Received: from mail5.sea5.speakeasy.net (mail5.sea5.speakeasy.net [69.17.117.49]) by mx1.freebsd.org (Postfix) with ESMTP id 221D58FC18 for ; Tue, 19 Jul 2011 21:40:09 +0000 (UTC) Received: (qmail 26297 invoked from network); 19 Jul 2011 21:13:29 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail5.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 19 Jul 2011 21:13:29 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 9B0E25C61; Tue, 19 Jul 2011 17:13:28 -0400 (EDT) From: Lowell Gilbert To: Baptiste Daroussin References: <20110719184133.185870@gmx.com> <5f9e652f030e9b3ea9fb3afbd4b5863b@etoilebsd.net> Date: Tue, 19 Jul 2011 17:13:28 -0400 In-Reply-To: <5f9e652f030e9b3ea9fb3afbd4b5863b@etoilebsd.net> (Baptiste Daroussin's message of "Tue, 19 Jul 2011 20:40:52 +0000") Message-ID: <44zkkageiv.fsf@be-well.ilk.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-ports@freebsd.org Subject: Re: ports/158179: some packages do not fully honor -P dir option in pkg_add(1) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jul 2011 21:40:10 -0000 Baptiste Daroussin writes: > On Tue, 19 Jul 2011 18:41:31 +0000, Dieter BSD wrote: >>> 1. =A0Spell out very clearly its purpose - is it to populate a jail, >>> for >>> example? >> >> Populating a chroot/jail is one purpose. >> > > Corrupting the pkgdb there is a chroot option for that You would need to set the DBDIR to manage the databases properly (which makes sense because there really is a separate set of ports living in the jail). I agree about the chroot option, though; I do not see any reason that one would ever use -P rather than -C for populating a jail from the outside. >> Another is to test a new version of a package without messing up the >> existing version. >> > > it will mess up the database either One would just use a different database. As I said, that makes sense. This thread has already heard from one person who successfully uses the "-P" option for this purpose, so it's definitely useful to someone. >> There are bound to be other reasons. >> >> Compiling the port rather than installing a package isn't always >> a solution. =A0Many ports are incredibly difficult to get compiled. >> >> PREFIX needs to be an install time variable, not compile time. > > PREFIX at install time is just broken and can't be anything else than > broken, because lot's of path given a build time configuration path > for example, etc. Yes. In general, packages just can't be placed anywhere other than where they were built for, and we can't do anything about that in the ports infrastructure.=20=20