Date: Thu, 07 Dec 2023 08:22:28 -0500 From: "Dan Langille" <dan@langille.org> To: "Warner Losh" <imp@bsdimp.com> Cc: "freebsd-hackers@freebsd.org" <hackers@freebsd.org> Subject: Re: list of valid ABI combinations Message-ID: <66557d4f-6392-4260-b72f-613354380d55@app.fastmail.com> In-Reply-To: <CANCZdfpuA86qX_SMyOM4wNa0f%2BH3GKvz8TP9W7c__r8=4-WaFQ@mail.gmail.com> References: <090b5b29-50bd-470a-905b-b9c2016a5189@www.fastmail.com> <8634fd2e-6c8f-4d37-99e2-56f4febd74d9@app.fastmail.com> <CANCZdfpuA86qX_SMyOM4wNa0f%2BH3GKvz8TP9W7c__r8=4-WaFQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On Wed, Dec 6, 2023, at 8:31 PM, Warner Losh wrote: > > > 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). For those following along at home: [13:18 mydev dan ~/src/freebsd/src] % make targets Supported TARGET/TARGET_ARCH pairs for world and kernel targets amd64/amd64 arm/armv7 arm64/aarch64 i386/i386 powerpc/powerpc powerpc/powerpc64 powerpc/powerpc64le riscv/riscv64 > If you compute the cross product of that list and the supported branches {12,13,14;15} you will know what you can try. Is that list hosted somewhere I can script a fetch? I'm going to guess no. Granted, that list changes infrequently too. > 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. My goal is to automatically maintain this table, from which FreshPorts fetches package information: freshports.dev=# select * from abi order by name; id | name | active ----+----------------------+-------- 9 | FreeBSD:12:aarch64 | t 1 | FreeBSD:12:amd64 | t 15 | FreeBSD:12:armv6 | t 16 | FreeBSD:12:armv7 | t 8 | FreeBSD:12:i386 | t 18 | FreeBSD:12:mips64 | t 19 | FreeBSD:12:powerpc64 | t 2 | FreeBSD:13:aarch64 | t 11 | FreeBSD:13:amd64 | t 20 | FreeBSD:13:armv6 | t 21 | FreeBSD:13:armv7 | t 10 | FreeBSD:13:i386 | t 23 | FreeBSD:13:mips64 | t 24 | FreeBSD:13:powerpc64 | t 34 | FreeBSD:13:riscv64 | t 26 | FreeBSD:14:aarch64 | t 27 | FreeBSD:14:amd64 | t 28 | FreeBSD:14:armv6 | t 29 | FreeBSD:14:armv7 | t 30 | FreeBSD:14:i386 | t 32 | FreeBSD:14:mips64 | t 33 | FreeBSD:14:powerpc64 | t 35 | FreeBSD:14:riscv64 | t 54 | FreeBSD:15:aarch64 | t 47 | FreeBSD:15:amd64 | t 48 | FreeBSD:15:armv6 | t 49 | FreeBSD:15:armv7 | t 50 | FreeBSD:15:i386 | t 51 | FreeBSD:15:mips64 | t 52 | FreeBSD:15:powerpc64 | t 53 | FreeBSD:15:riscv64 | t (31 rows) freshports.dev=# Thank you. :) -- Dan Langille dan@langille.org [-- Attachment #2 --] <!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>On Wed, Dec 6, 2023, at 8:31 PM, Warner Losh wrote:<br></div><blockquote type="cite" id="qt" style=""><div dir="auto"><div><div><br></div><div><br></div><div class="qt-gmail_quote"><div dir="ltr" class="qt-gmail_attr">On Wed, Dec 6, 2023, 6:01 PM Dan Langille <<a href="mailto:dan@langille.org">dan@langille.org</a>> wrote:<br></div><blockquote class="qt-gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex;"><div>On Thu, Apr 9, 2020, at 11:01 AM, Dan Langille wrote:<br></div><div> > Hello,<br></div><div> ><br></div><div> > I'm looking to add package support to FreshPorts - so you can know if a <br></div><div> > package exists for a given ABI (e.g. FreeBSD:12:amd64).<br></div><div> ><br></div><div> > The goal, write a script which does something like this:<br></div><div> ><br></div><div> > for abi in $ABIS<br></div><div> > do<br></div><div> > fetch -o abi. packagesite.txz <br></div><div> > <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></div><div> > # parse the file, updating the database<br></div><div> > done<br></div><div> ><br></div><div> > Is there a list of current valid ABI combinations.<br></div><div> ><br></div><div> > 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></div><div> ><br></div><div> > While my goal is to have FreshPorts require minimal intervention, I <br></div><div> > suppose new ABI combinations do not come along frequently and could be <br></div><div> > maintained manually. It does not seem like a huge task.<br></div><div> ><br></div><div> > 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></div><div> <br></div><div> I see I have been trying to figure this out for a few years.<br></div><div> <br></div><div> Does anyone have any ideas as to where this might be determined?<br></div></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).<br></div></div></blockquote><div><br></div><div>For those following along at home:<br></div><div><br></div><div>[13:18 mydev dan ~/src/freebsd/src] % make targets<br></div><div>Supported TARGET/TARGET_ARCH pairs for world and kernel targets<br></div><div> amd64/amd64<br></div><div> arm/armv7<br></div><div> arm64/aarch64<br></div><div> i386/i386<br></div><div> powerpc/powerpc<br></div><div> powerpc/powerpc64<br></div><div> powerpc/powerpc64le<br></div><div> riscv/riscv64<br></div><div><br></div><div><br></div><blockquote type="cite" id="qt" style=""><div dir="auto"><div dir="auto"><span style="color:rgb(27, 30, 32);">If you compute the cross product of that list and the supported branches {12,13,14;15} you will know what you can try. </span><br></div></div></blockquote><div><br></div><div>Is that list hosted somewhere I can script a fetch? I'm going to guess no. Granted, that list changes infrequently too.<br></div><div><br></div><blockquote type="cite" id="qt" style=""><div dir="auto"><div dir="auto"><span style="color:rgb(27, 30, 32);">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.</span><br></div></div></blockquote><div id="sig65064480"><div class="signature"><br></div><div class="signature">My goal is to automatically maintain this table, from which FreshPorts fetches package information:<br></div><div class="signature"><br></div><div class="signature">freshports.dev=# select * from abi order by name;<br></div></div><div>id | name | active <br></div><div>----+----------------------+--------<br></div><div> 9 | FreeBSD:12:aarch64 | t<br></div><div> 1 | FreeBSD:12:amd64 | t<br></div><div>15 | FreeBSD:12:armv6 | t<br></div><div>16 | FreeBSD:12:armv7 | t<br></div><div> 8 | FreeBSD:12:i386 | t<br></div><div>18 | FreeBSD:12:mips64 | t<br></div><div>19 | FreeBSD:12:powerpc64 | t<br></div><div> 2 | FreeBSD:13:aarch64 | t<br></div><div>11 | FreeBSD:13:amd64 | t<br></div><div>20 | FreeBSD:13:armv6 | t<br></div><div>21 | FreeBSD:13:armv7 | t<br></div><div>10 | FreeBSD:13:i386 | t<br></div><div>23 | FreeBSD:13:mips64 | t<br></div><div>24 | FreeBSD:13:powerpc64 | t<br></div><div>34 | FreeBSD:13:riscv64 | t<br></div><div>26 | FreeBSD:14:aarch64 | t<br></div><div>27 | FreeBSD:14:amd64 | t<br></div><div>28 | FreeBSD:14:armv6 | t<br></div><div>29 | FreeBSD:14:armv7 | t<br></div><div>30 | FreeBSD:14:i386 | t<br></div><div>32 | FreeBSD:14:mips64 | t<br></div><div>33 | FreeBSD:14:powerpc64 | t<br></div><div>35 | FreeBSD:14:riscv64 | t<br></div><div>54 | FreeBSD:15:aarch64 | t<br></div><div>47 | FreeBSD:15:amd64 | t<br></div><div>48 | FreeBSD:15:armv6 | t<br></div><div>49 | FreeBSD:15:armv7 | t<br></div><div>50 | FreeBSD:15:i386 | t<br></div><div>51 | FreeBSD:15:mips64 | t<br></div><div>52 | FreeBSD:15:powerpc64 | t<br></div><div>53 | FreeBSD:15:riscv64 | t<br></div><div>(31 rows)<br></div><div><br></div><div>freshports.dev=# <br></div><div><br></div><div>Thank you. :)</div><div id="sig65064480"><div class="signature"><br></div><div class="signature">--<br></div><div class="signature"> Dan Langille<br></div><div class="signature"> dan@langille.org<br></div><div class="signature"><br></div></div><div><br></div></body></html>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?66557d4f-6392-4260-b72f-613354380d55>
