Date: Fri, 6 Oct 2017 15:11:46 +0200 From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports@FreeBSD.org Subject: [RFC] less patches: control the PATH Message-ID: <20171006131146.qswg2barkhelii4n@ivaldir.net>
next in thread | raw e-mail | index | archive | help
--p4jg2himzpv3wah7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --p4jg2himzpv3wah7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEgOTj3suS2urGXVU3Y4mL3PG3PloFAlnXgRAACgkQY4mL3PG3 PlogdxAAsar4fY9T7EYR+iPpCSarXKmPy36/nz+LXSfxEXe3Oa0ekrjq79vfyEQe LQOcshlPLjoc4/cVw+SnirS+TOl7CjoFd5pw0tqz6M4DQ94hSgInENc4b6QHG5ZC K8EsEo5MBm+WnHlpvgXnlK0b2dzZio7Jn7C22tFgezvWIMGihrfT1zNYhS9GAFz1 q1OfkUSlzsegnrmTKOhrQYep7xUrjt0NYtxopLXctfsW8SZ8Gr4DtfbU3U3JP41S FNy+zQGrAiX7W0/mGpLgI1r90janx8EkljQRgadlgu/+x9lUpgAPaztVUzUEaXd+ Bz91bGWy36FjieBNMuVYlnFuIDsY5AxTcxMoChOPrTbeNIRAnVkiFXrds9WaQDnP 97pdJnaEhecqyG8xBk7hAf1ZaPVNpDRdDcc+Cuyv7gStYxgXhbGIsLYXOq//DuWP S659/k65OXaeL+9IIRhZq1wPw3jMQAk/rVcOXDpapOqMVtKgeR0dFrdeO1p6NYcD lzzpFsGK22YDFwd/BwL+UGLVi7Xls+GvRGbzp3ffSLWOlOXIXgI37s89VSDTUsW+ HrugJdKJGC9CTSjCvBHgZUiwaL6r0bX7el8ahqCSbshl3ypebEU2GonABaEMylRO lK3v0uiJ6/JAR/WbBMae03yQoJZdbJJgr+DD84odNmr1+4M/wcQ= =jvf1 -----END PGP SIGNATURE----- --p4jg2himzpv3wah7--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20171006131146.qswg2barkhelii4n>