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
--0000000000004c015f060be16d65 Content-Type: text/plain; charset="UTF-8" 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 > > --0000000000004c015f060be16d65 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr" = class=3D"gmail_attr">On Wed, Dec 6, 2023, 6:01 PM Dan Langille <<a href= =3D"mailto:dan@langille.org">dan@langille.org</a>> wrote:<br></div><bloc= kquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #cc= c solid;padding-left:1ex">On Thu, Apr 9, 2020, at 11:01 AM, Dan Langille wr= ote:<br> > Hello,<br> ><br> > I'm looking to add package support to FreshPorts - so you can know= if a <br> > package exists for a given ABI (e.g. FreeBSD:12:amd64).<br> ><br> > The goal, write a script which does something like this:<br> ><br> >=C2=A0 =C2=A0for abi in $ABIS<br> >=C2=A0 =C2=A0do<br> >=C2=A0 =C2=A0 =C2=A0fetch -o abi. packagesite.txz <br> > <a href=3D"https://pkg.freebsd.org/$abi/latest/packagesite.txz" rel=3D= "noreferrer noreferrer" target=3D"_blank">https://pkg.freebsd.org/$abi/late= st/packagesite.txz</a><br> >=C2=A0 =C2=A0 =C2=A0# parse the file, updating the database<br> >=C2=A0 =C2=A0done<br> ><br> > Is there a list of current valid ABI combinations.<br> ><br> > I see a list at <a href=3D"https://pkg.freebsd.org/" rel=3D"noreferrer= noreferrer" target=3D"_blank">https://pkg.freebsd.org/</a> - is this manua= lly maintained?<br> ><br> > While my goal is to have FreshPorts require minimal intervention, I <b= r> > suppose new ABI combinations do not come along frequently and could be= <br> > maintained manually. It does not seem like a huge task.<br> ><br> > More details here: <a href=3D"https://github.com/FreshPorts/freshports= /issues/142" rel=3D"noreferrer noreferrer" target=3D"_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></block= quote></div></div><div dir=3D"auto"><br></div><div dir=3D"auto">It should b= e just the list of valid MACHINE_ARCH (make targets can give you a variatio= n of this list). If you compute the cross product of that list and the supp= orted branches {12,13,14;15} you will know what you can try. However, you n= eed 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 a= fter you fetch.</div><div dir=3D"auto"><br></div><div dir=3D"auto">Warner</= div><div dir=3D"auto"><br></div><div dir=3D"auto"><div class=3D"gmail_quote= "><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:= 1px #ccc solid;padding-left:1ex"> -- <br> =C2=A0 Dan Langille<br> =C2=A0 <a href=3D"mailto:dan@langille.org" target=3D"_blank" rel=3D"norefer= rer">dan@langille.org</a><br> <br> </blockquote></div></div></div> --0000000000004c015f060be16d65--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfpuA86qX_SMyOM4wNa0f%2BH3GKvz8TP9W7c__r8=4-WaFQ>