Re: How do I determine the ABI string used by pkg?
- Reply: Dan Langille : "Re: How do I determine the ABI string used by pkg?"
- In reply to: Mel Pilgrim : "How do I determine the ABI string used by pkg?"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 06 Mar 2023 07:56:22 UTC
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