[RFC] less patches: control the PATH

Baptiste Daroussin bapt at FreeBSD.org
Fri Oct 6 13:23:51 UTC 2017

On Fri, Oct 06, 2017 at 01:11:46PM +0000, Baptiste Daroussin wrote:
> 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
> 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 :)

renamed BINARY_LINKS which is less worse :)

Best regards,
-------------- 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/92b2c0ae/attachment.sig>

More information about the freebsd-ports mailing list