Date: Wed, 11 Dec 2024 19:47:46 -0800 From: "Simon J. Gerraty" <sjg@juniper.net> To: bob prohaska <fbsd@www.zefox.net> Cc: <freebsd-current@FreeBSD.org>, <sjg@juniper.net> Subject: Re: Cleaning before using WITH_META_MODE Message-ID: <96807.1733975266@kaos.jnpr.net> In-Reply-To: <Z1ncJD4djq14kjiD@www.zefox.net> References: <Z1ncJD4djq14kjiD@www.zefox.net>
next in thread | previous in thread | raw e-mail | index | archive | help
bob prohaska <fbsd@www.zefox.net> wrote: > What cleaning options minimize interference with the use of WITH_META_MODE ? FWIW I very rarely clean a tree where I use META_MODE, maybe once a year or so. > Occasionally buildworld stops because of a missing dependency, usually > just re-running git pull fixes the problem. In cases where it does not If I need to clean I tend to use one of the 'destroy' targets, which is equivalent to your rm -rf /usr/obj below - which is way faster than any alternative. Note: bsd.obj.mk only defines destroy et al if you have OBJROOT defined (eg you use MAKEOBJDIRPREFIX or MAKEOBJDIR) > fix the problem how should one rank the various cleaning commands, from > least to most thorough? Using rm -rf /usr/obj obviously works but AIUI > deletes the data needed by WITH_META_MODE. The cleaning commands I've That's true, but the info in a .meta file is not needed in a clean tree build - it is most useful when re-building. > used include > make clean > make cleandir run once > make cleandir run twice > rm -rf /usr/obj > > but it isn't obvious how they interact with META_MODE. The short answer is they don't and it doesn't really matter. HTH --sjg
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?96807.1733975266>