From owner-freebsd-current@freebsd.org Wed Jan 10 18:53:38 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 6952BE6F11B for ; Wed, 10 Jan 2018 18:53:38 +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 46DB41893; Wed, 10 Jan 2018 18:53:38 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1235) id 8E9E0EC5B; Wed, 10 Jan 2018 18:53:37 +0000 (UTC) Received: by ivaldir.etoilebsd.net (Postfix, from userid 1001) id 264AE6920E; Wed, 10 Jan 2018 19:53:37 +0100 (CET) Date: Wed, 10 Jan 2018 19:53:37 +0100 From: Baptiste Daroussin To: Boris Samorodov Cc: freebsd-current@FreeBSD.org Subject: Re: [self base packages] pkg: packages for wrong OS version: FreeBSD:12:amd64 Message-ID: <20180110185336.nlwkwhxu574kybvi@ivaldir.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="dgs7megkdwczt5ov" Content-Disposition: inline In-Reply-To: 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: Wed, 10 Jan 2018 18:53:38 -0000 --dgs7megkdwczt5ov Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 10, 2018 at 09:29:04PM +0300, Boris Samorodov wrote: > 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% 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 > [...] >=20 > % uname -aKU > FreeBSD latt.bsnet 12.0-CURRENT FreeBSD 12.0-CURRENT #2 r327719: Tue Jan > 9 14:32:13 MSK 2018 > bsam@builder.bsnet:/usr/obj/usr/src/amd64.amd64/sys/PKG64X amd64 > 1200054 1200054 >=20 > % pkg -v > 1.10.4 >=20 hum pkg now has a mechanism to protect from installing too new package (aka pac= kages built on a more recent system than the system you are running on. While this is great for ports this is a bit painful for upgrading base pack= ages when building on current One has to specify pkg -o OSVERSION=3D1200055 to allow packages built on 12= 00055 to install on 1200054. I need to figure out a mechanism to make this simpler to handle to upgrade = of base system while keeping this safety belt for users. Any idea is welcome Best regards, Bapt --dgs7megkdwczt5ov Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEgOTj3suS2urGXVU3Y4mL3PG3PloFAlpWYS4ACgkQY4mL3PG3 Plojdw//ftBLcnhvksNOdhsR5vi8o0Dg8yuLwcFzSNJVBt19FpxbiHMdNsKa2zLx a3YkYoXItg57WGhZx+BE63YCQfVCdfgUThVtOXjXI7OX9ZWXsSBs/kRtaY0do+iJ dVizofUOTSTbozQ/Cl1JmRHehUP7Yfh3hEuNkatUsnh0yWqmx2J13JbU3lCFutVb P2Aplr+ia6bH0cPF3CheMyNqtPyM206lWvAcAhrX/F/r5NNexBLsAq6oYuIeAI6h JhBGdMlF8aPdkkqVJTcFoFY4yb6M4qXKapou3fphcDNYbgKU2w1GgpE14uI53pj5 KFSAevkVkOtPVqOygnXO5qrx4DaNEvXvs0UR74MUtGCDb93J6HdgoQkEuaVzy9ac L7gixTNJi1+9gwRRZLXyR8JQctuyGWDF/K1hXCDmqZ+FPCetEIxZiUZdeRHf09jC PDWNcADn4b8yTQUn1uW8isziPWz+86EDwvOkCR2P2dsBvd56zMzntRpIOnKo8Dx4 WZQVxWvnrhyhePdy746WZblYMGIle7qL0rLzVXuKSBHf/Y7+bPGXjssYt2SWXqmm E+j60PFnex+F+hJ+ZozirXO/hkbAnwXKbw5/f2OHiTZR65yst7WzCLLy9G046Gpz DbZaOCv/tVdPV7o2f/gV0sFQ2Kqp3gB7S+WXKZwkOwX0aMkxLfU= =fivW -----END PGP SIGNATURE----- --dgs7megkdwczt5ov--