Date: Tue, 13 Feb 2018 15:06:56 +0000 From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: [Bug 225104] ports-mgmt/pkg: "pkg update" fails to update package database saying that kernel too old for some package Message-ID: <bug-225104-32340-v1hUzR9S0z@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-225104-32340@https.bugs.freebsd.org/bugzilla/> References: <bug-225104-32340@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225104 --- Comment #12 from Nils Beyer <nbe@renzel.net> --- pkg verifies "osversion" using the data in the ELF ".note.tag" section of t= he file specified by the environment variable "ABI_FILE". If "ABI_FILE" is not defined it chooses "/bin/sh" as the reference file: ---------------------------------------------------------------------------= -- #objdump --section=3D.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=3D16; 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... --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-225104-32340-v1hUzR9S0z>