Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Oct 2019 11:38:46 +0200
From:      Bengt Ahlgren <bengt.ahlgren@ri.se>
To:        Baptiste Daroussin <bapt@FreeBSD.org>
Cc:        Ronald Klop <ronald-lists@klop.ws>, <stable@freebsd.org>
Subject:   Re: pkg thinks kernel is old
Message-ID:  <uh7pnj31v15.fsf@P142.sics.se>
In-Reply-To: <20191010152902.rxoxavfyraqvcjpq@ivaldir.net> (Baptiste Daroussin's message of "Thu, 10 Oct 2019 17:29:02 %2B0200")
References:  <uh7h84h4n1q.fsf@P142.sics.se> <1883214925.66.1570706728382@localhost> <uh7imowyau4.fsf@P142.sics.se> <20191010152902.rxoxavfyraqvcjpq@ivaldir.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Baptiste Daroussin <bapt@FreeBSD.org> writes:

> On Thu, Oct 10, 2019 at 03:44:03PM +0200, Bengt Ahlgren wrote:
>> Ronald Klop <ronald-lists@klop.ws> writes:
>> 
>> > 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    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!
>
> Can you provide the uname -U information (building with -DNO_CLEAN) should be
> perfectly fine.

Thanks for looking into this!

$ uname -U
1103500

Let me know if there is something else I can check before I do a full
buildworld on this system!

Bengt



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