[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
Tue Feb 13 15:06:58 UTC 2018


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

--- Comment #12 from Nils Beyer <nbe at renzel.net> ---
pkg verifies "osversion" using the data in the ELF ".note.tag" section of the
file specified by the environment variable "ABI_FILE". If "ABI_FILE" is not
defined it chooses "/bin/sh" as the reference file:
-----------------------------------------------------------------------------
#objdump --section=.note.tag -s /bin/sh

/bin/sh:     file format elf64-x86-64-freebsd

Contents of section .note.tag:
 400218 08000000 04000000 01000000 46726565  ............Free
 400228 42534400 b84f1200 08000000 04000000  BSD..O..........
 400238 02000000 46726565 42534400 00000000  ....FreeBSD.....

#echo "ibase=16; 00124FB8" | bc
1200056

#uname -KU
1200058 1200058
-----------------------------------------------------------------------------

Because I'm doing incremental builds (using -DNO_CLEAN) of world/kernel, the
version information in my "/bin/sh" and all other binaries is not increased
because "host-osreldate.h" in ${OBJTOP} is not increased for some reason.
"getosreldate()" returns the correct value though...

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


More information about the freebsd-pkg mailing list