Re: pkg-static: Warning: Major OS version upgrade detected.

From: Ian Freislich <ianfreislich_at_gmail.com>
Date: Wed, 10 Sep 2025 14:39:18 UTC
On September 10, 2025 09:20:32 Dag-Erling Smørgrav <des@FreeBSD.org> wrote:

> Ian FREISLICH <ianfreislich@gmail.com> writes:
>> Kyle Evans <kevans@FreeBSD.org> writes:
>>> We certainly build packages for -current, but the branch happened
>>> only a little bit ago; it's another 12-14+ day cycle to get a fresh
>>> package set and alleviate the above condition.
>> In fairness, at the branch point, 15-prerelease and 16-current ports
>> trees are the same. Can't the whole set just be copied with the index
>> updated to 16?
>
> No, but users can add ABI=FreeBSD:15:$(uname -p) either to their
> pkg.conf or their environment to force FreeBSD 16 to use FreeBSD 15
> packages until FreeBSD 16 packages become available.  This should work
> as long as FreeBSD 15 and 16 don't diverge too much.  Once that happens,
> the trick will continue to work provided the kernel has COMPAT_FREEBSD15
> enabled and misc/compat15x is installed.  You will however have to build
> any port that includes a kernel module from source.

Thanks, I don't use binary packages and always compile ports so this trick 
will silence pkg. Is there a way to tell pkg that it's local only, ie. just 
for locally compiled ports?
Ian