is there a "right" pkg (kmods) repo for 14.3-STABLE or -CURRENT?
Date: Sat, 02 Aug 2025 17:05:25 UTC
Most of my servers run FreeBSD 14.3-STABLE, I also have one 15.0-CURRENT,
and another with 14.3-RELEASE.
For some time I have used "latest" for my pkg repo on these systems.
buildworld(?) for -STABLE and -CURRENT also seems to automatically
adjust /etc/pkg/FreeBSD.conf:
$ uname -r
14.3-STABLE
$ grep -A1 ^FreeBSD /etc/pkg/FreeBSD.conf
FreeBSD: {
url: "pkg+https://pkg.FreeBSD.org/${ABI}/latest",
--
FreeBSD-kmods: {
url: "pkg+https://pkg.FreeBSD.org/${ABI}/kmods_latest",
whereas my -RELEASE systems still use "quarterly" by default.
Since the introduction of FreeBSD-kmods repo I sometimes see the version
mismatch error from 'pkg update' or the weekly cron job, e.g.
$ sudo pkg update
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating FreeBSD-kmods repository catalogue...
Fetching data.pkg: 100% 29 KiB 30.2kB/s 00:01
Processing entries: 0%
Newer FreeBSD version for package utouch-kmod:
To ignore this error set IGNORE_OSVERSION=yes
- package: 1403503
- running userland: 1403502
Ignore the mismatch and continue? [y/N]: y
...
I assume this is typically from FreeBSD-kmods, since I didn't see the
warning previously, and only when there is an updated -kmod package.
I'm aware of IGNORE_OSVERSION=yes but before setting that, I'm wondering
if there's a "native" repo to use for -STABLE or -CURRENT which avoids
the mismatch in the first place.
E.g. browsing https://pkg.freebsd.org/FreeBSD:14:amd64/ contents I see
kmods_latest[_23] and kmods_quarterly[_23] for -STABLE; I assume the
best match is a _latest*, but I haven't tried _2 or _3 so far. -CURRENT
appears to only have _latest, which is probably to be expected.
I suspect IGNORE_OSVERSION=yes is the only way to avoid the warning,
since pkg.conf(5) specifically mentions this; but I wanted to check if
this is still the best recommendation.
Thanks,
sr.