[Bug 225104] ports-mgmt/pkg: "pkg update" fails to update package database saying that kernel too old for some package

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Feb 14 17:55:15 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225104

--- Comment #19 from Nils Beyer <nbe at renzel.net> ---
(In reply to Trond.Endrestol from comment #18)

As far as I understand; the responsible file would be:

   ${OBJTOP}/host-osreldate.h

But that doesn't matter because the "osversion" tag within the ELF files is
always lagging behind.

Example: you're running osversion=1101508 and building a new world/kernel with
osversion=1101509. All of your ELF files are tagged with what is in

    /usr/include/osreldate.h

at the moment when you build world. So, after finishing building and installing
world you have all ELF files tagged with 1101508 although you're running
1101509. Furthermore, "host-osreldate.h" is never updated (here on my machine
using NO_CLEAN), even if I build the same world with the up-to-date installed
world; it just says "`host-osreldate.h' is up to date." which is not true.

Perhaps it would be better for "libpkg" to rely on what "sysctl" or
"getosreldate()" are saying.

But that's just my simple-minded user's point of view...

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-pkg mailing list