Re:_pkg-static:_Warning: Major OS version upgrade detected.

From: Alexey Volodin <me_at_allatar.ru>
Date: Wed, 10 Sep 2025 09:13:04 UTC
Hi Dan,
The https://pkg.freebsd.org/FreeBSD:16:amd64/ link was added just yesterday. I think its comletion with "latest/Latest/pkg*" will do the trick at bootstrap -f. Several days, mb.
---
WBR,
Alexey


Среда, Сентябрь 10, 2025 10:55 MSK, "Dan Mahoney (Ports)" <freebsd@gushi.org> писал(а):
 

> On Sep 9, 2025, at 12:12 PM, Lexi Winter <ivy@freebsd.org> wrote:
>
> Dan Mahoney (Ports):
>> Okay, maybe coffee hasn't hit yet, I've tried both:
>>
>> poudriere jail -c -j freebsd:16:x86:64-pkgbase -m pkgbase=https://pkg.freebsd.org/FreeBSD:16:amd64
>>
>> and
>>
>> poudriere jail -c -j freebsd:16:x86:64-pkgbase -m pkgbase=/FreeBSD:16:amd64 -U https://pkg.freebsd.org/
>>
>> (the manpage lacks an example for how to use -U and -m together)
>>
>> Neither works, what am I missing?
>
> i believe you want:
>
> poudriere jail -c -v 16 -j myjail -m pkgbase=base_latest -U https://pkg.freebsd.org
>
> -U should be the URL of the base repository, the argument to -m pkgbase
> is the repository name (base_latest in this case) and the ABI string is
> added automatically by poudriere itself.
>
> i've just tested this here and it seems to work.

Okay, so, I've gone through and completely rebuilt all my packages (except the few that had errors), I've disabled my stock repos, pointed pkg at my temp ones with a file:///url, and even pkg delete -f pkg and pkg bootstrap -f, unfortunately, pkg still seems to want to complain that there's a major mismatch. Is there a way to quell this error?

-Dan