svn commit: r434539 - head/Mk
Mathieu Arnold
mat at FreeBSD.org
Tue Feb 21 16:28:42 UTC 2017
Author: mat
Date: Tue Feb 21 16:28:41 2017
New Revision: 434539
URL: https://svnweb.freebsd.org/changeset/ports/434539
Log:
Fix the error message when no option in a _SINGLE is used.
PR: 217273
Reported by: Andreas Sommer
Sponsored by: Absolight
Modified:
head/Mk/bsd.port.mk (contents, props changed)
Modified: head/Mk/bsd.port.mk
==============================================================================
--- head/Mk/bsd.port.mk Tue Feb 21 15:08:16 2017 (r434538)
+++ head/Mk/bsd.port.mk Tue Feb 21 16:28:41 2017 (r434539)
@@ -4694,7 +4694,11 @@ _check-config: pre-check-config
.endfor
.for single in ${OPTIONS_WRONG_SINGLE}
@${ECHO_MSG} "====> You must select one and only one option from the ${single} single"
+.if defined(OPTIONS_WRONG_SINGLE_${single})
@${ECHO_MSG} "=====> Only one of these must be defined: ${OPTIONS_WRONG_SINGLE_${single}}"
+.else
+ @${ECHO_MSG} "=====> No option was selected (and one must be)"
+.endif
.endfor
.for radio in ${OPTIONS_WRONG_RADIO}
@${ECHO_MSG} "====> You cannot select multiple options from the ${radio} radio"
More information about the svn-ports-all
mailing list