From owner-svn-ports-head@freebsd.org Thu Jan 4 20:17:42 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0405BEB3E81; Thu, 4 Jan 2018 20:17:42 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C31307F190; Thu, 4 Jan 2018 20:17:41 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w04KHeme057010; Thu, 4 Jan 2018 20:17:40 GMT (envelope-from bdrewery@FreeBSD.org) Received: (from bdrewery@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w04KHemE057009; Thu, 4 Jan 2018 20:17:40 GMT (envelope-from bdrewery@FreeBSD.org) Message-Id: <201801042017.w04KHemE057009@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bdrewery set sender to bdrewery@FreeBSD.org using -f From: Bryan Drewery Date: Thu, 4 Jan 2018 20:17:40 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r458083 - head/Mk X-SVN-Group: ports-head X-SVN-Commit-Author: bdrewery X-SVN-Commit-Paths: head/Mk X-SVN-Commit-Revision: 458083 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jan 2018 20:17:42 -0000 Author: bdrewery Date: Thu Jan 4 20:17:40 2018 New Revision: 458083 URL: https://svnweb.freebsd.org/changeset/ports/458083 Log: Disallow forced FLAVOR as make argument. This otherwise prevents properly setting FLAVOR to the default internally since it is in a separate namespace in bmake that is read-only. Approved by: portmgr (implicit) MFH: 2018Q1 Modified: head/Mk/bsd.port.mk Modified: head/Mk/bsd.port.mk ============================================================================== --- head/Mk/bsd.port.mk Thu Jan 4 20:17:09 2018 (r458082) +++ head/Mk/bsd.port.mk Thu Jan 4 20:17:40 2018 (r458083) @@ -1061,6 +1061,11 @@ STAGEDIR?= ${WRKDIR}/stage NOTPHONY?= FLAVORS?= FLAVOR?= +# Disallow forced FLAVOR as make argument since we cannot change it to the +# proper default. +.if empty(FLAVOR) && !empty(.MAKEOVERRIDES:MFLAVOR) +.error FLAVOR may not be passed empty as a make argument. +.endif # Store env FLAVOR for later .if !defined(_FLAVOR) _FLAVOR:= ${FLAVOR}