Commit f7ab0bbf authored by mat's avatar mat
Browse files

Add a warning about using PORTSDIR in a *_DEPENDS line.

Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D6075
parent 169e3c54
......@@ -4328,6 +4328,17 @@ ${deptype:tl}-depends:
_UNIFIED_DEPENDS=${PKG_DEPENDS} ${EXTRACT_DEPENDS} ${PATCH_DEPENDS} ${FETCH_DEPENDS} ${BUILD_DEPENDS} ${LIB_DEPENDS} ${RUN_DEPENDS} ${TEST_DEPENDS}
_DEPEND_SPECIALS= ${_UNIFIED_DEPENDS:M*\:*\:*:C,^[^:]*:([^:]*):.*$,\1,}
.for d in ${_UNIFIED_DEPENDS:M*\:/*}
# Fight .for variable interpolation differently for each version of make...
.if defined(.PARSEDIR)
_PORTSDIR_STR= $${PORTSDIR}/
DEV_WARNING+= "It looks like the ${d} depends line has an absolute port origin, make sure to remove \$${_PORTSDIR_STR} from it."
.else
_PORTSDIR_STR= $$$${PORTSDIR}/
DEV_WARNING+= "It looks like the ${d} depends line has an absolute port origin, make sure to remove \$${_PORTSDIR_STR} from it."
.endif
.endfor
all-depends-list:
@${ALL-DEPENDS-LIST}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment