Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Jan 2026 11:39:00 -0800
From:      "Simon J. Gerraty" <sjg@juniper.net>
To:        Mark Millard <marklmi@yahoo.com>
Cc:        FreeBSD Current <freebsd-current@FreeBSD.org>, <sjg@juniper.net>
Subject:   Re: How do WITH_DEPEND_CLEANUP= and WITH_META_MODE= interact? To get the old WITH_META_MODE= behavior, is WITHOUT_DEPEND_CLEANUP= needed?
Message-ID:  <23.1767296340@kaos.jnpr.net>
In-Reply-To: <2C79022B-6F51-4E67-808E-206C55627D82@yahoo.com>

index | next in thread | previous in thread | raw e-mail

Mark Millard <marklmi@yahoo.com> 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


home | help

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