Date: Tue, 21 Feb 2017 16:28:41 +0000 (UTC) From: Mathieu Arnold <mat@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r434539 - head/Mk Message-ID: <201702211628.v1LGSfnw061639@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702211628.v1LGSfnw061639>