Re: list of valid ABI combinations

From: Warner Losh <imp_at_bsdimp.com>
Date: Thu, 07 Dec 2023 01:31:17 UTC
On Wed, Dec 6, 2023, 6:01 PM Dan Langille <dan@langille.org> wrote:

> On Thu, Apr 9, 2020, at 11:01 AM, Dan Langille wrote:
> > Hello,
> >
> > I'm looking to add package support to FreshPorts - so you can know if a
> > package exists for a given ABI (e.g. FreeBSD:12:amd64).
> >
> > The goal, write a script which does something like this:
> >
> >   for abi in $ABIS
> >   do
> >     fetch -o abi. packagesite.txz
> > https://pkg.freebsd.org/$abi/latest/packagesite.txz
> >     # parse the file, updating the database
> >   done
> >
> > Is there a list of current valid ABI combinations.
> >
> > I see a list at https://pkg.freebsd.org/ - is this manually maintained?
> >
> > While my goal is to have FreshPorts require minimal intervention, I
> > suppose new ABI combinations do not come along frequently and could be
> > maintained manually. It does not seem like a huge task.
> >
> > More details here: https://github.com/FreshPorts/freshports/issues/142
>
> I see I have been trying to figure this out for a few years.
>
> Does anyone have any ideas as to where this might be determined?
>

It should be just the list of valid MACHINE_ARCH (make targets can give you
a variation of this list). If you compute the cross product of that list
and the supported branches {12,13,14;15} you will know what you can try.
However, you need to know the current package builders. It's a subset of
branches and abis, but since it's just the packages this should give you a
matrix after you fetch.

Warner

-- 
>   Dan Langille
>   dan@langille.org
>
>