From owner-freebsd-current@freebsd.org Wed Feb 21 19:54:59 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 F2E8FF24E1D for ; Wed, 21 Feb 2018 19:54:58 +0000 (UTC) (envelope-from freebsd@grem.de) Received: from mail.grem.de (outcast.grem.de [213.239.217.27]) by mx1.freebsd.org (Postfix) with SMTP id 6B0446F253 for ; Wed, 21 Feb 2018 19:54:57 +0000 (UTC) (envelope-from freebsd@grem.de) Received: (qmail 70981 invoked by uid 89); 21 Feb 2018 19:54:51 -0000 Received: from unknown (HELO ?192.168.102.151?) (mg@grem.de@195.30.121.97) by mail.grem.de with ESMTPA; 21 Feb 2018 19:54:51 -0000 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: pkg does not recognize correct kernel version From: Michael Gmelin X-Mailer: iPhone Mail (15D60) In-Reply-To: Date: Wed, 21 Feb 2018 20:54:49 +0100 Cc: =?utf-8?Q?Trond_Endrest=C3=B8l?= , Current FreeBSD Content-Transfer-Encoding: quoted-printable Message-Id: <6D85D1DD-A9EB-42A0-B0AD-CDC8230B88D5@grem.de> References: <80b54e13-7e6c-a52e-4d42-16903e16e67b@gwdg.de> <20180219210551.GE94212@kib.kiev.ua> To: Andreas Nilsson 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: Wed, 21 Feb 2018 19:54:59 -0000 Still breaks automation, doesn=E2=80=99t it? > On 21. Feb 2018, at 20:49, Andreas Nilsson wrote: >=20 > As of pkg-1.10.5 it will ask if you wish to proceed which makes this much > easier to deal with. >=20 > Best regards > Andreas >=20 > On Feb 21, 2018 20:45, "Trond Endrest=C3=B8l" < > Trond.Endrestol@fagskolen.gjovik.no> wrote: >=20 >>> On Wed, 21 Feb 2018 20:01+0100, Ronald Klop wrote: >>>=20 >>> On Tue, 20 Feb 2018 11:30:52 +0100, Trond Endrest=C3=B8l >>> wrote: >>>=20 >>>>> On Mon, 19 Feb 2018 23:38+0100, Ronald Klop wrote: >>>>>=20 >>>>> Does this mean I always have to do a *clean* buildworld after every >>>>> version >>>>> bump? This takes ages. >>>>=20 >>>> Yes, I've come to the conclusion that whenever __FreeBSD_version in >>>> sys/sys/param.h is incremented, then it's time to blow away /usr/obj, >>>> recreate everything to ensure the correct value of osversion in the >>>> .note.tag section of each executable, and reinstall base prior to >>>> updating localbase. See PR 225104 for more details, >>>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225104. >>>>=20 >>>=20 >>> pkg: Newer FreeBSD version for package gnome-menus: >>> - package: 1200058 >>> - running kernel: 1200056 >>>=20 >>> So it says "running kernel", but it actually checked "version of >>> FreeBSD_version while building /bin/sh" or something like that. >>> This sounds over-engineered and (more important) confusing. >>=20 >> I tried the simply approach of running "make clean; make build" in >> /usr/src/bin/sh, hoping it would generate binaries with the correct >> osversion in the .note.tag section. Boy, I couldn't be more wrong. >> Hence my (possibly wrongful) conclusion of wiping /usr/obj whenever >> osversion is increased. I'm probably missing a simpler step. >>=20 >> -- >> Trond. >> _______________________________________________ >> 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= " >>=20 > _______________________________________________ > 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"=