From owner-freebsd-current@freebsd.org Thu Jan 11 16:49:36 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 A6BBDE6E5ED for ; Thu, 11 Jan 2018 16:49:36 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6728079B02; Thu, 11 Jan 2018 16:49:36 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1235) id B234B5A0A; Thu, 11 Jan 2018 16:49:35 +0000 (UTC) Received: by ivaldir.etoilebsd.net (Postfix, from userid 1001) id 5EC95698D3; Thu, 11 Jan 2018 17:49:35 +0100 (CET) Date: Thu, 11 Jan 2018 17:49:35 +0100 From: Baptiste Daroussin To: Ian Lepore Cc: Boris Samorodov , freebsd-current@FreeBSD.org Subject: Re: [self base packages] pkg: packages for wrong OS version: FreeBSD:12:amd64 Message-ID: <20180111164934.eqopinjs6tu3i3jn@ivaldir.net> References: <20180110185336.nlwkwhxu574kybvi@ivaldir.net> <1515686254.44630.74.camel@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="zglmaeiaz3gz6xim" Content-Disposition: inline In-Reply-To: <1515686254.44630.74.camel@freebsd.org> User-Agent: NeoMutt/20171215 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: Thu, 11 Jan 2018 16:49:36 -0000 --zglmaeiaz3gz6xim Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 11, 2018 at 08:57:34AM -0700, Ian Lepore wrote: > On Wed, 2018-01-10 at 19:53 +0100, Baptiste Daroussin wrote: > > On Wed, Jan 10, 2018 at 09:29:04PM +0300, Boris Samorodov wrote: > > >=20 > > > Hi All, > > >=20 > > > 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%=A0=A0=A0=A0268 B=A0=A0=A00.3kB/s=A0=A0=A0=A00= 0:01 > > > Fetching packagesite.txz: 100%=A0=A0=A029 KiB=A0=A029.4kB/s=A0=A0=A0= =A000:01 > > > Processing entries:=A0=A0=A00% > > > 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 > > > [...] > > >=20 > > > % uname -aKU > > > FreeBSD latt.bsnet 12.0-CURRENT FreeBSD 12.0-CURRENT #2 r327719: Tue = Jan > > > =A09 14:32:13 MSK 2018 > > > bsam@builder.bsnet:/usr/obj/usr/src/amd64.amd64/sys/PKG64X=A0=A0amd64 > > > 1200054 1200054 > > >=20 > > > % pkg -v > > > 1.10.4 > > >=20 > > 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. > >=20 > > 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. > >=20 > > Any idea is welcome > >=20 > > Best regards, > > Bapt >=20 > Is this new mechanism disabled if installing into something other than > the live system, such as when using -c or -r (and maybe -j)? >=20 The new mechanism grab the information from the files in the userland, mean= ing, -c, -r and -j will discover the OSVERSION of the target binaries Bapt --zglmaeiaz3gz6xim Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEgOTj3suS2urGXVU3Y4mL3PG3PloFAlpXlZwACgkQY4mL3PG3 Plr6TA//f0FrObHDOUTB87pM74sKhlpxj3/HO0a/PCVPRQ3h2qouoFOYK6evcAf5 mHu2LxvNzYmVxV2yRJUr4ottl2QfvazuOdNoSyG2lxE5CAxF9+eVOEuKgQZQuzFG uMMB+rtfxE2FxbREwGgamWbrQUnnhJwaygOmQNRv4G479xwBQ/JGdgaSheARwI1h G9XC2DbImbJ16kFkkejnrCqFR2JNfGh1rE0tTA7XfY+B8S6hnHCNhZ6n+BA9JOvb TglpuFSK70dWvhrQGmRb9FUqCoLvNIvVw0pxDrBD2WxRv7Qt4TKmp5Um0+A7ezVh f35GRWpaktpE23MSXPBvz1tJSqF8VWsUR7ZGuc7qgqKlYD9ngLv/9GP7vWmeoGIH pKrCRfM/SvMFiaBQ6vPktSTa+vflA9zRKgj9aG84hqJC9ld3kf4Ry9ir1cWSKYC6 izP9qg5xoG5XhZ7stQATarQZK+IlqMr3731kfMac5/E/pvIAu4hLbLYD960MVtbA t7+L2Ap72PStC1jmia8YMkVmY8rsjVovWvRlAiFt/9xojzIE3RYq4S6j4UoGu8mO uaJ5tlT+sA9l4ixF6JEwoy1+SL/NhyrVm///4iyF0u/YeKgBlR2Wi6uzhCiOpNBI SqYj/t6pzaefWkj/3E8PAzH9wlduGHnSGehQVBlV6Rkk3FGrpgk= =I/Qj -----END PGP SIGNATURE----- --zglmaeiaz3gz6xim--