Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Dec 2023 18:31:17 -0700
From:      Warner Losh <imp@bsdimp.com>
To:        Dan Langille <dan@langille.org>
Cc:        "freebsd-hackers@freebsd.org" <hackers@freebsd.org>
Subject:   Re: list of valid ABI combinations
Message-ID:  <CANCZdfpuA86qX_SMyOM4wNa0f%2BH3GKvz8TP9W7c__r8=4-WaFQ@mail.gmail.com>
In-Reply-To: <8634fd2e-6c8f-4d37-99e2-56f4febd74d9@app.fastmail.com>
References:  <090b5b29-50bd-470a-905b-b9c2016a5189@www.fastmail.com> <8634fd2e-6c8f-4d37-99e2-56f4febd74d9@app.fastmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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
>
>

[-- Attachment #2 --]
<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 6, 2023, 6:01 PM Dan Langille &lt;<a href="mailto:dan@langille.org">dan@langille.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Apr 9, 2020, at 11:01 AM, Dan Langille wrote:<br>
&gt; Hello,<br>
&gt;<br>
&gt; I&#39;m looking to add package support to FreshPorts - so you can know if a <br>
&gt; package exists for a given ABI (e.g. FreeBSD:12:amd64).<br>
&gt;<br>
&gt; The goal, write a script which does something like this:<br>
&gt;<br>
&gt;   for abi in $ABIS<br>
&gt;   do<br>
&gt;     fetch -o abi. packagesite.txz <br>
&gt; <a href="https://pkg.freebsd.org/$abi/latest/packagesite.txz" rel="noreferrer noreferrer" target="_blank">https://pkg.freebsd.org/$abi/latest/packagesite.txz</a><br>;
&gt;     # parse the file, updating the database<br>
&gt;   done<br>
&gt;<br>
&gt; Is there a list of current valid ABI combinations.<br>
&gt;<br>
&gt; I see a list at <a href="https://pkg.freebsd.org/" rel="noreferrer noreferrer" target="_blank">https://pkg.freebsd.org/</a>; - is this manually maintained?<br>
&gt;<br>
&gt; While my goal is to have FreshPorts require minimal intervention, I <br>
&gt; suppose new ABI combinations do not come along frequently and could be <br>
&gt; maintained manually. It does not seem like a huge task.<br>
&gt;<br>
&gt; More details here: <a href="https://github.com/FreshPorts/freshports/issues/142" rel="noreferrer noreferrer" target="_blank">https://github.com/FreshPorts/freshports/issues/142</a><br>;
<br>
I see I have been trying to figure this out for a few years.<br>
<br>
Does anyone have any ideas as to where this might be determined?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">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&#39;s a subset of branches and abis, but since it&#39;s just the packages this should give you a matrix after you fetch.</div><div dir="auto"><br></div><div dir="auto">Warner</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-- <br>
  Dan Langille<br>
  <a href="mailto:dan@langille.org" target="_blank" rel="noreferrer">dan@langille.org</a><br>
<br>
</blockquote></div></div></div>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfpuA86qX_SMyOM4wNa0f%2BH3GKvz8TP9W7c__r8=4-WaFQ>