Re: A question about options
Mathieu Arnold <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.ports |
|---|---|
| Message-ID | <jau5pu2qpvxeyg44j2erxwt6pyawjtyibuscd7fyhanlfqawj7@zkaarwx5foxl> |
On Sun, Oct 05, 2025 at 04:16:09PM +0200, Thierry Thomas wrote:
> Hello porters,
>
> The ports lang/gnat12 and lang/gnat13 have a radio option to choose
> bootstrap, either from GCC or from the previous asset. The previous
> asset is the default, but for FreeBSD-16 no previous assets exists.
>
> There exists a macro for OPTIONS_EXCLUDE_${OPSYS}_${OSREL:R} but if I
> set
> OPTIONS_EXCLUDE_FreeBSD_16= PREVASSET
> there is no macro to change the default for the other releases.
>
> Is there something to do that?
>
> Of course I could change the default to GCC for every release, or write
> some hack to bypass the macros, but I’d prefer to avoid that. Any idea?
With the OPTIONS_EXCLUDE_..., you can probably change OPTIONS_DEFAULT to
something like this, I think make(1) supports this on all supported
branches:
OPTIONS_DEFAULT= ${${OSVERSION} >= 16000000:?GCC6AUX:PREVASSET}
--
Mathieu Arnold
signature.asc
(application/pgp-signature, 789 B)
-----BEGIN PGP SIGNATURE----- iQITBAABCgB9FiEE9XJBpJetWizkEBUef2IOCp6dQb4FAmjkpOVfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEY1 NzI0MUE0OTdBRDVBMkNFNDEwMTUxRTdGNjIwRTBBOUU5RDQxQkUACgkQf2IOCp6d Qb6m8Qv+IqDzaIC+BWkhR4UR9BI9OqpKje8DkQl7eRHIvMJxlP9fKLwzEJje+/N4 zpl0zf90H35uDRbCe9ZMQVFfNbFIUCfRNRBRNAufvgIerCTjL2iHc6nuddIiT6h9 aq8IcAdWq3ADKLE4Z0Ve1Lf4VvECRZOLTfjxIWncsBbqcN1DS1Ho9mxGQKSIwQ2c QyckTG24WFPDNLhGEBs56UqTFChSiGXUMJgcNI7B07FZ6ys5Qzd4fJLt0khvjR5D 10jGQ5YKHj3yYKvKRlZ/th6ZGT0ud37lpvW5RASsSxqK8qHRoYx4Hi+K6wbASvP3 q0OZBPV0Dy41sxWcUnnAMscR7Y1Xyc+d0sBgLiZnbeRrX8K9MoTFH/QwkYjrvFq3 sQWSexcDOtf65PYllyPshhi5GwuwwnglhtQ1wQLgEYpI9dGUdi0916yzGt8EwK41 CTJaIrfevpVQc+8sEZf4LJ4MHuVe8YKZSp7Jp9xwbnQQB+1D/m4s0h1h6slECX1P WqDORXu8 =/1kw -----END PGP SIGNATURE-----