From owner-freebsd-stable@freebsd.org Fri Oct 11 12:54:09 2019 Return-Path: Delivered-To: freebsd-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6888A14DDB7 for ; Fri, 11 Oct 2019 12:54:09 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46qSZT2BS2z4W9n for ; Fri, 11 Oct 2019 12:54:09 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id 461B814DDB6; Fri, 11 Oct 2019 12:54:09 +0000 (UTC) Delivered-To: stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 45DAA14DDB5 for ; Fri, 11 Oct 2019 12:54:09 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46qSZT19DPz4W9m; Fri, 11 Oct 2019 12:54:09 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from ivaldir.etoilebsd.net (etoilebsd.net [178.32.217.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: bapt) by smtp.freebsd.org (Postfix) with ESMTPSA id D5C6B92FD; Fri, 11 Oct 2019 12:54:08 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: by ivaldir.etoilebsd.net (Postfix, from userid 1001) id 51D41954CD; Fri, 11 Oct 2019 14:54:07 +0200 (CEST) Date: Fri, 11 Oct 2019 14:54:07 +0200 From: Baptiste Daroussin To: Bengt Ahlgren Cc: stable@freebsd.org, Ronald Klop Subject: Re: pkg thinks kernel is old Message-ID: <20191011125407.3xoxlama36wtmv5j@ivaldir.net> References: <1883214925.66.1570706728382@localhost> <20191010152902.rxoxavfyraqvcjpq@ivaldir.net> <20191011094649.nvemaxf75wzqd67x@ivaldir.net> <20191011105556.c2fpf5abiryajv4m@ivaldir.net> <20191011120426.mqlcn6vwtg6gxwxp@ivaldir.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="e7r4qvdfozyhrmtd" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Oct 2019 12:54:09 -0000 --e7r4qvdfozyhrmtd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 11, 2019 at 02:50:57PM +0200, Bengt Ahlgren wrote: > Baptiste Daroussin writes: >=20 > > On Fri, Oct 11, 2019 at 01:57:06PM +0200, Bengt Ahlgren wrote: > >> Baptiste Daroussin writes: > >>=20 > >> > On Fri, Oct 11, 2019 at 11:54:15AM +0200, Bengt Ahlgren wrote: > >> >> Baptiste Daroussin writes: > >> >>=20 > >> >> > On Fri, Oct 11, 2019 at 11:38:46AM +0200, Bengt Ahlgren wrote: > >> >> >> Baptiste Daroussin writes: > >> >> >>=20 > >> >> >> > On Thu, Oct 10, 2019 at 03:44:03PM +0200, Bengt Ahlgren wrote: > >> >> >> >> Ronald Klop writes: > >> >> >> >>=20 > >> >> >> >> > Van: Bengt Ahlgren > >> >> >> >> > Datum: woensdag, 9 oktober 2019 23:38 > >> >> >> >> > Aan: stable@freebsd.org > >> >> >> >> > Onderwerp: pkg thinks kernel is old > >> >> >> >> >> > >> >> >> >> >> I've ran into this on my 11.3-STABLE system: > >> >> >> >> >> > >> >> >> >> >> # uname -K > >> >> >> >> >> 1103500 > >> >> >> >> >> # pkg update -f > >> >> >> >> >> Updating ivyp repository catalogue... > >> >> >> >> >> Fetching meta.txz: 100% 560 B 0.6kB/s 00:01 Fet= ching > >> >> >> >> >> packagesite.txz: 100% 410 KiB 419.9kB/s 00:01 Proce= ssing > >> >> >> >> >> entries: 0% > >> >> >> >> >> Newer FreeBSD version for package zziplib: > >> >> >> >> >> To ignore this error set IGNORE_OSVERSION=3Dyes > >> >> >> >> >> - package: 1103000 > >> >> >> >> >> - running kernel: 1102509 > >> >> >> >> >> Ignore the mismatch and continue? [Y/n]: > >> >> >> >> >> > >> >> >> >> >> I build my own packages with poudriere, and have just swit= ched from an > >> >> >> >> >> 11.2-REL to an 11.3-REL jail. I didn't force-upgrade ever= ything after > >> >> >> >> >> the switch, perhaps that's needed to make pkg recognise th= e correct > >> >> >> >> >> kernel version? > >> >> >> >> >> > >> >> >> >> >> Bengt > >> >> >> >>=20 > >> >> >> >> > This message of pkg is misleading. > >> >> >> >> > > >> >> >> >> > It looks at /bin/sh or something like that for the version.= And prints > >> >> >> >> > that as the 'kernel' version. So if you did an incremental = build and > >> >> >> >> > /bin/sh was not changed the version stays the same. > >> >> >> >> > To fix it you can do a clean buildworld/installworld. > >> >> >> >> > > >> >> >> >> > Regards, > >> >> >> >> > Ronald. > >> >> >> >>=20 > >> >> >> >> That might well be it - I've done some buildworld:s with -DNO= _CLEAN > >> >> >> >> lately. I'll test - thanks for the tip! > >> >> >> > > >> >> >> > Can you provide the uname -U information (building with -DNO_C= LEAN) should be > >> >> >> > perfectly fine. > >> >> >>=20 > >> >> >> Thanks for looking into this! > >> >> >>=20 > >> >> >> $ uname -U > >> >> >> 1103500 > >> >> >>=20 > >> >> >> Let me know if there is something else I can check before I do a= full > >> >> >> buildworld on this system! > >> >> > > >> >> > What are the output of pkg config osversion > >> >> > and pkg -o ABI_FILE=3D/usr/bin/uname config osversion > >> >> > please > >> >>=20 > >> >> $ pkg config osversion > >> >> 1102509 > >> >> $ pkg -o ABI_FILE=3D/usr/bin/uname config osversion > >> >> 1102509 > >> > > >> > It means you /usr/bin/uname binary has been built with a compiler th= at says it > >> > is building for 1102509. > >> > > >> > Can you show the output of file /usr/bin/uname ? > >>=20 > >> $ uname -aKU > >> FreeBSD P142.sics.se 11.3-STABLE FreeBSD 11.3-STABLE #9 r353280: Mon > >> Oct 7 22:16:02 CEST 2019 > >> root@P142.sics.se:/storage/obj/usr/src/sys/X250 amd64 1103500 > >> 1103500 > >>=20 > >> no signs of 1102509 there... > >>=20 > >> and "strings -a /usr/bin/uname |grep 110" returns nothing. > >>=20 > > I am interested in the output of file /usr/bin/uname >=20 > Ah, right, didn't get it that you meant the file command, sorry... >=20 > $ file /usr/bin/uname=20 > /usr/bin/uname: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), d= ynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 11.2 (1102= 509), FreeBSD-style, stripped >=20 That is the problem. So if you don't want to rebuild you can add to your make.conf ABI_FILE=3D X= XX where XXX is the path to any file where when you run file on it says it was built for freebsd 11.3 Best regards, Bapt --e7r4qvdfozyhrmtd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEgOTj3suS2urGXVU3Y4mL3PG3PloFAl2ge2wACgkQY4mL3PG3 Plqh9g//ZNPNGLhwyEI8LX4/wYKkaSsMAeYAqrajKPknNybyMFQ1BMbAgx5VyLTI JyruURRGrUIQKTmMzzGvEelzY6ujQW/SxMsR8vxdXJRGT7DSavGaRdn+DyUfdsND oSYOtATLkBrXSRocWtJIf6NTvbkaKingg1PylFNfcwCVDJZLm0t4aGW8F+8EM7O7 5w90Hi4jTnd1YM7cVODZd1YQHzagEvQgjlOG/lVzKtx045FzB9560FA6C/phWi3+ wJKvLd+QVTBWH/rUuA5sVe1IbSdXDPskhudyMqUzrzJxMCKMNXryzWFs66C9jkVg viKNutxsyfwcDxWOrDIUKYao9trfnE3QfJsbNKVQD7d8r4vuo6fx3LQb2BshTh/3 XsTTynO3U2oYpgSdMaDfGSuut97BascrQM7EV3jmH3QbzU0ur6MyqhJef3a2rVvd cFF+TQGSCOf3ttp0I19K+AAfEU5hxq9kEoVM0yL0b9z5aVbZF8SbZRNOHXqKPTAa lPlm/2hRxl/8YrpbKJbNHFSkg2Lh6ek+5v77tGOa54u/dH9WMs4WBzpUNjSabtYP wJ6ao2TGmBBqRZGByJrHQ/m+3EpORtQf6uz5mQ8Zv4IPuhdeQljNpFths00+2jjJ 40NvLL3+MDuTy2MVsAGTk7rU+uD438y4YV2mdlxD8JZuqlGIQXw= =ewTw -----END PGP SIGNATURE----- --e7r4qvdfozyhrmtd--