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

Attachment: signature.asc
Description: PGP signature

Reply via email to