From owner-freebsd-ports@FreeBSD.ORG Sun Jul 17 15:12:11 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 66F271065670; Sun, 17 Jul 2011 15:12:11 +0000 (UTC) (envelope-from stephen@missouri.edu) Received: from wilberforce.math.missouri.edu (wilberforce.math.missouri.edu [128.206.184.213]) by mx1.freebsd.org (Postfix) with ESMTP id 0B8BD8FC1C; Sun, 17 Jul 2011 15:12:10 +0000 (UTC) Received: from [127.0.0.1] (wilberforce.math.missouri.edu [128.206.184.213]) by wilberforce.math.missouri.edu (8.14.4/8.14.4) with ESMTP id p6HFC7Z2009030; Sun, 17 Jul 2011 10:12:08 -0500 (CDT) (envelope-from stephen@missouri.edu) Message-ID: <4E22FBC7.9010106@missouri.edu> Date: Sun, 17 Jul 2011 10:12:07 -0500 From: Stephen Montgomery-Smith User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110516 Thunderbird/3.1.10 MIME-Version: 1.0 To: Adrian Chadd References: <4E20FADE.6060103@missouri.edu> <4E21B051.5040502@missouri.edu> <4E21B6A0.6060908@missouri.edu> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd@sopwith.solgatos.com" , Stefan Bethke , "bug-followup@freebsd.org" , Stephen Montgomery-Smith , Chris Rees , FreeBSD Ports 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: Sun, 17 Jul 2011 15:12:11 -0000 current -> ports On 07/16/2011 09:02 PM, Adrian Chadd wrote: > Unless say, you're doing package installation outside of a > chroot/jail, to populate something inside a chroot/jail before you > start said chroot/jail. > I can see "-P" and "-p" working for those many ports which just put programs in place. But there are some ports that include installation programs as part of the software. And some ports (like octave) which have a program which sometimes acts as an installation script, and sometimes acts as a user program. And sometimes those installation programs install for the port, and sometimes they install for a subport. If we are to continue using the "-P" and "-p" options, I suggest someone does the following: 1. Spell out very clearly its purpose - is it to populate a jail, for example? 2. Set up a computer that tests each package to see if it is "-P" compliant and "-p" compliant. By the way, each should be tested separately. For example, suppose latex-pgf is installed with the "-p" option. Then does it expect mktexlsr to be in the directory it is installing into, or the regular directory? mktexlsr is installed by a dependency, so the package needs to know where to find it. It would seem to me that you need a PKG_LOCALBASE variable as well as a PKG_PREFIX variable, so that the port knows where to find these installation programs. 3. Add a flag to ports that allow the port maintainer to mark the port "-p" non-compliant and "-P" non-compliant. The other possibility is to add to the man page of pkg_add saying that there is a good chance the "-p" and "-P" options don't work properly. Some people have clearly indicated that they like and use these options, so let's keep them happy too, and not delete it altogether. Stephen