Page MenuHomeFreeBSD

Add BINARY_WRAPPERS
ClosedPublic

Authored by bapt on Sep 29 2019, 5:01 AM.

Details

Summary

BINARY_WRAPPERS allow to push in front of the PATH wrappers for binaries.
This is useful when 2 tools do provide the same feature, but the configure
scripts do test for some variables which are not in one of the tool.

For example m4 in base is mostly compatible with GNU m4 when called with the -g
arguement. This wrapper allows to use it with build systems that do check for it
calling --version and expecting GNU in the arguments.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

bapt created this revision.Sep 29 2019, 5:01 AM
Herald added a subscriber: mat. · View Herald Transcript
mat added a comment.Sep 29 2019, 3:13 PM

Should't this be a USES instead of some new code in bsd.port.mk?

Like USES= wrapper:gm4 or something.

bapt added a comment.Oct 1 2019, 7:32 AM

I do think it is too short for a USES, I can do it, but in this case it seems simpler like this to me.

This revision was not accepted when it landed; it landed in state Needs Review.Oct 1 2019, 2:33 PM
This revision was automatically updated to reflect the committed changes.