pkg vs uname troubles after upgrade to 14

Brandon Bergren bdragon at FreeBSD.org
Tue Feb 16 16:02:50 UTC 2021


IIRC, the detection works by probing /bin/sh, make sure you upgraded your base properly.

On Tue, Feb 16, 2021, at 9:55 AM, Ronald Klop wrote:
> 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.
> 
>  
> _______________________________________________
> freebsd-current at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"
>

-- 
  Brandon Bergren
  bdragon at FreeBSD.org


More information about the freebsd-current mailing list