From owner-freebsd-current@freebsd.org Wed Jan 10 19:12:34 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4419FE7030A for ; Wed, 10 Jan 2018 19:12:34 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from forward102p.mail.yandex.net (forward102p.mail.yandex.net [77.88.28.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B60E229E2; Wed, 10 Jan 2018 19:12:33 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from mxback8g.mail.yandex.net (mxback8g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:169]) by forward102p.mail.yandex.net (Yandex) with ESMTP id E91904304101; Wed, 10 Jan 2018 22:12:24 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback8g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id VwR55WDMhk-COtaWFl6; Wed, 10 Jan 2018 22:12:24 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=passap.ru; s=mail; t=1515611544; bh=2hevIdAeDZxvZ2P9khYb5zCVpWEgeEANDLHx3RWZpa0=; h=Subject:To:Cc:References:From:Message-ID:Date:In-Reply-To; b=Cf2vOnkHzziPzdBgUY1K+v53MdE4d2wUF0LTbbEFw+FxJ/jQ5oEETl4YFANjHYimp PLg0TCHkIcDcoZBkdHuU0QneepFeYxsFp7dXJ5Xq/kgZeUgo1FIBSl2USG5GPg9Xsf HmCgRLtA82pMu4k2o+8RwXaNFq/Gcr6CevNG6u+8= Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id wIUrBTVrRK-COkCp9Pr; Wed, 10 Jan 2018 22:12:24 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=passap.ru; s=mail; t=1515611544; bh=2hevIdAeDZxvZ2P9khYb5zCVpWEgeEANDLHx3RWZpa0=; h=Subject:To:Cc:References:From:Message-ID:Date:In-Reply-To; b=Cf2vOnkHzziPzdBgUY1K+v53MdE4d2wUF0LTbbEFw+FxJ/jQ5oEETl4YFANjHYimp PLg0TCHkIcDcoZBkdHuU0QneepFeYxsFp7dXJ5Xq/kgZeUgo1FIBSl2USG5GPg9Xsf HmCgRLtA82pMu4k2o+8RwXaNFq/Gcr6CevNG6u+8= Authentication-Results: smtp2o.mail.yandex.net; dkim=pass header.i=@passap.ru Subject: Re: [self base packages] pkg: packages for wrong OS version: FreeBSD:12:amd64 To: Baptiste Daroussin Cc: freebsd-current@FreeBSD.org References: <20180110185336.nlwkwhxu574kybvi@ivaldir.net> From: Boris Samorodov Message-ID: <143e913d-c0ac-aa72-50e4-5bc48e4d9a6f@passap.ru> Date: Wed, 10 Jan 2018 22:12:17 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180110185336.nlwkwhxu574kybvi@ivaldir.net> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="IpJlyQBEc00ADqPJglIeFTKxGgDOtTMRK" 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, 10 Jan 2018 19:12:34 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --IpJlyQBEc00ADqPJglIeFTKxGgDOtTMRK Content-Type: multipart/mixed; boundary="8cP8HfgROrzTu4sIjYUsuzKJs8XGrNSMz"; protected-headers="v1" From: Boris Samorodov To: Baptiste Daroussin Cc: freebsd-current@FreeBSD.org Message-ID: <143e913d-c0ac-aa72-50e4-5bc48e4d9a6f@passap.ru> Subject: Re: [self base packages] pkg: packages for wrong OS version: FreeBSD:12:amd64 References: <20180110185336.nlwkwhxu574kybvi@ivaldir.net> In-Reply-To: <20180110185336.nlwkwhxu574kybvi@ivaldir.net> --8cP8HfgROrzTu4sIjYUsuzKJs8XGrNSMz Content-Type: text/plain; charset=UTF-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable 10.01.2018 21:53, Baptiste Daroussin =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > On Wed, Jan 10, 2018 at 09:29:04PM +0300, Boris Samorodov wrote: >> Hi All, >> >> I use self built base packages. Seems that I have a problem with pkg. >> Today I've got this: >> =3D=3D=3D >> % sudo pkg update -f >> Updating FreeBSD-base repository catalogue... >> Fetching meta.txz: 100% 268 B 0.3kB/s 00:01 >> Fetching packagesite.txz: 100% 29 KiB 29.4kB/s 00:01 >> Processing entries: 0% >> pkg: Newer FreeBSD version for package FreeBSD-libulog: >> - package: 1200055 >> - running kernel: 1200054 >> pkg: repository FreeBSD-base contains packages for wrong OS version: >> FreeBSD:12:amd64 >> Processing entries: 100% >> Unable to update repository FreeBSD-base >> [...] >> >> % uname -aKU >> FreeBSD latt.bsnet 12.0-CURRENT FreeBSD 12.0-CURRENT #2 r327719: Tue J= an >> 9 14:32:13 MSK 2018 >> bsam@builder.bsnet:/usr/obj/usr/src/amd64.amd64/sys/PKG64X amd64 >> 1200054 1200054 >> >> % pkg -v >> 1.10.4 >> > hum >=20 > pkg now has a mechanism to protect from installing too new package (aka= packages > built on a more recent system than the system you are running on. >=20 > While this is great for ports this is a bit painful for upgrading base = packages > when building on current >=20 > One has to specify pkg -o OSVERSION=3D1200055 to allow packages built o= n 1200055 > to install on 1200054. Baptiste, thank you for the quick response! The problem has been solved by: % sudo pkg -o OSVERSION=3D1200055 update -r FreeBSD-base > I need to figure out a mechanism to make this simpler to handle to upgr= ade of > base system while keeping this safety belt for users. Well, as for me, the above mentioned workaround is just fine. > Any idea is welcome >=20 > Best regards, > Bapt >=20 --=20 WBR, bsam --8cP8HfgROrzTu4sIjYUsuzKJs8XGrNSMz-- --IpJlyQBEc00ADqPJglIeFTKxGgDOtTMRK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEiEg2cjwbwCvqC1Z0lg4gsDo/bSgFAlpWZZcACgkQlg4gsDo/ bSifjQ/7BqbHUJni/arCWBRRNaFZzMzV5FPH1uVes+S5kR0N2o4m17fe8aEdaplj hmMjiLvADyWONrL7pDiVc8A46FAoB5zSV2yP7kqISsWl7VfuLWW4jPTfu6h1SFKt eN4U5Neh1W+FGrunwjFm028S1PG9rwW9p7+XXglrnNU7oj/XkkgNU5kXsUXjvcg9 wFdogSp83saQ8qsTDp978+2DztzQk/dyawkapLDt6F3cc3qPs6izfFyHC9IHMaxe NLJeD1nW2hBChoQschACUG17amX3faWzPpN+PCf1PhOMdRCykAkY7xuia1ZjgDzU N6YkM6j9DKnu5TfL9o/q48h1KOwilhtr+0xI8SwVzhNxxoHXZbacg+d97Ts85f/V ZdxiZf2MCD6UR6IB7T+2koT0lgeGr3SeMRoAD2SPadrksaSnJM8O/fQSA/F6X+3C 5cHOGvJlt6YKVoG+FpjQ6gGIct2nQsU679sPziomDfIqlGyiGr3GnopAoO6fDufd +ILt/jISZgnXnrr9FRiuGJyWONnxiz5q/UdNiw34eHscbNyk2kh5zERZ7a8ewnKn //tBLIRubm6YbzIaFfLzRJmUb8u5IZOywC/F8fpMlLB3OjkHiaEpP2/rByiKje67 QZmbXqkdgsJNIKxfNdXkAd9f+fNYzgvdzRaBQiWUxu5ZHsuwuq8= =mMff -----END PGP SIGNATURE----- --IpJlyQBEc00ADqPJglIeFTKxGgDOtTMRK--