Mk/Uses/emacs.mk: Sort the default FLAVOR to be first in FLAVORS.

commit 9823f56764 has more information.  Poudriere expects
the default to be always be first or it gets confused.
This commit is contained in:
Bryan Drewery 2021-11-23 17:59:27 -08:00
parent 546f3b949f
commit 04dcdd1a96

View file

@ -80,6 +80,10 @@ _EMACS_RUN_DEP= yes
# Only set FLAVORS when...
.if defined(_EMACS_RUN_DEP) && !defined(_EMACS_NOFLAVORS)
FLAVORS= full canna nox devel_full devel_nox
# Sort the default to be first
.if defined(EMACS_DEFAULT)
FLAVORS:= ${EMACS_DEFAULT} ${FLAVORS:N${EMACS_DEFAULT}}
.endif
.for flavor in ${EMACS_FLAVORS_EXCLUDE}
FLAVORS:= ${FLAVORS:N${flavor}}
.endfor