Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jan 2018 22:12:17 +0300
From:      Boris Samorodov <bsam@passap.ru>
To:        Baptiste Daroussin <bapt@FreeBSD.org>
Cc:        freebsd-current@FreeBSD.org
Subject:   Re: [self base packages] pkg: packages for wrong OS version: FreeBSD:12:amd64
Message-ID:  <143e913d-c0ac-aa72-50e4-5bc48e4d9a6f@passap.ru>
In-Reply-To: <20180110185336.nlwkwhxu574kybvi@ivaldir.net>
References:  <da61ca31-3e85-99b6-5894-03796779c7ca@passap.ru> <20180110185336.nlwkwhxu574kybvi@ivaldir.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--IpJlyQBEc00ADqPJglIeFTKxGgDOtTMRK
Content-Type: multipart/mixed; boundary="8cP8HfgROrzTu4sIjYUsuzKJs8XGrNSMz";
 protected-headers="v1"
From: Boris Samorodov <bsam@passap.ru>
To: Baptiste Daroussin <bapt@FreeBSD.org>
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: <da61ca31-3e85-99b6-5894-03796779c7ca@passap.ru>
 <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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?143e913d-c0ac-aa72-50e4-5bc48e4d9a6f>