From owner-freebsd-current Sat Sep 11 20:45:26 1999 Delivered-To: freebsd-current@freebsd.org Received: from camtech.net.au (goliath.camtech.net.au [203.5.73.2]) by hub.freebsd.org (Postfix) with SMTP id 6E4EA15493 for ; Sat, 11 Sep 1999 20:45:21 -0700 (PDT) (envelope-from matt@camtech.net.au) Received: from dialup-ad-14-58.camtech.net.au ([203.55.242.186]) by camtech.net.au ; Sun, 12 Sep 1999 13:15:19 +0930 Date: Sun, 12 Sep 1999 13:16:25 +0930 (CST) From: Matthew Thyer X-Sender: matt@localhost Reply-To: thyerm@camtech.net.au To: "Rodney W. Grimes" Cc: "John W. DeBoskey" , freebsd-current@FreeBSD.ORG Subject: Re: optional 'make release' speed-up patch In-Reply-To: <199909090635.XAA16842@gndrsh.dnsmgr.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG YES please fix this ridiculous inefficiency pointed out by Rod! The current method of cleaning the build tree is to chflags -R and then rm -r which results in two full traversals of the entire /usr/obj tree which takes MUCH longer than attempting an rm -r first followed by a chflags -R and another rm -r. Rather than patch /usr/src/Makefile.inc1, I have been using an alias for the last year or so: mkworld (rm -rf /usr/obj/usr ; chflags -R noschg /usr/obj/usr ; rm -rf /usr/obj/usr ; cd /usr/src && make world) >& /usr/src/WORLD.log.`date "+%g%m%d"` Also while I was looking at /usr/src/Makefile I noticed the following paragraph. Is this still true (the defaulting to a.out) ? There is also is a typo: "or 3.0." should be "of 3.0.". # The `make world' process always follows the installed object format. # This is set by creating /etc/objformat containing either OBJFORMAT=aout # or OBJFORMAT=elf. If this file does not exist, the object format defaults # to aout. This is expected to be changed to elf just prior to the release # or 3.0. If OBJFORMAT is set as an environment variable or in /etc/make.conf, # this overrides /etc/objformat. On Wed, 8 Sep 1999, Rodney W. Grimes wrote: > > Hi, > > > > The following patch to /usr/src/release/Makefile allows the > > specification of the variable FASTCLEAN, which instead of doing > > a recursive rm on CHROOTDIR, simply umounts/newfs/mounts. Of > > course, this is only useful if your CHROOTDIR location is a > > separate mount point (which mine is: /snap). > > > > Comments and critiques welcome. > > And how about a similiar patch to /usr/src/Makefile that is > FASTCLEANDIR that brings back a patched up version of > my original CLEANDIR. Something like > -rm -rf /usr/obj/${.CURDIR}/tmp > chflags -R noschg /usr/obj/${.CURDIR}/tmp > rm -rf /usr/obj/${.CURDIR} > > > > > Would someone consider committing this please? > > Thanks, > > John > > > > Index: Makefile > > =================================================================== > > RCS file: /mirror/ncvs/src/release/Makefile,v > ... > > -- /=======================================================================\ | Work: Matthew.Thyer@dsto.defence.gov.au | Home: thyerm@camtech.net.au | \=======================================================================/ "If it is true that our Universe has a zero net value for all conserved quantities, then it may simply be a fluctuation of the vacuum of some larger space in which our Universe is imbedded. In answer to the question of why it happened, I offer the modest proposal that our Universe is simply one of those things which happen from time to time." E. P. Tryon from "Nature" Vol.246 Dec.14, 1973 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message