Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jul 2011 16:30:13 GMT
From:      Chris Rees <crees@freebsd.org>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/158179: some packages do not fully honor -P dir option in pkg_add(1)
Message-ID:  <201107161630.p6GGUDRs089772@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/158179; it has been noted by GNATS.

From: Chris Rees <crees@freebsd.org>
To: Stephen Montgomery-Smith <stephen@missouri.edu>
Cc: "freebsd@sopwith.solgatos.com" <freebsd@sopwith.solgatos.com>, 
	"bug-followup@freebsd.org" <bug-followup@freebsd.org>, Stefan Bethke <stb@lassitu.de>, 
	FreeBSD Ports <freebsd-ports@freebsd.org>
Subject: Re: ports/158179: some packages do not fully honor -P dir option in pkg_add(1)
Date: Sat, 16 Jul 2011 17:21:12 +0100

 --bcaec5431e908ca63204a832274a
 Content-Type: text/plain; charset=ISO-8859-1
 
 On 16 Jul 2011 17:18, "Stephen Montgomery-Smith" <stephen@missouri.edu>
 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" <stephen@missouri.edu
 >> <mailto:stephen@missouri.edu>> wrote:
 >>  >
 >>  > On 07/16/2011 10:53 AM, Chris Rees wrote:
 >>  >>
 >>  >>
 >>  >> On 16 Jul 2011 16:38, "Stephen Montgomery-Smith"
 >> <stephen@missouri.edu <mailto:stephen@missouri.edu>
 >>  >> <mailto:stephen@missouri.edu <mailto:stephen@missouri.edu>>> 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
 
 --bcaec5431e908ca63204a832274a
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 <p><br>
 On 16 Jul 2011 17:18, &quot;Stephen Montgomery-Smith&quot; &lt;<a href=3D"m=
 ailto:stephen@missouri.edu">stephen@missouri.edu</a>&gt; wrote:<br>
 &gt;<br>
 &gt; current@ to ports@ again. =A0(Sorry, my mistake.)<br>
 &gt;<br>
 &gt;<br>
 &gt; On 07/16/2011 11:10 AM, Chris Rees wrote:<br>
 &gt;&gt;<br>
 &gt;&gt;<br>
 &gt;&gt; On 16 Jul 2011 17:04, &quot;Stephen Montgomery-Smith&quot; &lt;<a =
 href=3D"mailto:stephen@missouri.edu">stephen@missouri.edu</a><br>
 &gt;&gt; &lt;mailto:<a href=3D"mailto:stephen@missouri.edu">stephen@missour=
 i.edu</a>&gt;&gt; wrote:<br>
 &gt;&gt; =A0&gt;<br>
 &gt;&gt; =A0&gt; On 07/16/2011 10:53 AM, Chris Rees wrote:<br>
 &gt;&gt; =A0&gt;&gt;<br>
 &gt;&gt; =A0&gt;&gt;<br>
 &gt;&gt; =A0&gt;&gt; On 16 Jul 2011 16:38, &quot;Stephen Montgomery-Smith&q=
 uot;<br>
 &gt;&gt; &lt;<a href=3D"mailto:stephen@missouri.edu">stephen@missouri.edu</=
 a> &lt;mailto:<a href=3D"mailto:stephen@missouri.edu">stephen@missouri.edu<=
 /a>&gt;<br>
 &gt;&gt; =A0&gt;&gt; &lt;mailto:<a href=3D"mailto:stephen@missouri.edu">ste=
 phen@missouri.edu</a> &lt;mailto:<a href=3D"mailto:stephen@missouri.edu">st=
 ephen@missouri.edu</a>&gt;&gt;&gt; wrote:<br>
 &gt;&gt; =A0&gt;&gt; &gt; For example, suppose the C source code contains s=
 omething like:<br>
 &gt;&gt; =A0&gt;&gt; &gt; char applications_dir =3D &quot;/usr/local/share/=
 applications&quot;;<br>
 &gt;&gt; =A0&gt;&gt; &gt; and this is filled in by the ./configure script.<=
 br>
 &gt;&gt; =A0&gt;&gt; &gt;<br>
 &gt;&gt; =A0&gt;&gt; &gt; How is that handled?<br>
 &gt;&gt; =A0&gt;&gt; &gt;<br>
 &gt;&gt; =A0&gt;&gt;<br>
 &gt;&gt; =A0&gt;&gt; It&#39;s not.<br>
 &gt;&gt; =A0&gt;&gt;<br>
 &gt;&gt; =A0&gt;&gt; Remember what a package is, literally the files from t=
 he plist tarred<br>
 &gt;&gt; =A0&gt;&gt; with some magic +FILEs and the pkg-*install files- if =
 paths are<br>
 &gt;&gt; =A0&gt;&gt; hardcoded in objects that&#39;s how it&#39;ll be insta=
 lled.<br>
 &gt;&gt; =A0&gt;<br>
 &gt;&gt; =A0&gt;<br>
 &gt;&gt; =A0&gt; What if some of the installation programs are binaries, an=
 d<br>
 &gt;&gt; &quot;/usr/local&quot; is hard coded into installation binaries or=
  scripts<br>
 &gt;&gt; provided by the software itself.<br>
 &gt;&gt;<br>
 &gt;&gt; Sorry, poor wording on my part.<br>
 &gt;<br>
 &gt;<br>
 &gt; No, I didn&#39;t read what you said properly.<br>
 &gt;<br>
 &gt;<br>
 &gt;&gt; If it was compiled as prefix=3D/usr/local, that&#39;s how it&#39;l=
 l be installed,<br>
 &gt;&gt; regardless of your -p argument.<br>
 &gt;<br>
 &gt;<br>
 &gt; So &quot;-p&quot; and &quot;-P&quot; are inherently buggy, and should =
 be removed from pkg_add?<br>
 &gt;<br>
 &gt; (Or every port which uses prefix=3D/usr/local needs major revision and=
  patching, which I think is an intolerable workload.)</p>
 <p>They are only for internal and experimental use really anyway. Perhaps t=
 he manpage should mention that.</p>
 <p>Bear in mind they should work fine if the port doesn&#39;t hardcode abso=
 lute paths.</p>
 <p>Chris</p>
 
 --bcaec5431e908ca63204a832274a--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107161630.p6GGUDRs089772>