git: 824b64a2f1a0 - main - Warn about nonfunctional WITHOUT options

From: Colin Percival <cperciva_at_FreeBSD.org>
Date: Tue, 20 Jun 2023 20:59:07 UTC
The branch main has been updated by cperciva:

URL: https://cgit.FreeBSD.org/src/commit/?id=824b64a2f1a05bd1a6176719f2d4c1a2e16d6d08

commit 824b64a2f1a05bd1a6176719f2d4c1a2e16d6d08
Author:     Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2023-06-20 04:42:17 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2023-06-20 20:58:58 +0000

    Warn about nonfunctional WITHOUT options
    
    Print a warning if we try to WITHOUT_ an option which is marked as
    "required" (and forced on).
    
    Suggested by:   emaste, imp
    Reviewed by:    emaste, imp
    Differential Revision:  https://reviews.freebsd.org/D40613
---
 share/mk/bsd.mkopt.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/share/mk/bsd.mkopt.mk b/share/mk/bsd.mkopt.mk
index 33eed9c8bce6..1a4433ea7024 100644
--- a/share/mk/bsd.mkopt.mk
+++ b/share/mk/bsd.mkopt.mk
@@ -59,6 +59,9 @@ MK_${var}:=	yes
 # step towards removing the options entirely.
 #
 .for var in ${__REQUIRED_OPTIONS}
+.if defined(WITHOUT_${var})
+.warning WITHOUT_${var} option ignored: it is no longer supported
+.endif
 MK_${var}:=	yes
 .endfor