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. Van: Bengt Ahlgren <bengt.ahlgren at ri.se> Datum: woensdag, 9 oktober 2019 23:38 Aan: stable at 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 > Processing entries: 0% > Newer FreeBSD version for package zziplib: > To ignore this error set IGNORE_OSVERSION=yes > - package: 1103000 > - running kernel: 1102509 > Ignore the mismatch and continue? [Y/n]: > > I build my own packages with poudriere, and have just switched from an > 11.2-REL to an 11.3-REL jail. I didn't force-upgrade everything after > the switch, perhaps that's needed to make pkg recognise the correct > kernel version? > > Bengt > _______________________________________________ > freebsd-stable at freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org" > > >
Ronald Klop <ronald-lists at klop.ws> writes:> Van: Bengt Ahlgren <bengt.ahlgren at ri.se> > Datum: woensdag, 9 oktober 2019 23:38 > Aan: stable at 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 Processing >> entries: 0% >> Newer FreeBSD version for package zziplib: >> To ignore this error set IGNORE_OSVERSION=yes >> - package: 1103000 >> - running kernel: 1102509 >> Ignore the mismatch and continue? [Y/n]: >> >> I build my own packages with poudriere, and have just switched from an >> 11.2-REL to an 11.3-REL jail. I didn't force-upgrade everything after >> the switch, perhaps that's needed to make pkg recognise the correct >> kernel version? >> >> Bengt> 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.That might well be it - I've done some buildworld:s with -DNO_CLEAN lately. I'll test - thanks for the tip! Bengt
On Thu, Oct 10, 2019 at 01:25:28PM +0200, Ronald Klop wrote:> 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.I do agree the message is misleading, It should say "running world". It does not look anymore at /bin/sh because of the incremental build problem, it looks at uname which is always updated for uname -U during incremental builds. (and falls back on /bin/sh if uname does not exist). so it says the userland of the running system is not inlined with the version the packages where built for. Best regards, Bapt -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20191010/ad0544b9/attachment.sig>