Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Sep 1999 22:44:17 +0930 (CST)
From:      Matthew Thyer <matt@camtech.net.au>
To:        freebsd-current@freebsd.org
Subject:   make world speed-up patch (was Re: optional 'make release' speed-up patch)
Message-ID:  <Pine.BSF.4.10.9909132236100.2625-100000@localhost>
In-Reply-To: <199909121358.PAA15778@dorifer.heim3.tu-clausthal.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Ooops... stick foot in mouth.... put on flame proof suit....

Mike, you can call me stupid if you want because I was in sending that
email.   Thats what happens when you reply to mail without reading the
thread first!   Stupid me especially when the subject is clearly about
"make release".


Now back to what I was really emailing about which is "make world".

The snippet from /usr/src/Makefile.inc1 that I'm talking about (in my
own little world) was this:

.if !defined(NOCLEAN)
        @echo
        @echo "--------------------------------------------------------------"
        @echo ">>> Cleaning up the temporary ${OBJFORMAT} build tree"
        @echo "--------------------------------------------------------------"
        mkdir -p ${WORLDTMP}
        -chflags -R noschg ${WORLDTMP}/
        rm -rf ${WORLDTMP}
.endif


Can we please have this optimised ?


On Sun, 12 Sep 1999, Oliver Fromme wrote:

> Matthew Thyer wrote in list.freebsd-current:
>  > YES please fix this ridiculous inefficiency pointed out by Rod!
> 
> There's nothing broken, so there's nothing to fix (IMO).
> 
>  > 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.
> 
> Uhm, what are you talking about?  The Makefile does exactly
> that:
> 
> <quote>
> # The first command will fail on a handful of files that have their schg
> # flags set.  But it greatly speeds up the next two commands.
>         -rm -rf ${CHROOTDIR}
>         -chflags -R noschg ${CHROOTDIR}/.
>         -rm -rf ${CHROOTDIR}
> </quote>
> 
> Regards
>    Oliver
> 
> 

-- 
/=======================================================================\
| 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9909132236100.2625-100000>