Date: Mon, 6 Mar 2023 08:56:22 +0100 From: Baptiste Daroussin <bapt@FreeBSD.org> To: Mel Pilgrim <list_freebsd@bluerosetech.com> Cc: ports@freebsd.org, questions@freebsd.org Subject: Re: How do I determine the ABI string used by pkg? Message-ID: <20230306075622.xfzs33fmflc2vmtb@aniel.nours.eu> In-Reply-To: <32d2e376-3f89-0588-316d-801d4cbf0b44@bluerosetech.com> References: <32d2e376-3f89-0588-316d-801d4cbf0b44@bluerosetech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 01, 2023 at 11:50:13PM -0800, Mel Pilgrim wrote: > I need to determine the ABI string pkg uses on a given system, and need to > do so when there are no pkgs installed. pkg config ABI pkg config ALTABI > > I've read through libpkg/pkg_elf.c and I can see how it's reading ELF > headers from well-known files. That's all easy enough to replicate, but I'm > a bit stuck on how it's determining the arch string for x86. Why, what are you trying to do? > > How/When does pkg decide to use FreeBSD:13:amd64 instead of > FreeBSD:13:x86:64? Can I safely assume one or the other? > Internally pkg always and only uses freebsd:13:x86:64 internally and never FreeBSD:13:amd64. the ALTABI allows fine grain matching of ABI and compatibility between arches. ABI is a more user freindly way to read it. Bapt
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20230306075622.xfzs33fmflc2vmtb>