${ABI} variable in pkg config

I am using a pkg repository config file that contains ${ABI} in a URL.

On v14.3 this is returning
Code:
Freebsd:14:amd64
when I believe it should return
Code:
FreeBSD:14:amd64
.

The OS List in libpkg/pkg_abi.c (on Github) suggests the OS string should be FreeBSD (capital BSD). I didn't install src during installation so cannot check my specific build.

Unclear if there is an issue/explanation for this?
 
Has it been set in pkg.conf perhaps? It should be automatically generated but you can overrule it by setting ABI in pkg.conf(5).
Code:
     ABI: string  The ABI of the package you want to install, for example
                  ‘FreeBSD:14:amd64’.  This should be set in combination with
                  the OSVERSION option if targeting FreeBSD to specify the
                  exact target version.  Default: derived based on ABI_FILE.

     ABI_FILE: string
                  Set the file used to determine the target ABI.  Default:
                  /usr/bin/uname, or if not found, /bin/sh.
Also, what does uname -s show?
 
As mentioned, you might have ABI set wrong somewhere, you can grep for it:
Rich (BB code):
[1-0] % grep '^[^#]*ABI' /etc/pkg/FreeBSD.conf /usr/local/etc/pkg.conf /usr/local/etc/pkg/repos/*.conf
/etc/pkg/FreeBSD.conf:  url: "pkg+https://pkg.FreeBSD.org/${ABI}/quarterly",
/etc/pkg/FreeBSD.conf:  url: "pkg+https://pkg.FreeBSD.org/${ABI}/kmods_quarterly_${VERSION_MINOR}",
/usr/local/etc/pkg.conf:ABI = "Freebsd:14:amd64";
/usr/local/etc/pkg/repos/FreeBSD.conf:    url: pkg+https://pkg.freebsd.org/${ABI}/latest,
/usr/local/etc/pkg/repos/FreeBSD.conf:    url: pkg+https://pkg.freebsd.org/${ABI}/kmods_latest_${VERSION_MINOR},
This shows the ABI wrongly defined.
 
Back
Top