Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jan 2018 19:53:37 +0100
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        Boris Samorodov <bsam@passap.ru>
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>
In-Reply-To: <da61ca31-3e85-99b6-5894-03796779c7ca@passap.ru>
References:  <da61ca31-3e85-99b6-5894-03796779c7ca@passap.ru>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180110185336.nlwkwhxu574kybvi>