From nobody Sat Jan 27 08:20:15 2024 X-Original-To: freebsd-pkgbase@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TMSDT6Qb4z57x65 for ; Sat, 27 Jan 2024 08:20:25 +0000 (UTC) (envelope-from kp@krion.cc) Received: from krion.cc (krion.cc [148.251.235.209]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4TMSDS3dKSz4PVm for ; Sat, 27 Jan 2024 08:20:24 +0000 (UTC) (envelope-from kp@krion.cc) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of kp@krion.cc designates 148.251.235.209 as permitted sender) smtp.mailfrom=kp@krion.cc Date: Sat, 27 Jan 2024 09:20:15 +0100 From: Kirill Ponomarev To: Mark Millard Cc: FreeBSD-pkgbase@freebsd.org Subject: Re: pkgbase sometimes reported package vs. running kernel mismatches [ 1400505 vs. 1400501] (despite uname -KU producing 1400505 1400505) Message-ID: References: <33A2E7A8-0A46-48F5-BF1D-4BA5921703E3.ref@yahoo.com> <33A2E7A8-0A46-48F5-BF1D-4BA5921703E3@yahoo.com> List-Id: Packaging the FreeBSD base system List-Archive: https://lists.freebsd.org/archives/freebsd-pkgbase List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkgbase@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="U65/vfHNGxA3lH86" Content-Disposition: inline In-Reply-To: <33A2E7A8-0A46-48F5-BF1D-4BA5921703E3@yahoo.com> X-Spamd-Bar: ----- X-Spamd-Result: default: False [-5.38 / 15.00]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.978]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[kp]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:24940, ipnet:148.251.0.0/16, country:DE]; TO_DN_SOME(0.00)[]; DMARC_NA(0.00)[krion.cc]; RCVD_COUNT_ZERO(0.00)[0]; FREEMAIL_TO(0.00)[yahoo.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[FreeBSD-pkgbase@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; R_DKIM_NA(0.00)[]; MISSING_XM_UA(0.00)[] X-Rspamd-Queue-Id: 4TMSDS3dKSz4PVm --U65/vfHNGxA3lH86 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 01/20, Mark Millard wrote: > I got some odd reports of the likes of: >=20 > Newer FreeBSD version for package FreeBSD-tcpd-lib32: > To ignore this error set IGNORE_OSVERSION=3Dyes > - package: 1400505 > - running kernel: 1400501 > Ignore the mismatch and continue? [y/N]:=20 >=20 > It was in a context with: >=20 > # uname -apKU > FreeBSD generic 14.0-STABLE FreeBSD 14.0-STABLE stable/14-n266448-e2b71e1= 490a3 GENERIC arm64 aarch64 1400505 1400505 >=20 > # file /usr/sbin/pkg* /usr/local/sbin/pkg* > /usr/sbin/pkg: ELF 64-bit LSB pie executable, ARM aarch64,= version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1,= for FreeBSD 14.0 (1400501), FreeBSD-style, stripped > /usr/local/sbin/pkg: ELF 64-bit LSB executable, ARM aarch64, ver= sion 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for= FreeBSD 14.0 (1400097), FreeBSD-style, with debug_info, not stripped > /usr/local/sbin/pkg-static: ELF 64-bit LSB executable, ARM aarch64, ver= sion 1 (FreeBSD), statically linked, for FreeBSD 14.0 (1400097), FreeBSD-st= yle, with debug_info, not stripped > /usr/local/sbin/pkg_libchk: POSIX shell script, ASCII text executable > /usr/local/sbin/pkg_trim: POSIX shell script, ASCII text executable > /usr/local/sbin/pkg_validate: POSIX shell script, ASCII text executable >=20 > # ls -Tlodt /usr/sbin/pkg* /usr/local/sbin/pkg* > -r-xr-xr-x 1 root wheel - 33328 Jan 19 19:40:53 2024 /usr/sbin/pkg > -rwxr-xr-x 1 root wheel - 235 Jan 9 20:48:36 2024 /usr/local/sbin/= pkg_libchk > -rwxr-xr-x 1 root wheel - 235 Jan 9 20:48:36 2024 /usr/local/sbin/= pkg_trim > -rwxr-xr-x 1 root wheel - 235 Jan 9 20:48:36 2024 /usr/local/sbin/= pkg_validate > -rwxr-xr-x 1 root wheel - 3353416 Jan 5 21:30:02 2024 /usr/local/sbin/= pkg > -rwxr-xr-x 1 root wheel - 32710384 Jan 5 21:30:02 2024 /usr/local/sbin/= pkg-static >=20 >=20 > But the pkg results were somewhat variable, despite that stable context. > I tried reboots multiple times and still got mixed results. >=20 > I do not known where the 1400501 in "running kernel: 1400501" came > from when it was reported. I see these anomalies here as well: ~ uname -apKU FreeBSD krion.cc 15.0-CURRENT FreeBSD 15.0-CURRENT main-n267784-2d05a1c81b2= c GENERIC amd64 amd64 1500012 1500012 ~ ls -Tlodt /usr/sbin/pkg* /usr/local/sbin/pkg* -r-xr-xr-x 1 root wheel uarch 34832 Jan 25 19:35:45 2024 /usr/sbin/pkg -rwxr-xr-x 1 root wheel uarch 3408416 Jan 23 21:31:27 2024 /usr/local/sbi= n/pkg -rwxr-xr-x 1 root wheel uarch 34087808 Jan 23 21:31:27 2024 /usr/local/sbi= n/pkg-static ~ file /usr/sbin/pkg* /usr/local/sbin/pkg* /usr/sbin/pkg: ELF 64-bit LSB pie executable, x86-64, version = 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for Free= BSD 15.0 (1500007), FreeBSD-style, stripped /usr/local/sbin/pkg: ELF 64-bit LSB executable, x86-64, version 1 (F= reeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD = 15.0 (1500011), FreeBSD-style, with debug_info, not stripped /usr/local/sbin/pkg-static: ELF 64-bit LSB executable, x86-64, version 1 (F= reeBSD), statically linked, for FreeBSD 15.0 (1500011), FreeBSD-style, with= debug_info, not stripped Updating FreeBSD repository catalogue... FreeBSD repository is up to date. Updating FreeBSD-base repository catalogue... Fetching packagesite.pkg: 100% 39 KiB 40.2kB/s 00:01 Processing entries: 0% Newer FreeBSD version for package FreeBSD-wpa-man: To ignore this error set IGNORE_OSVERSION=3Dyes - package: 1500012 - running kernel: 1500007 --U65/vfHNGxA3lH86 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEJCHRFhEAQujKni1pDyI9/LMCykUFAmW0vL8ACgkQDyI9/LMC ykV8Sgf7BFHVG5JGpyYXdsiTvsaqIzKo+vC7M60kelbpnSNxjpFMLJ1X9dJoQKMq 6dSmLjSW5nr9GvVA/ZC6lEjS93se8GXnMTH079rt+XtG72cGzwe8HxtDuLwWhRny 0a2NnYWhTsryHj1lJIy2RHOTsR5WcRdbyXCQA4VWt5e0XSWGkCJNzo4IX/hMBVfD 2F8jVGBCmr6ix9+3swyL2eelvbRTjidVzwdOSNyXV5rzJdeAKD3/PXybTEk+tEXS m47I8FD7Dls9GQmtXzOpYwCb2LAx2YYzt4wXXC1KGD5gAjp4gu7j7/Zux3SNSUd8 lKOO3/m2BtxCaMBcaFnIxzxe5smzWQ== =Vh9X -----END PGP SIGNATURE----- --U65/vfHNGxA3lH86--