Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Oct 2019 15:08:48 +0200
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        Bengt Ahlgren <bengt.ahlgren@ri.se>
Cc:        stable@freebsd.org, Ronald Klop <ronald-lists@klop.ws>
Subject:   Re: pkg thinks kernel is old
Message-ID:  <20191011130848.wwg2qc6sou55diaq@ivaldir.net>
In-Reply-To: <uh77e5bzb0e.fsf@P142.sics.se>
References:  <20191010152902.rxoxavfyraqvcjpq@ivaldir.net> <uh7pnj31v15.fsf@P142.sics.se> <20191011094649.nvemaxf75wzqd67x@ivaldir.net> <uh7lftr1ubc.fsf@P142.sics.se> <20191011105556.c2fpf5abiryajv4m@ivaldir.net> <uh7o8ynze99.fsf@P142.sics.se> <20191011120426.mqlcn6vwtg6gxwxp@ivaldir.net> <uh7k19bzbri.fsf@P142.sics.se> <20191011125407.3xoxlama36wtmv5j@ivaldir.net> <uh77e5bzb0e.fsf@P142.sics.se>

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

--634mzxdjqa4gnl4c
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Oct 11, 2019 at 03:07:13PM +0200, Bengt Ahlgren wrote:
> Baptiste Daroussin <bapt@FreeBSD.org> writes:
>=20
> > On Fri, Oct 11, 2019 at 02:50:57PM +0200, Bengt Ahlgren wrote:
> >> Baptiste Daroussin <bapt@FreeBSD.org> writes:
> >>=20
> >> > On Fri, Oct 11, 2019 at 01:57:06PM +0200, Bengt Ahlgren wrote:
> >> >> Baptiste Daroussin <bapt@FreeBSD.org> writes:
> >> >>=20
> >> >> > On Fri, Oct 11, 2019 at 11:54:15AM +0200, Bengt Ahlgren wrote:
> >> >> >> Baptiste Daroussin <bapt@FreeBSD.org> writes:
> >> >> >>=20
> >> >> >> > On Fri, Oct 11, 2019 at 11:38:46AM +0200, Bengt Ahlgren wrote:
> >> >> >> >> Baptiste Daroussin <bapt@FreeBSD.org> writes:
> >> >> >> >>=20
> >> >> >> >> > On Thu, Oct 10, 2019 at 03:44:03PM +0200, Bengt Ahlgren wro=
te:
> >> >> >> >> >> Ronald Klop <ronald-lists@klop.ws> writes:
> >> >> >> >> >>=20
> >> >> >> >> >> > Van: Bengt Ahlgren <bengt.ahlgren@ri.se>
> >> >> >> >> >> > 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    =
Fetching
> >> >> >> >> >> >> packagesite.txz: 100%  410 KiB 419.9kB/s    00:01    Pr=
ocessing
> >> >> >> >> >> >> 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 s=
witched from an
> >> >> >> >> >> >> 11.2-REL to an 11.3-REL jail.  I didn't force-upgrade e=
verything after
> >> >> >> >> >> >> the switch, perhaps that's needed to make pkg recognise=
 the correct
> >> >> >> >> >> >> kernel version?
> >> >> >> >> >> >>
> >> >> >> >> >> >> Bengt
> >> >> >> >> >>=20
> >> >> >> >> >> > This message of pkg is misleading.
> >> >> >> >> >> >
> >> >> >> >> >> > It looks at /bin/sh or something like that for the versi=
on. And prints
> >> >> >> >> >> > that as the 'kernel' version. So if you did an increment=
al 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 -DN=
O_CLEAN) 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 d=
o 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=
 that 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), dynamically linked, interpreter /libexec/ld-elf.so.1, for
> >> FreeBSD 11.2 (1102509), 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 XXX
> > where XXX is the path to any file where when you run file on it says it=
 was
> > built for freebsd 11.3
>=20
> Great, thanks for investigating!  It also means that it is safe to
> answer "Y" to the pkg question and just let it carry on!
>=20
> Bengt

yes :x
it is.

Best regards,
Bapt

--634mzxdjqa4gnl4c
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEgOTj3suS2urGXVU3Y4mL3PG3PloFAl2gft4ACgkQY4mL3PG3
Plrj/g//R0DqWEwMzuOx8eCeOn7yUkRO0LLhBQP+Pr5Nt8f1Xrdkh3e3iNJwH5Bt
Gl53e+WF3Os3ef5aovY2fDHw4FIHf8dFXd2XC0fTukpPqZsG7GXyrP/kP7gTFC60
I2mFuLQUT2vNCFHyUpe7eb17NWXmqOhgKhp7jRImqKEG7pz9MDRiVFqGyfSzEAad
/iuqJpjrJOhJlC4ao6Hs/YDgnEDDdBFP35fmkIkADTFPuNwH/lFm6bQVCQxvZpxs
YI3hbYESDZQIbeWtlsm59OwO2yiy08sZXNUfXRcvu7Fm94RRAoCK8tYqbSI17pg2
V3qvXQ2ptE+Vfr+ZOVGCFM9SYOuu7WTnnc/NyIuEsfiWMa8v6CGXdQIZbQrXjYfw
HoZKlgqv6ZhysBo7ExWYwZ8KOzyiI5PbDrjaamNr+yr4jPmsbDRoxxC514GDX3fI
C/j9v45y04z+k2C8HHzy96sNoFmaA171sWnCzDLc2Wo2RsUEFROeKoEihxoV88Rz
9vjQwNssmXz3Q+Pk9ESR4DIu8ViJrwYCIg9w9Nacr59VCTmiwy1woAUUh++9A8Jr
TYqor5gT3TZLvPCYtxmnVq9q1V/Svr41Ny9vp0qnAvLkdq3m6+QgowGsscLAePnn
SjR+J/YzpBG/qn6DVZX5rocCdjAzUDtihaMJmXCtXX4OcjvFiYw=
=kRo1
-----END PGP SIGNATURE-----

--634mzxdjqa4gnl4c--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20191011130848.wwg2qc6sou55diaq>