From owner-freebsd-current@freebsd.org Tue Feb 20 05:07:16 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 5A370F01FF4 for ; Tue, 20 Feb 2018 05:07:16 +0000 (UTC) (envelope-from andrnils@gmail.com) Received: from mail-lf0-x231.google.com (mail-lf0-x231.google.com [IPv6:2a00:1450:4010:c07::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A89E68235F for ; Tue, 20 Feb 2018 05:07:15 +0000 (UTC) (envelope-from andrnils@gmail.com) Received: by mail-lf0-x231.google.com with SMTP id v9so2385426lfa.11 for ; Mon, 19 Feb 2018 21:07:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=uiIzA/dYkYBFRxxXFMFgfbwos0AIR+J+4XJZdGbcrCQ=; b=VMO5OZ+qdzXVfWCHlc2hLpKqJ04b+xPApezcuWusMa5HAoTrrq1h1syxEB4FynvWWc aFVRPDNs5jzsEMPznEB0q4YMacqrLKCc5yMGWaF2TdcTxluCkr+B/7PM4r4LRKGNrlJx V+hRdFPjPZYm0RwvGMQGNBxtxEk6wkcNTB5zJCbq8+QBB0WcsVY59b+H5JC8qcHqT/p6 G5+PafoYwJhaNiuRz9jMagwXZ7pjgk0H1WdKVM0UlK299Sf+gGWhr6/PXuJz9Sk/07Iw 4a40TEismp/qVozbPNX8yndmcXamI0A5DSCFX+bTJDShegrnn9g95Ukbq2GK9oxATtN2 QWEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=uiIzA/dYkYBFRxxXFMFgfbwos0AIR+J+4XJZdGbcrCQ=; b=Vtoc+w7Ta17bECEdYExEqXAROk4WsnICHY+S+bj0t65VOuc6jZtmWhZ+zmFctPTf3X sJEjvknfGgGIYsT2PVDrCsX4lq9EOiaqVd0yvCq3ERUJn8ySDcUpHPxKg3sc/jz4saBe cL0RHKsQdcXBEKV7EBwoAgvY+Z5QzUt2iszL2Yly1b2NktXE2SKchjm0Wm5OZ2/bMEiD S1Nni19ZAVPsO1Xxz4NHhilf/hwmoNtWgDtcjmbwzG3wIaXjP6oAmhlNqamVWr05Y/Wn 8bWeMIBYEM+iZX0ORfJmu/HvOWEz1eDY5+Y3A8+Rv5UirAFXHZWCcGsfl4XzKZ64dnFb lVig== X-Gm-Message-State: APf1xPD2uwQvMPLirJId4iF+ENWn28hfk7TEhiCTjdBo5Za9H2f8+EXH zp8BVCa2u7qUiPzif2gv01VzjGWxBtbMN0CiGG0= X-Google-Smtp-Source: AH8x2270oYAjbyp7KwdXiK7ev0yTvL3VjGJ4ZXhC221wxRVFR7nlHbyeu2CvyoJYVXWEXSILzyjAz+1gixt2eC1Vf18= X-Received: by 10.25.199.151 with SMTP id x145mr10544155lff.33.1519103233649; Mon, 19 Feb 2018 21:07:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.46.3.10 with HTTP; Mon, 19 Feb 2018 21:07:12 -0800 (PST) Received: by 10.46.3.10 with HTTP; Mon, 19 Feb 2018 21:07:12 -0800 (PST) In-Reply-To: References: <80b54e13-7e6c-a52e-4d42-16903e16e67b@gwdg.de> <20180219210551.GE94212@kib.kiev.ua> From: Andreas Nilsson Date: Tue, 20 Feb 2018 06:07:12 +0100 Message-ID: Subject: Re: pkg does not recognize correct kernel version To: Ronald Klop Cc: Rainer Hurling , Konstantin Belousov , freebsd-current@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 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: Tue, 20 Feb 2018 05:07:16 -0000 I think this was worked around in pkg 1.10.5. As a temporary workaround do pkg -o OSVERSION=1200058 update -f pkg upgrade Best regards Andreas On Feb 19, 2018 23:54, "Ronald Klop" wrote: On Mon, 19 Feb 2018 22:05:51 +0100, Konstantin Belousov wrote: 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 > Which man page? I can't find it in pkg help update or pkg help upgrade or man pkg. 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. > Does this mean I always have to do a *clean* buildworld after every version bump? This takes ages. Regards, Ronald. _______________________________________________ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"