Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 May 2001 14:18:40 +0300 (EEST)
From:      Maxim Sobolev <sobomax@FreeBSD.ORG>
To:        roam@orbitel.bg (Peter Pentchev)
Cc:        netch@lucky.net (Valentin Nechayev), sheldonh@uunet.co.za (Sheldon Hearn), ru@FreeBSD.ORG (Ruslan Ermilov), cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: -DNOCLEAN - was: Re: cvs commit: src/contrib/amd/include am_defs.h src/usr.sbin/amd/includeconfig.h src/etc/mtree BSD.includOR
Message-ID:  <200105281119.f4SBJKS78529@vega.vega.com>
In-Reply-To: <20010528134918.C588@ringworld.oblivion.bg> from "Peter Pentchev" at May 28, 2001 01:49:18 PM

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> On Mon, May 28, 2001 at 01:44:17PM +0300, Valentin Nechayev wrote:
> > 
> >  Mon, May 28, 2001 at 12:17:23, sheldonh wrote about "Re: -DNOCLEAN - was: Re: cvs commit: src/contrib/amd/include am_defs.h src/usr.sbin/amd/includeconfig.h src/etc/mtree BSD.include.dist src/include Makefilesrc/sbin/mount_msdos mo
> > 
> > > > Is -DNOCLEAN guaranteed to work when /usr/obj/`/bin/pwd` was already
> > > > cleaned manually (rm -rf)?
> > > No, because you may have .depend files in your src tree.  Have a look:
> > > 	find /usr/src -name '.depend'
> > 
> > netch@grizzly:/usr/src>find . -name .depend
> > netch@grizzly:/usr/src>cd /usr/obj/`/bin/pwd`
> > netch@grizzly:/usr/obj/var/S2/src>find . -name .depend | grep -v '^\./i386/' | head
> > ./lib/csu/i386-elf/.depend
> > ./lib/libcom_err/.depend
> > ./lib/libcrypt/.depend
> > ./lib/msun/.depend
> > ./lib/libmd/.depend
> > ./lib/libncurses/.depend
> > ./lib/libradius/.depend
> > ./lib/libskey/.depend
> > ./lib/libtacplus/.depend
> > ./lib/libutil/.depend
> > 
> > Can you imagine _real_ case when /usr/src contains any .depend
> > with proper source tree and correct make world calling?
> 
> If you have *always* invoked make (build)?world correctly, no, you
> would have no stale .depend files in your /usr/src tree.

Following scenario will put some stale .depend files into
your /usr/src:

# cd /usr/src
# find ./ -name .depend | xargs rm -rf
# find ./ -name .depend
# make buildworld >/dev/null 2>/dev/null
[ wait 5 minutes, then hit ^C]
^C
# find ./ -name .depend
./usr.sbin/config/.depend
./usr.sbin/kbdcontrol/.depend
./usr.bin/colldef/.depend
./usr.bin/yacc/.depend
./gnu/usr.bin/gperf/.depend
./gnu/usr.bin/groff/src/devices/grodvi/.depend
./gnu/usr.bin/groff/src/devices/grohtml/.depend
./gnu/usr.bin/groff/src/devices/grolbp/.depend
./gnu/usr.bin/groff/src/devices/grolj4/.depend
./gnu/usr.bin/groff/src/devices/grops/.depend
./gnu/usr.bin/groff/src/devices/grotty/.depend
./gnu/usr.bin/groff/src/libs/libbib/.depend
./gnu/usr.bin/groff/src/libs/libdriver/.depend
./gnu/usr.bin/groff/src/libs/libgroff/.depend
./gnu/usr.bin/groff/src/preproc/eqn/.depend
./gnu/usr.bin/groff/src/preproc/grn/.depend
./gnu/usr.bin/groff/src/preproc/html/.depend
#

-Maxim

> If, however, there have been cases when some part of the system
> was not upgraded properly, or something went wrong, and you had to
> go in and build/install a particular tool before rebuilding the rest,
> then it's very easy to forget to 'make cleandir' afterwards, and
> have stale .depend files in your source tree.
> 
> G'luck,
> Peter
> 
> -- 
> If this sentence didn't exist, somebody would have invented it.
> 
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105281119.f4SBJKS78529>