svn commit: r354909 - in head: . share/mk

Brooks Davis brooks at FreeBSD.org
Wed Nov 20 18:36:59 UTC 2019


Author: brooks
Date: Wed Nov 20 18:36:58 2019
New Revision: 354909
URL: https://svnweb.freebsd.org/changeset/base/354909

Log:
  Make the warning for deprecated NO_ variables an error.
  
  Support for NO_CTF, NO_DEBUG_FILES, NO_INSTALLLIB, NO_MAN, NO_PROFILE,
  and NO_WARNS as deprecated in 2014 with a warning added for each one
  found. Turn these into error in preperation for removal of compatability
  support before FreeBSD 13.
  
  Reviewed by:	imp
  Relnotes:	yes
  Sponsored by:	DARPA, AFRL
  Differential Revision:	https://reviews.freebsd.org/D22448

Modified:
  head/UPDATING
  head/share/mk/bsd.opts.mk

Modified: head/UPDATING
==============================================================================
--- head/UPDATING	Wed Nov 20 18:12:01 2019	(r354908)
+++ head/UPDATING	Wed Nov 20 18:36:58 2019	(r354909)
@@ -31,6 +31,14 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 13.x IS SLOW:
 	removed in the future.  As of FreeBSD 10.1 the autofs(5) is available
 	for automounting.
 
+20191120:
+	Defining the long deprected NO_CTF, NO_DEBUG_FILES, NO_INSTALLLIB,
+	NO_MAN, NO_PROFILE, and NO_WARNS variables is now an error.  Update
+	your Makefiles and scripts to define MK_<var>=no instead as required.
+
+	One exception to this is that program or library Makefiles should
+	define MAN to empty rather than setting MK_MAN=no.
+
 20191107:
 	The nctgpio and wbwd drivers have been moved to the superio bus.
 	If you have one of these drivers in a kernel configuration, then

Modified: head/share/mk/bsd.opts.mk
==============================================================================
--- head/share/mk/bsd.opts.mk	Wed Nov 20 18:12:01 2019	(r354908)
+++ head/share/mk/bsd.opts.mk	Wed Nov 20 18:36:58 2019	(r354909)
@@ -100,7 +100,7 @@ __DEFAULT_DEPENDENT_OPTIONS = \
     PROFILE \
     WARNS
 .if defined(NO_${var})
-.warning "NO_${var} is defined, but deprecated. Please use MK_${var}=no instead."
+.error "NO_${var} is defined, but deprecated. Please use MK_${var}=no instead."
 MK_${var}:=no
 .endif
 .endfor


More information about the svn-src-head mailing list