Skip to content

Commit

Permalink
MFH: r464273
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
bdrewery committed Mar 12, 2018
1 parent 1b057ad commit b6483c4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Mk/bsd.port.mk
Original file line number Diff line number Diff line change
Expand Up @@ -1488,6 +1488,11 @@ IGNORE= Unknown flavor '${FLAVOR}', possible flavors: ${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
Expand Down

0 comments on commit b6483c4

Please sign in to comment.