From owner-freebsd-ports@FreeBSD.ORG Sat Jul 16 16:21:12 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 CE37E106564A; Sat, 16 Jul 2011 16:21:12 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 83CF08FC0C; Sat, 16 Jul 2011 16:21:12 +0000 (UTC) Received: by iyb11 with SMTP id 11so2399319iyb.13 for ; Sat, 16 Jul 2011 09:21:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=WEmDITgwoQnX30flRWUrzR2Xvv+qXxufNDNieCxsOv4=; b=GpTRwvSS/MaFnO1f50v+JupmmyuwEegqb1ghI8KhLO61e071Pj6BWWQbKarRAAD0TK RdnXVthSNYX3fXKZjolCjootmgpdeavn7WzxkbYJ4ix8DC10/jwBnZrHaPWjLkiocB9q iGl/lIyWJx8eLRJY7MDWhYLa3FKBeMGr1ZG44= MIME-Version: 1.0 Received: by 10.231.92.196 with SMTP id s4mr4382460ibm.10.1310833272202; Sat, 16 Jul 2011 09:21:12 -0700 (PDT) Sender: utisoft@gmail.com Received: by 10.231.67.211 with HTTP; Sat, 16 Jul 2011 09:21:12 -0700 (PDT) Received: by 10.231.67.211 with HTTP; Sat, 16 Jul 2011 09:21:12 -0700 (PDT) In-Reply-To: <4E21B9C1.9020102@missouri.edu> References: <4E20FADE.6060103@missouri.edu> <4E21B051.5040502@missouri.edu> <4E21B6A0.6060908@missouri.edu> <4E21B9C1.9020102@missouri.edu> Date: Sat, 16 Jul 2011 17:21:12 +0100 X-Google-Sender-Auth: KWPOUxHilseNVBo6T2EfRIIcQ6E Message-ID: From: Chris Rees To: Stephen Montgomery-Smith Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "freebsd@sopwith.solgatos.com" , FreeBSD Ports , Stefan Bethke , "bug-followup@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: Sat, 16 Jul 2011 16:21:12 -0000 On 16 Jul 2011 17:18, "Stephen Montgomery-Smith" wrote: > > current@ to ports@ again. (Sorry, my mistake.) > > > On 07/16/2011 11:10 AM, Chris Rees wrote: >> >> >> On 16 Jul 2011 17:04, "Stephen Montgomery-Smith" > > wrote: >> > >> > On 07/16/2011 10:53 AM, Chris Rees wrote: >> >> >> >> >> >> On 16 Jul 2011 16:38, "Stephen Montgomery-Smith" >> >> >> >> wrote: >> >> > For example, suppose the C source code contains something like: >> >> > char applications_dir = "/usr/local/share/applications"; >> >> > and this is filled in by the ./configure script. >> >> > >> >> > How is that handled? >> >> > >> >> >> >> It's not. >> >> >> >> Remember what a package is, literally the files from the plist tarred >> >> with some magic +FILEs and the pkg-*install files- if paths are >> >> hardcoded in objects that's how it'll be installed. >> > >> > >> > What if some of the installation programs are binaries, and >> "/usr/local" is hard coded into installation binaries or scripts >> provided by the software itself. >> >> Sorry, poor wording on my part. > > > No, I didn't read what you said properly. > > >> If it was compiled as prefix=/usr/local, that's how it'll be installed, >> regardless of your -p argument. > > > So "-p" and "-P" are inherently buggy, and should be removed from pkg_add? > > (Or every port which uses prefix=/usr/local needs major revision and patching, which I think is an intolerable workload.) They are only for internal and experimental use really anyway. Perhaps the manpage should mention that. Bear in mind they should work fine if the port doesn't hardcode absolute paths. Chris