Re: How do WITH_DEPEND_CLEANUP= and WITH_META_MODE= interact? To get the old WITH_META_MODE= behavior, is WITHOUT_DEPEND_CLEANUP= needed?

"Simon J. Gerraty" <[email protected]>
Newsgroups gmane.os.freebsd.current
Message-ID <[email protected]>
Mark Millard <[email protected]> wrote:
> [The 2 related commits did not show up on dev-commits-src-main/2025-December/
> to reply to (in my context anyway). Thus the questions to the list here.]
> 
> How do WITH_DEPEND_CLEANUP= and WITH_META_MODE= interact?

Probably not well.

> Do I need to set
> WITHOUT_DEPEND_CLEANUP= to have META_MODE= work as it used to?

My guess would be yes.
It appears that MK_DEPEND_CLEANUP=yes is an attempt to compensate for
MK_META_MODE=no

With MK_META_MODE=yes, things which are affected by changes to build
options should be rebuilt, so there should no need to clean the whole
tree.

FWIW at work the only time I ever find it necessary to clean a tree (and
usually only the stage tree - think; auto-populated DESTDIR) is when
someone changes the location something (eg a library's headers) gets
staged to.  Without cleaning the stage tree, the build may
pick up stale files.

--sjg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.