Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Mar 2016 21:51:47 +0000
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        Glen Barber <gjb@FreeBSD.org>
Cc:        freebsd-pkgbase@freebsd.org
Subject:   Re: [CFT] packaging the base system with pkg(8)
Message-ID:  <56DCA673.4080301@FreeBSD.org>
In-Reply-To: <20160306205411.GB77554@FreeBSD.org>
References:  <20160302235429.GD75641@FreeBSD.org> <22232.56734.691784.696540@khavrinen.csail.mit.edu> <20160304010949.GC48568@FreeBSD.org> <56D94384.5030901@FreeBSD.org> <20160306205411.GB77554@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--6KLk0Ewnv6RjNExVW67GqgTB0AGIE5BAh
Content-Type: multipart/mixed; boundary="oqxaNv9AHCq2TcjDDTnvmjfII6HUsoKgA"
From: Matthew Seaman <matthew@FreeBSD.org>
To: Glen Barber <gjb@FreeBSD.org>
Cc: freebsd-pkgbase@freebsd.org
Message-ID: <56DCA673.4080301@FreeBSD.org>
Subject: Re: [CFT] packaging the base system with pkg(8)
References: <20160302235429.GD75641@FreeBSD.org>
 <22232.56734.691784.696540@khavrinen.csail.mit.edu>
 <20160304010949.GC48568@FreeBSD.org> <56D94384.5030901@FreeBSD.org>
 <20160306205411.GB77554@FreeBSD.org>
In-Reply-To: <20160306205411.GB77554@FreeBSD.org>

--oqxaNv9AHCq2TcjDDTnvmjfII6HUsoKgA
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

On 06/03/2016 20:54, Glen Barber wrote:
> Meta packages are still being thought out, and not yet implemented.  Th=
e
> problem I ran into last time I tried creating a meta package including
> the minimal set of packages required (FreeBSD-runtime, FreeBSD-kernel
> and FreeBSD-clibs) was that I could not see a way to update one of them=

> without adversely affecting behavior.  If I recall correctly, updating
> the PKG_VERSION for FreeBSD-runtime (to see what would happen when
> issuing an EN or SA) propagated "what was to be upgraded" in a way I di=
d
> not expect, so all packages part of the meta package were updated.  Tha=
t
> is, if I recall correctly.

That sounds like the baked-in version problem -- which is a holdover
from the way the old pkg_tools worked: when you create a package it
requires exactly the specific version of each of the dependencies it was
built against.  Or, more colourfully, exact version dependencies are
"baked into" each package.

So when you build a complete new set of packages and meta-packages it
would result in a lot of unnecessary updating.

I see two solutions:

1) When updating the base package repo by 'make packages' only those
packages affected by actual changes to their source code are rebuilt.
Or, at least, only those affected packages get a version number bump.

2) We need packages to be able to express dependencies against a range
of different versions, which should give sufficient flexibility to be
able to update one package a meta package depends on, without needing to
touch the rest, or the meta package itself.

ie. when you install 11.0-RELEASE, the meta packages can depend on real
packages of versions >=3D11.0.0,<12.0.0  so they'll be satisfied by
anything from the 11.X-RELEASE-pY series.[*]

	Cheers,

	Matthew

[*] Maybe we could switch to calling release versions 11.X.Y and save
some typing...


--oqxaNv9AHCq2TcjDDTnvmjfII6HUsoKgA--

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

-----BEGIN PGP SIGNATURE-----

iQJ8BAEBCgBmBQJW3KZ5XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC
QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATUfEP/0tYpljs9nGATSwwFLuAFEX9
/TPxiEsZXvmv4D8s02mmwLxp950VTUM+qWJtmyekCTuz22YVGdciAdPkA8ZEqV9g
4RmDF1SPOTQnRzkTdeBmVVR+gQyOZrvJ2m9S9M66bkTZrCki0fKWtIzC9OuqUOWW
Fjm9VrGfqt4undTJbZfBjX0EJYMbgMQ90ZbAKT6XSesuO7ThzDJ38gaihln9TipW
7kMO30XLb5++6NYLf6AUGY0JrJehcBbWR4ZKtBujKWwa/hg7efuW9ohfORppjeF7
0Gabu3uZyI7nw6BBNiEYkFHwYQV2+oyVitqnEiupeOKx+2tLTAfjmYtf44QYi6GM
NEXEtdw/yGEA58uAzByZ2ZUbYewifX00F5hSV4J7FC7ghVod1fHQElMPZAiTqdjS
j1M7guyFryLkWVKVPeHTXKADyBlyuKsXVaPg1216LyDS3KmJJs1UprcweRDihhdt
pMAAtXk7xkfLABP7qhCn7bfHEtdCSC9x2AKUXsd6S5dz12f1TehcyC7jb3Zrg7V6
CADLc2lQ1kiXoK3gY/d2IALZgyyOa7/FXpmHi1Ma8AN7cofFugc5QJIVQ4VWTxJp
AgivNuI3TjrhZ12R9u+T4Ld4yv6I79cJJXHPf3H+0mdxPbFnHH5Elci0CCUS4zU/
EZ7GAu9aDOPykmdD5vmn
=F+WO
-----END PGP SIGNATURE-----

--6KLk0Ewnv6RjNExVW67GqgTB0AGIE5BAh--



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