From owner-cvs-all Mon May 28 5:53:27 2001 Delivered-To: cvs-all@freebsd.org Received: from kalaid.f2f.com.ua (kalaid.f2f.com.ua [62.149.0.33]) by hub.freebsd.org (Postfix) with ESMTP id 5F10537B446; Mon, 28 May 2001 05:52:20 -0700 (PDT) (envelope-from sobomax@mail-in.net) Received: from mail.uic-in.net (root@[212.35.189.4]) by kalaid.f2f.com.ua (8.11.3/8.11.1) with ESMTP id f4SCqiK19078; Mon, 28 May 2001 15:53:00 +0300 (EEST) (envelope-from sobomax@mail-in.net) Received: from vega.vega.com (das0-l105.uic-in.net [212.35.189.232]) by mail.uic-in.net (8.11.3/8.11.3) with ESMTP id f4SCnco09669; Mon, 28 May 2001 15:49:39 +0300 (EEST) (envelope-from sobomax@mail-in.net) Received: (from max@localhost) by vega.vega.com (8.11.3/8.11.3) id f4SBJKS78529; Mon, 28 May 2001 14:19:20 +0300 (EEST) (envelope-from sobomax@FreeBSD.org) From: Maxim Sobolev Message-Id: <200105281119.f4SBJKS78529@vega.vega.com> 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 To: roam@orbitel.bg (Peter Pentchev) Date: Mon, 28 May 2001 14:18:40 +0300 (EEST) 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 In-Reply-To: <20010528134918.C588@ringworld.oblivion.bg> from "Peter Pentchev" at May 28, 2001 01:49:18 PM X-Mailer: ELM [version 2.5 PL5] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > 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