Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 May 2001 13:49:18 +0300
From:      Peter Pentchev <roam@orbitel.bg>
To:        Valentin Nechayev <netch@lucky.net>
Cc:        Sheldon Hearn <sheldonh@uunet.co.za>, Ruslan Ermilov <ru@freebsd.org>, 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.include.dist src/include Makefilesrc/sbin/mount_msdos mount_msdos.c src/sbin/mountd mountd.csrc/share/man/man7 hier.7 src/sys/boot/forth loader.conf ...
Message-ID:  <20010528134918.C588@ringworld.oblivion.bg>
In-Reply-To: <20010528134417.C16588@lucky.net>; from netch@lucky.net on Mon, May 28, 2001 at 01:44:17PM %2B0300
References:  <51548.991045043@axl.fw.uunet.co.za> <20010528134417.C16588@lucky.net>

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.

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?20010528134918.C588>