Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 02 Sep 2012 07:01:24 +0100
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        Tim Kientzle <tim@kientzle.com>
Cc:        freebsd-current@FreeBSD.org
Subject:   Re: pkgng suggestion: renaming /usr/sbin/pkg to /usr/sbin/pkg-bootstrap
Message-ID:  <5042F634.8020104@FreeBSD.org>
In-Reply-To: <18B2DCFF-3769-46BF-9801-AD06E0A75A40@kientzle.com>
References:  <97612B57-1255-4BB3-A6D3-FC74324C6D67@FreeBSD.org> <503FF0EE.2020605@FreeBSD.org> <20120831095910.GQ64447@ithaqua.etoilebsd.net> <201208310810.50725.jhb@freebsd.org> <20120831122211.GS64447@ithaqua.etoilebsd.net> <50424956.4090804@freebsd.org> <50426493.7050302@FreeBSD.org> <18B2DCFF-3769-46BF-9801-AD06E0A75A40@kientzle.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigCE5B92E11E7B023C6A996D72
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 02/09/2012 01:04, Tim Kientzle wrote:
> Will new versions of pkgng support old packages?
>=20
> Some folks maintain their own package repositories and
> will get rather grumpy if an update to pkgng requires them
> to rebuild their entire repository.

There's a distinction between the format of pkg tarballs, and the
formats of the repository catalogue database or the locally installed
packages database.

If you're maintaining your own repository, then an update to the repo
catalogue format means you'ld just need to re-run 'pkg repo'.  You won't
need to rebuild all the existing package tarballs in your repository.
If the repository catalogue format has changed, pkg repo will detect
this, and automatically do a full repo catalogue rebuild rather than an
incremental one.

As rebuilding the repo database is something you'ld do routinely anyhow
as part of normal maintenance I don't see this as being a significant
extra burden.

Similarly, an update to the locally installed packages database schema
will be applied transparently when you first use the updated version of
pkgng.  It won't require you to reinstall any packages.

There aren't any plans to change the pkg tarball format that I know of
at the moment, but if there were, then they certainly would have to
maintain backwards compatibility -- old pkg tarballs will still work
with the newer pkgng.  Not sure about any guarantees that vice-versa
would always work, but way the YAML metadata in the pkg tarball is
handled is tolerant of new additions, so it should usually be possible
to arrange things so that an older pkgng can cope with a newer pkg tarbal=
l.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey



--------------enigCE5B92E11E7B023C6A996D72
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBC9jwACgkQ8Mjk52CukIxHIgCfYN3WLgQepc6z7B5tSnx0hUhn
SKgAn3lJ3RgyS19Vjmk8UOB+BdR+29Fq
=BuXV
-----END PGP SIGNATURE-----

--------------enigCE5B92E11E7B023C6A996D72--



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