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

Brooks Davis brooks at FreeBSD.org
Wed Feb 12 18:09:21 UTC 2020


Author: brooks
Date: Wed Feb 12 18:09:20 2020
New Revision: 357834
URL: https://svnweb.freebsd.org/changeset/base/357834

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.
  
  This was previously committed in r354909 and reverted in r355011 due to
  unforseen impacts on ports.  I've since corrected all amd64 and i386
  ports reported in prior runs as well as instance of these variables I
  found via grep.

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

Modified: head/UPDATING
==============================================================================
--- head/UPDATING	Wed Feb 12 17:37:32 2020	(r357833)
+++ head/UPDATING	Wed Feb 12 18:09:20 2020	(r357834)
@@ -26,6 +26,14 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 13.x IS SLOW:
 	disable the most expensive debugging functionality run
 	"ln -s 'abort:false,junk:false' /etc/malloc.conf".)
 
+20200212:
+	Defining the long deprecated 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.
+
 20200108:
 	Clang/LLVM is now the default compiler and LLD the default
 	linker for riscv64.

Modified: head/share/mk/bsd.opts.mk
==============================================================================
--- head/share/mk/bsd.opts.mk	Wed Feb 12 17:37:32 2020	(r357833)
+++ head/share/mk/bsd.opts.mk	Wed Feb 12 18:09:20 2020	(r357834)
@@ -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-all mailing list