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: [EMAIL PROTECTED] | Home: [EMAIL PROTECTED] |
\=======================================================================/
"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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message