Mk/bsd.port.mk: Fix quoting of ${COMMENT:Q} in the describe target

The contents of COMMENT will be adequately protected against
interpretation by the shell due to the :Q modifier.

This access to the COMMENT variable should therefore not be enclosed
in double quotes.

Approved by:	portmgr (implicit)
This commit is contained in:
Stefan Eßer 2022-09-08 16:03:19 +02:00
parent 31290cc355
commit 136a6b01d2

View file

@ -4366,7 +4366,7 @@ INDEX_OUT=/dev/stdout
. if empty(FLAVORS) || defined(_DESCRIBE_WITH_FLAVOR)
describe:
@(${ECHO_CMD} "${PKGNAME}|${.CURDIR}|${PREFIX}|${COMMENT:Q}|${_DESCR}|${MAINTAINER}|${CATEGORIES}|${_EXTRACT_DEPENDS}|${_PATCH_DEPENDS}|${_FETCH_DEPENDS}|${_BUILD_DEPENDS:O:u}|${_RUN_DEPENDS:O:u}|${_WWW}" >> ${INDEX_OUT})
@(${ECHO_CMD} "${PKGNAME}|${.CURDIR}|${PREFIX}|"${COMMENT:Q}"|${_DESCR}|${MAINTAINER}|${CATEGORIES}|${_EXTRACT_DEPENDS}|${_PATCH_DEPENDS}|${_FETCH_DEPENDS}|${_BUILD_DEPENDS:O:u}|${_RUN_DEPENDS:O:u}|${_WWW}" >> ${INDEX_OUT})
. else # empty(FLAVORS)
describe: ${FLAVORS:S/^/describe-/}
. for f in ${FLAVORS}