Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Oct 2016 14:53:27 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r424571 - head/Mk
Message-ID:  <201610241453.u9OErREK070627@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mat
Date: Mon Oct 24 14:53:26 2016
New Revision: 424571
URL: https://svnweb.freebsd.org/changeset/ports/424571

Log:
  Add a warning for people who set foo_DEFAULT in their make.conf or environment.
  
  Sponsored by:	Absolight
  Differential Revision:	https://reviews.freebsd.org/D8060

Modified:
  head/Mk/bsd.default-versions.mk   (contents, props changed)

Modified: head/Mk/bsd.default-versions.mk
==============================================================================
--- head/Mk/bsd.default-versions.mk	Mon Oct 24 14:53:18 2016	(r424570)
+++ head/Mk/bsd.default-versions.mk	Mon Oct 24 14:53:26 2016	(r424571)
@@ -15,6 +15,15 @@ _INCLUDE_BSD_DEFAULT_VERSIONS_MK=	yes
 
 LOCALBASE?=	/usr/local
 
+.for lang in APACHE BDB FIREBIRD FPC GCC GHOSTSCRIPT LINUX LUA MYSQL PERL6 \
+	PGSQL PHP PYTHON PYTHON2 PYTHON3 RUBY SSL TCLTK
+.if defined(${lang}_DEFAULT)
+WARNING+=	"The variable ${lang}_DEFAULT is set and it should only be defined through DEFAULT_VERSIONS+=${lang:tl}=${${lang}_DEFAULT} in /etc/make.conf"
+WARNING+=	"This behaviour has never been supported and will be removed on 2017-01-31"
+.endif
+#.undef ${lang}_DEFAULT
+.endfor
+
 .for lang in ${DEFAULT_VERSIONS}
 _l=		${lang:C/=.*//g}
 ${_l:tu}_DEFAULT=	${lang:C/.*=//g}



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