Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Feb 2024 17:43:27 +0000
From:      bugzilla-noreply@freebsd.org
To:        pkg@FreeBSD.org
Subject:   [Bug 275482] ports-mgmt/pkg: incorrectly complains about outdated os version
Message-ID:  <bug-275482-32340-f4brdnMKU2@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-275482-32340@https.bugs.freebsd.org/bugzilla/>
References:  <bug-275482-32340@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275482

--- Comment #7 from Martin Birgmeier <d8zNeCFG@aon.at> ---
Yes indeed.

And the output is interesting:

[0]# file /usr/bin/uname
/usr/bin/uname: ELF 64-bit LSB pie executable, x86-64, version 1 (FreeBSD),
dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 14.0
(1400500), FreeBSD-style, stripped
[0]# ll /usr/bin/uname
-r-xr-xr-x  1 root wheel 14336 Feb  9 20:49 /usr/bin/uname
[0]# 

So it says 1400500 although it has been installed with the build of
a727d8d7f50f. And the way I update the system is to first installkernel
installworld it to a temporary directory and then to copy over only the changed
files (this is so that dump(8)s and zvol changes are minimized). So uname must
have changed when I did the NO_CLEAN buildworld, but still it says "for FreeBSD
14.0 (1400500)".

Anyhow, does this mean that pkg fetches the system version from the uname
binary instead of getting the actual value from the running system?

-- Martin

-- 
You are receiving this mail because:
You are the assignee for the bug.

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-275482-32340-f4brdnMKU2>