Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Sep 2001 07:40:01 -0700 (PDT)
From:      Peter Pentchev <roam@ringlet.net>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/30380: Maintainer update: devel/gengetopt (2.4)
Message-ID:  <200109101440.f8AEe1654307@freefall.freebsd.org>

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

From: Peter Pentchev <roam@ringlet.net>
To: freebsd-gnats-submit@FreeBSD.org
Cc: Neil Blakey-Milner <nbm@mithrandr.moria.org>
Subject: Re: ports/30380: Maintainer update: devel/gengetopt (2.4)
Date: Mon, 10 Sep 2001 17:35:15 +0300

 On Fri, Sep 07, 2001 at 05:26:27PM +0200, Neil Blakey-Milner wrote:
 > On Fri 2001-09-07 (08:10), Peter Pentchev wrote:
 > > The following reply was made to PR ports/30380; it has been noted by GNATS.
 > > 
 > > From: Peter Pentchev <roam@ringlet.net>
 > > To: freebsd-gnats-submit@FreeBSD.org
 > > Cc:  
 > > Subject: Re: ports/30380: Maintainer update: devel/gengetopt (2.4)
 > > Date: Fri, 7 Sep 2001 18:03:30 +0300
 > > 
 > >  On Fri, Sep 07, 2001 at 08:00:07AM -0700, Peter Pentchev wrote:
 > >  >  On Fri, Sep 07, 2001 at 04:20:38PM +0200, Cyrille Lefevre wrote:
 > >  >  > Peter Pentchev wrote:
 > >  >  > > On Thu, Sep 06, 2001 at 05:40:03AM -0700, Cyrille Lefevre wrote:
 > >  >  > > > The following reply was made to PR ports/30380; it has been noted by GNATS.
 > >  >  > > > 
 > >  >  > > > From: Cyrille Lefevre <clefevre@citeweb.net>
 > >  >  > > > 
 > >  >  > > >  could you also add the following line below USE_GMAKE,
 > >  >  > > >  
 > >  >  > > >  MAKE_ARGS=      prefix=${PREFIX}
 > >  >  > > 
 > >  >  > > Does this really need to be in MAKE_ARGS?  Does it not rather belong
 > >  >  > > in MAKE_ENV?
 > >  >  > 
 > >  >  > no, using gmake, this doesn't work using MAKE_ENV. MAKE_ARGS does.
 > >  >  > 
 > >  >  > in fact, this hack allow you to build things for one destination and
 > >  >  > to install them somewhere else (for installation tests for exemple).
 > >  >  > I'll propose to make USE_GMAKE a dependency of GNU_CONFIGURE as well
 > >  >  > as MAKE_ARGS+= prefix=${PREFIX} to make things working better...
 > >  >  
 > >  >  OBTW, I don't think building things for one destination and isntalling
 > >  >  them into another is supported by the ports system.  Even if it were,
 > >  >  most automake-generated Makefiles have more than one variable for
 > >  >  a destination dir location, not just 'prefix'.
 > >  
 > >  Of course, this applies to most auto*conf*-generated Makefiles,
 > >  not just for automake.
 > 
 > autoconf+automake (and others) systems support --prefix for setting the
 > prefix, and listen to the DESTDIR make variable as a base to install to.
 > There's a PR to support this properly (28155), and we'll be looking into
 > it after 4.4 is released.
 
 This is all well and good; in the meantime, I think the MAKE_ARGS
 addition in this PR (and in a couple of other PR's filed by Cyrille)
 is quite unnecessary.  The FreeBSD Ports Collection does not take it
 upon itself to make it possible for a port to be built and installed
 with different values for PREFIX; that's what the 'configure' step
 is for.
 
 Apart from the slew of variables that also need to be modified that
 I discussed in my previous mails, there's one more argument: there are
 programs that stuff some paths into their source; what do you do with
 those in the 'install' target - detect that you are running with
 a different PREFIX, and recompile?  Yuck..  Again, that's what
 the 'configure' step is for..
 
 G'luck,
 Peter
 
 -- 
 If I had finished this sentence,

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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