Re: pkg vs uname troubles after upgrade to 14

From: Ronald Klop <ronald-lists_at_klop.ws>
Date: Tue, 16 Feb 2021 17:38:43 +0100 (CET)
libpkg/pkg_elf.c:    const char *abi_files[] = {
libpkg/pkg_elf.c-        getenv("ABI_FILE"),
libpkg/pkg_elf.c-        _PATH_UNAME,
libpkg/pkg_elf.c-        _PATH_BSHELL,
libpkg/pkg_elf.c-    };

The detection first checks "/usr/bin/uname" if it exists and ABI_FILE is not set.
Yes the base is upgraded properly. It is a BE so if I installed wrongly I would not have any base.

But base is compiled by 13. So the ELF note NT_FREEBSD_ABI_TAG of the uname binary is 1300133.

I normally compile WITHOUT_CLEAN. What is the shortcut to recompile uname with the proper version nr and not having to recompiling clang? Cleaning and rebuilding only uname does not help.

Regards,
Ronald.

 
Van: Brandon Bergren <bdragon_at_FreeBSD.org>
Datum: dinsdag, 16 februari 2021 17:02
Aan: FreeBSD Current <freebsd-current_at_freebsd.org>
Onderwerp: Re: pkg vs uname troubles after upgrade to 14
> 
> 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
> _______________________________________________
> 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"
> 
> 
> 
Received on Tue Feb 16 2021 - 15:38:45 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:27 UTC