[RFC] less patches: control the PATH

Baptiste Daroussin bapt at FreeBSD.org
Fri Oct 6 13:11:47 UTC 2017


Hi all,

Here is a patch to add a new feature I am willing to get for a while:
https://reviews.freebsd.org/D12603

What this patch does it basically prepend to PATH a new directory (inside
WRKDIR)

A user can control which binary will be found in the PATH of the build sequences
easily by adding
BINARY_RENAME=	source target

This will create a sumlink in the WRKDIR/.bin directory:
${WRKDIR}/.bin/target -> source

The goal here to avoid patching a port which needs to use for example gsed
instead of our bsd sed
BINARY_RENAMe=	gsed sed

of specify gcc will be gcc7, etc

This should remove lots of custom patches in the ports tree.

PS: this should break no port building tool :)
PS2: the BINARY_RENAME variable name sucks, any better name is welcome :)

Best regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20171006/b7fd02d2/attachment.sig>


More information about the freebsd-ports mailing list