bogus warning from pkg
Chris
portmaster at bsdforge.com
Tue Feb 16 20:47:06 UTC 2021
On 2021-02-15 22:20, Steve Kargl wrote:
> On Mon, Feb 15, 2021 at 08:18:13PM -0800, Mark Millard wrote:
>> Steve Kargl sgk at troutmask.apl.washington.edu wrote on
>> Tue Feb 16 02:14:06 UTC 2021 :
>>
>> > On Mon, Feb 15, 2021 at 05:10:54PM -0800, Mark Millard via freebsd-ports wrote:
>> > > Steve Kargl sgk at troutmask.apl.washington.edu wrote on
>> > > Mon Feb 15 20:39:19 UTC 2021 :
>> > >
>> > > > Step 1). Install FreeBSD 13.0 on empty disk.
>> > > > Step 2). Install git from ports and grab FreeBSD 14.0 src.
>> > > > Step 3). Buildworld/kernel for FreeBSD 14.0
>> > > > Step 4). Install FreeBSD 14.0 and reboot.
>> > > > Step 5). Delete all ports.
>> > > > Step 6). Re-install pkg, portmaster, and 589 other ports.
>> > >
>> > > It does not sound like Step 6 was "rebuild ports and install"
>> > > but just pkg install use, at least for pkg itself.
>> >
>> > Ports are rebuilt on the system as the pre-built ports
>> > have options selected that do not match the requirements
>> > of the system. It takes a week or more to rebuild
>> > everything, which why I'm concerned with the bogus
>> > warning and whether 'pkg bootstrap -f' would rebuild
>> > everything.
>> >
>> > I also do
>> >
>> > % cd /usr/ports
>> > % svn update
>> > % make fetchindex
>> > % pkg audit -qF
>> >
>> > before I build any port. That third step pulls down
>> > the INDEX-14, which again leads to confusion when pkg
>> > issues a warning about 13.
>>
>> If you still have the context to do the comparison:
>>
>> How does the output of "pkg info pkg" compare to:
>>
>> . . .
>> Architecture : FreeBSD:13:amd64
>> . . .
>> Annotations :
>> FreeBSD_version: 13?????
>> . . .
>>
>> Does it have "14"s instead of "13"s?
>>
>
> I simply did a 'portmaster -Byd pkg' and did a rebuild
> and re-install of pkg. That seems to have mysteriously
> fixed the issue. I'll chalk this up to another FreeBSD
> heisenbug.
Just saw this on current at . While this on a aarch, it still seems relevant.
title: pkg vs uname troubles after upgrade to 14
Hi,
Upgraded from 13 to 14.
# uname -UK
1400003 1400003
But elfdump on uname gives:
note (.note.tag):
FreeBSD 1300133 (NT_FREEBSD_ABI_TAG)
# pkg -o OSVERSION=1400003 upgrade
pkg: Warning: Major OS version upgrade detected. Running "pkg bootstrap -f"
recommended
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Updating database digests format: 100%
Checking for upgrades (1 candidates): 100%
Processing candidates (1 candidates): 100%
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):
Installed packages to be REINSTALLED:
pkg-1.16.2 (ABI changed: 'freebsd:14:aarch64:64' ->
'freebsd:13:aarch64:64')
Number of packages to be reinstalled: 1
How do I do this properly? Rebuilding name still gives it the ELF note of
1300133.
It does not matter if I pass "-o OSVERSION=1400003" to pkg or not.
Found https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225104, but I don't
think it was really resolved.
This is on aarch64. And why does pkg not use the version uname is reporting
by -UK instead of the ELF note?
Regards,
Ronald.
Maybe sheds some additional light?
More information about the freebsd-ports
mailing list