• A question about options

    From Thierry Thomas@thierry@freebsd.org to muc.lists.freebsd.ports on Sun Oct 5 16:16:09 2025
    From Newsgroup: muc.lists.freebsd.ports

    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 IrCOd prefer to avoid that. Any idea? Regards,
    --
    Th. Thomas.
    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Mathieu Arnold@mat@freebsd.org to muc.lists.freebsd.ports on Tue Oct 7 07:28:06 2025
    From Newsgroup: muc.lists.freebsd.ports


    --rhitoahhc66e7miz
    Content-Type: text/plain; charset=utf-8
    Content-Disposition: inline
    Content-Transfer-Encoding: quoted-printable

    On Sun, Oct 05, 2025 at 04:16:09PM +0200, Thierry Thomas wrote:
    Hello porters,
    =20
    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.
    =20
    There exists a macro for OPTIONS_EXCLUDE_${OPSYS}_${OSREL:R} but if I
    set
    OPTIONS_EXCLUDE_FreeBSD_16=3D PREVASSET
    there is no macro to change the default for the other releases.
    =20
    Is there something to do that?
    =20
    Of course I could change the default to GCC for every release, or write
    some hack to bypass the macros, but I=E2=80=99d 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=3D ${${OSVERSION} >=3D 16000000:?GCC6AUX:PREVASSET}

    --=20
    Mathieu Arnold

    --rhitoahhc66e7miz
    Content-Type: application/pgp-signature; name="signature.asc"

    -----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-----

    --rhitoahhc66e7miz--


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21a-Linux NewsLink 1.2