Bug 196519

Summary: BUILD_DEPENDS can not contain templates
Product: Ports & Packages Reporter: Mikhail T. <freebsd-2024>
Component: Ports FrameworkAssignee: Port Management Team <portmgr>
Status: Closed Not A Bug    
Severity: Affects Only Me CC: eadler
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Mikhail T. 2015-01-05 18:26:37 UTC
Though devel/git builds just fine with docbook-4.4, it currently insists on 4.5:

BUILD_DEPENDS+=xmlto:${PORTSDIR}/textproc/xmlto \
               asciidoc:${PORTSDIR}/textproc/asciidoc \
               ${LOCALBASE}/share/xml/docbook/4.5:${PORTSDIR}/textproc/docbook-xml

Trying to replace 4.5 above with 4.* does not work -- the build checks for literal '4.*' instead of trying to find anything matching the template. It should be possible to specify such templates for BUILD_DEPENDS -- just as it is possible to do so for LIB_DEPENDS.
Comment 1 Antoine Brodin freebsd_committer freebsd_triage 2015-01-05 18:35:11 UTC
This is not a bug,  and doing so for LIB_DEPENDS is not valid,  you are wrong.
Comment 2 Mikhail T. 2015-01-05 19:49:21 UTC
(In reply to Antoine Brodin from comment #1)
> and doing so for LIB_DEPENDS is not valid, you are wrong.

Then this is a reversal of the approach in existence for many years. See Bug 34126 -- you were just beginning to use FreeBSD, when this was implemented, Antoine.

And then, there is Bug 114167, where eadler@ says, that "major effort" was gone into making sure, no port is being too strict about its shared-library requirements.

One of us is wrong, indeed.
Comment 3 Mathieu Arnold freebsd_committer freebsd_triage 2015-06-14 03:00:20 UTC
*_DEPENDS do not support wildcards.  It will be implemented, maybe, later, with provides/require.