svn commit: r464274 - branches/2018Q1/Mk

Bryan Drewery bdrewery at FreeBSD.org
Mon Mar 12 19:05:30 UTC 2018


Author: bdrewery
Date: Mon Mar 12 19:05:29 2018
New Revision: 464274
URL: https://svnweb.freebsd.org/changeset/ports/464274

Log:
  MFH: r464273
  
  FLAVORS: Reorder so the default is first.
  
  It is documented that the first FLAVOR is the default.  Due to some use
  of DEFAULT_VERSIONS and USES, the default FLAVOR may be determined
  dynamically.  Poudriere in particular expects the default to be first
  and does the wrong thing for emacs ports currently [1].  This resolves
  that and avoids other tools making the same mistake.
  
  PR:		225659 comment #14
  Approved by:	portmgr (implicit)

Modified:
  branches/2018Q1/Mk/bsd.port.mk
Directory Properties:
  branches/2018Q1/   (props changed)

Modified: branches/2018Q1/Mk/bsd.port.mk
==============================================================================
--- branches/2018Q1/Mk/bsd.port.mk	Mon Mar 12 19:04:59 2018	(r464273)
+++ branches/2018Q1/Mk/bsd.port.mk	Mon Mar 12 19:05:29 2018	(r464274)
@@ -1488,6 +1488,11 @@ IGNORE=	Unknown flavor '${FLAVOR}', possible flavors: 
 FLAVOR=	${FLAVORS:[1]}
 .endif
 
+# Reorder FLAVORS so the default is first if set by the port.
+.if empty(_FLAVOR) && !empty(FLAVORS) && !empty(FLAVOR)
+FLAVORS:=	${FLAVOR} ${FLAVORS:N${FLAVOR}}
+.endif
+
 .if !empty(FLAVOR) && !defined(_DID_FLAVORS_HELPERS)
 _DID_FLAVORS_HELPERS=	yes
 _FLAVOR_HELPERS_OVERRIDE=	DESCR PLIST PKGNAMEPREFIX PKGNAMESUFFIX


More information about the svn-ports-all mailing list