From owner-freebsd-current@freebsd.org Mon Feb 19 21:06:03 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 42AEEF24503 for ; Mon, 19 Feb 2018 21:06:03 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C1DD96B634 for ; Mon, 19 Feb 2018 21:06:02 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id w1JL5p69072812 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 19 Feb 2018 23:05:55 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua w1JL5p69072812 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id w1JL5pHX072808; Mon, 19 Feb 2018 23:05:51 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 19 Feb 2018 23:05:51 +0200 From: Konstantin Belousov To: Rainer Hurling Cc: Ronald Klop , freebsd-current@freebsd.org Subject: Re: pkg does not recognize correct kernel version Message-ID: <20180219210551.GE94212@kib.kiev.ua> References: <80b54e13-7e6c-a52e-4d42-16903e16e67b@gwdg.de> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <80b54e13-7e6c-a52e-4d42-16903e16e67b@gwdg.de> User-Agent: Mutt/1.9.3 (2018-01-21) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Feb 2018 21:06:03 -0000 On Mon, Feb 19, 2018 at 09:39:37PM +0100, Rainer Hurling wrote: > Am 19.02.2018 um 21:24 schrieb Ronald Klop: > > On Mon, 19 Feb 2018 21:10:48 +0100, Rainer Hurling wrote: > > > >> Hi Ronald, > >> > >> Am 19.02.2018 um 20:27 schrieb Ronald Klop: > >>> I just did this. > >>> > >>> root@sjakie ~]# pkg upgrade > >>> Updating FreeBSD repository catalogue... > >>> Fetching meta.txz: 100%ššš 944 Bšš 0.9kB/sššš 00:01 > >>> Fetching packagesite.txz: 100%ššš 6 MiBšš 6.0MB/sššš 00:01 > >>> Processing entries:šš 0% > >>> pkg: Newer FreeBSD version for package gnome-menus: > >>> - package: 1200058 > >>> - running kernel: 1200056 > >>> pkg: repository FreeBSD contains packages for wrong OS version: > >>> FreeBSD:12:amd64 > >>> Processing entries: 100% > >>> Unable to update repository FreeBSD > >>> Error updating repositories! > >>> > >>> [root@sjakie ~]# uname -UK > >>> 1200058 1200058 > >>> > >>> [root@sjakie ~]# uname -a > >>> FreeBSD sjakie 12.0-CURRENT FreeBSD 12.0-CURRENT #4 r329516M: Sun Feb 18 > >>> 12:37:36 CET 2018šš > >>> ronald@sjakie:/data/ronald/obj-freebsd-current/data/ronald/freebsd-current/amd64.amd64/sys/GENERIC-NODEBUGamd64 > >>> > >>> > >>> > >>> So uname gives a different version than pkg detects. > >>> > >>> What is happening? pkg update -f gives the same result. -o > >>> OSVERSION=1200058 helps, but does not feel like the right solution. > >>> > >>> Regards, > >>> Ronald. > >> > >> Please try > >> > >> #sysctl kern.osreldate > >> kern.osreldate: 1200058 > >> > >> HTH, > >> Rainer Hurling > > > > > > [root@sjakie ~]# sysctl kern.osreldate > > kern.osreldate: 1200058 > > > > Regards, > > Ronald. > > On my kernel patchlevel 1200058 (r329446) I get: > > #pkg update -f > Updating FreeBSD repository catalogue... > Fetching meta.txz: 100% 944 B 0.9kB/s 00:01 > Fetching packagesite.txz: 100% 6 MiB 1.2MB/s 00:05 > Processing entries: 100% > FreeBSD repository update completed. 28645 packages processed. > All repositories are up to date. > > > Perhaps more a local problem :( Look at the man page. pkg reads version from the /bin/sh ELF FreeBSD version note: orion% file /bin/ls /bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 11.1 (1101506), FreeBSD-style, stripped Update world past the __FreeBSD_version which is reported for the repository.