Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Dec 2016 21:07:47 +0100
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        Matthew Seaman <matthew@FreeBSD.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: HEADSUP: FLAVORS (initial version) and subpackages proposals
Message-ID:  <20161222200747.ozg72stmy2o3p5nz@ivaldir.etoilebsd.net>
In-Reply-To: <6ff9b573-1778-5b5a-5bf5-773d20b72ff5@FreeBSD.org>
References:  <20161219003143.c2qo5wn3a5kiua3m@ivaldir.etoilebsd.net> <CAO%2BPfDeimDrYaz68Msitb_xdnnWfPoWv37AE6teaHZae0nBcRA@mail.gmail.com> <6ff9b573-1778-5b5a-5bf5-773d20b72ff5@FreeBSD.org>

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

--fia7wjnx5yqnwqwn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Dec 19, 2016 at 08:45:36AM +0000, Matthew Seaman wrote:
> On 19/12/2016 07:47, David Demelier wrote:
> >> I have been working for a while on 2 long standing feature request for=
 the ports
> >> tree: flavors and subpackages.
> >>
> >> For flavors I would like to propose a simple approach first which is m=
ore like a
> >> rework of the slave ports for now:
> >>
> >> Examples available here:
> >> https://reviews.freebsd.org/D8840 (with the implementation)
> >> and
> >> https://reviews.freebsd.org/D8843
> >>
> >> Design: introduce a 3rd level in the hierarchy and make it work a bit =
like slave
> >> ports
> >>
> >> pros:
> >> - all slave ports are self hosted under the same directory: easier for
> >>   maintenance
> >> - should work with all existing tools
> >>
> > This is what I really wanted for years especially for ports like spell
> > checker. Some are in dedicated categories such as french/aspell while
> > other are in textproc/<lang>-aspell and that's a big mess.
> >=20
> > OpenBSD ports has something like textproc/aspell/<lang> and that is
> > very nice and clean. If the plan is to do the same, that is definitely
> > a major improvement.
> >=20
>=20
> I really like this idea, although it's going to add a lot of extra
> directories and very similar small Makefiles to the ports.  Every python
> port would grow flavours to support two major versions of python just
> for starters, and those additional Makefiles would be almost identical
> across the python2 flavour and across the python3 flavour.
>=20
> Is it the intention that -devel or versioned ports are treated as
> flavours as well? So for example we could end up with lang/python/27
> lang/python/33 lang/python/34 and lang/python/35 ?

I think that would be a very very bad idea to have that. There should be on=
ly
one version for python2 and one version for python3 no more

> Why can't you have both flavoured and unflavoured variants of the same
> port -- eg. devel/example as well as devel/example/foo and
> devel/example/bar ?

In theory we could I'm working on that direction now.
>=20
> How well do flavours and sub-packages combine?  www/nginx would make a
> good example there, given it now has both loadable and compiled-in
> modules plus a couple of slave ports that just build different module
> load-outs.
>=20
The should fit well.

I have an example locally with php

I have lang/php56 which is now a single port that create zillions of packag=
es
(the same granularity as we have now in ports) and a flavour lang/php56/zts
which does the same.

Best regards,
Bapt

--fia7wjnx5yqnwqwn
Content-Type: application/pgp-signature; name="signature.asc"

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

iQIzBAABCAAdFiEEgOTj3suS2urGXVU3Y4mL3PG3PloFAlhcMpMACgkQY4mL3PG3
PlqxYRAAjB6X2UaGlylsNkttffkncAKmIS6ZvuO2pzm28CH8qPe5GaMUel5uYina
pdGtyrl+tmW8X0LgqCwrbuLIzPBMfD2YtYLy1ysOYnHefRoUfU94B0mS2VnfQl2F
85QHpch0lrnP54cXqWLAFKXrNJ2AT1u+KZ91zJkIhe0vjaxAPE6A5qYlp2TLwtzI
yM2JztzzevfzQ+YayfagDSCnL+pyJITbpOs0fLcjuLBru3DXEthR+XuWrJQpWi2k
ooTdZuP3za3n384jZXZTlt82/f292lT2oDbgH+tWNqEbISEXMVWg9yLqTYpnGpsN
TsE5+PMToYUa8EtcWRQk02SkNbZFTBfp29PnlRa/MGbVQDQ0RgKaz7CC/xcYpxaT
vQ1s/YR58choCXdTE/Mtr8eluM+2QYOqYpQbfVCEqgIfG5kO/FvQQ/w5935FVmJP
72c0Gr+oB1HBTzhVLUz54EnhYIj2Z2VKYTvMsfteW/NgVIqX0YcX3dlnxJj0h1QK
dKoOneSwCHQukLxIHQXp3xm97HJK1BwbASE15ucoIW+i0JyX9ZApr/7QmAf0KKxg
+Pi1Xn3Ntl3CGxZph27bcs/NJdn9cHzSGfJwEtymBtlRDGoUcEqXMKbe1TRGhpck
Jk0Hwt4+tnBv92XTiPG6wVui5BvIDAcO8pRQxqhJIY+vgzMoso4=
=S4Ux
-----END PGP SIGNATURE-----

--fia7wjnx5yqnwqwn--



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