Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Oct 2001 01:24:54 -0700
From:      Doug Barton <DougB@DougBarton.net>
To:        Edwin Groothuis <edwin@mavetju.org>
Cc:        freebsd-ports@FreeBSD.ORG
Subject:   Re: NOCLEANDEPENDS / bsd.ports.subdir.mk
Message-ID:  <3BC162D6.C9491D2F@DougBarton.net>
References:  <20011008122302.A10910@k7.mavetju.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Edwin Groothuis wrote:
> 
> Greetings,
> 
> A couple of weeks ago there was a small thread here regarding the
> fact that "make clean" in /usr/ports caused a lot of (unnecessary)
> extra calls to "make clean" for dependencies. The solution for this
> is to add NOCLEANDEPENDS=yes to /etc/make.conf.

	Actually, the second best solution to that problem is 'make
-DNOCLEANDEPENDS' on the command line. The best solution (in terms of
speed) is 'cd /usr/ports && find . -type d -name work -exec rm -r {} \;'
Doing it that way avoids all of the make overhead and just does the deed. 

> Only then, if you build a fresh port with dependencies, "make clean"
> in that directory will only clean the ports-dir, not the dependencies.

	This is a good reason not to put such things in /etc/make.conf.
 
> The expected behaviour would be that the NOCLEANDEPENDS variable
> would only be used in the ports-makefiles, and automaticly set to
> "yes" in the ports-directories-makefiles.

	That's not the expected behavior at all. 
 
> I've submitted a patch (ports/31113) to create this behaviour.
> Please comment on this.

	I'm leaving that for one of the ports gurus to deal with, but I think that
you're trying to apply the wrong solution to the wrong problem.

-- 
    "We will not tire, we will not falter, and we will not fail."
	- George W. Bush, President of the United States
          September 20, 2001  

         Do YOU Yahoo!?

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?3BC162D6.C9491D2F>