Re: How do I determine the ABI string used by pkg?

From: Tatsuki Makino <tatsuki_makino_at_hotmail.com>
Date: Wed, 08 Mar 2023 06:47:49 UTC
I see that the pkg for the bootstrapper has a function in /usr/src/usr.sbin/pkg/config.c to create an ABI.
There is a function called pkg_get_myabi, which seems to be just the result of the following command, with a colon in between. (In fact, it's a system call or something.)

uname -s
expr `uname -U` / 100000
sysctl -n hw.machine_arch

That's it? That's it :)
Regards.