Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Oct 2001 11:20:37 +1000
From:      Edwin Groothuis <edwin@mavetju.org>
To:        Peter Pentchev <roam@ringlet.net>
Cc:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/31113: bsd.ports.subdir.mk: remove NOCLEANDEPENDS from the /etc/make.conf
Message-ID:  <20011010112037.A2860@k7.mavetju.org>
In-Reply-To: <200110091140.f99Be3c46014@freefall.freebsd.org>; from roam@ringlet.net on Tue, Oct 09, 2001 at 04:40:03AM -0700
References:  <200110091140.f99Be3c46014@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Oct 09, 2001 at 04:40:03AM -0700, Peter Pentchev wrote:
> The following reply was made to PR ports/31113; it has been noted by GNATS.
> 
> From: Peter Pentchev <roam@ringlet.net>
> To: Edwin Groothuis <edwin@mavetju.org>
> Cc: FreeBSD-gnats-submit@freebsd.org
> Subject: Re: ports/31113: bsd.ports.subdir.mk: remove NOCLEANDEPENDS from the /etc/make.conf
> Date: Tue, 9 Oct 2001 14:30:01 +0300
> 
>  On Mon, Oct 08, 2001 at 12:03:47PM +1000, Edwin Groothuis wrote:
>  > 
>  > >Number:         31113
>  > >Category:       ports
>  > >Synopsis:       bsd.ports.subdir.mk: remove NOCLEANDEPENDS from the /etc/make.conf
>  > >Originator:     Edwin Groothuis
>  > >Release:        FreeBSD 4.4-RELEASE i386
>  > >Organization:
>  > -
>  > >Environment:
>  > System: FreeBSD k7.mavetju.org 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Thu Oct 4 08:49:05 EST 2001 edwin@k7.mavetju.org:/usr/src/sys/compile/k7 i386
>  > 
>  > >Description:
>  > 
>  > When using "make clean" in a directory below /usr/ports/*, default
>  > is to do a make clean for the dependant ports also. This is nice.
>  > 
>  > When using "make clean" in /usr/ports or in a directory of
>  > /usr/ports/*, default is to do a make clean for the dependant ports
>  > also. This is not nice, because a lot of ports have the same
>  > dependencies, causing a *lot* of extra calls for "make clean"s which
>  > are not needed.
>  > 
>  > The solution for this is to add NOCLEANDEPENDS=yes in /etc/make.conf.
>  > But then next time when you run "make clean" in a freshly cleaned
>  > ports-directory, it will not clean the dependencies (which is
>  > exactly what is wanted with putting it in /etc/make.conf).
>  
>  Uhm.. wouldn't a simpler solution be to specify NOCLEANDEPENDS for
>  just that one run of make(1), on the command line?
>  Something like 'make NOCLEANDEPENDS=yes clean' or simply
>  'make -DNOCLEANDEPENDS clean'?

Sure. But then you have to specify it everytime you do it. And
people who are running it for the first time, without clue of this,
will run into the same situation over and over again.

There is a difference between the way the environment variables
and commandline-options should be treated when running it in a
port-directory (/usr/ports/something/blaat) and when it is in the
ports-directory (/usr/ports or /usr/ports/something)

Edwin

-- 
Edwin Groothuis   |              Personal website: http://www.MavEtJu.org
edwin@mavetju.org |           Interested in MUDs? Visit Fatal Dimensions:
------------------+                       http://www.FatalDimensions.org/

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?20011010112037.A2860>