Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Sep 2014 12:37:33 +0200
From:      Tijl Coosemans <tijl@coosemans.org>
To:        Bryan Drewery <bdrewery@FreeBSD.org>
Cc:        ports@freebsd.org, Baptiste Daroussin <bapt@FreeBSD.org>
Subject:   Re: [BRAINSTORMING] simplifying maintainer's life
Message-ID:  <20140904123733.4e9d2796@kalimero.tijl.coosemans.org>
In-Reply-To: <540782CD.3090206@FreeBSD.org>
References:  <20140903082538.GE63085@ivaldir.etoilebsd.net> <20140903145614.158f8e89@kalimero.tijl.coosemans.org> <20140903135029.GK63085@ivaldir.etoilebsd.net> <20140903165622.3bff54e0@kalimero.tijl.coosemans.org> <20140903150018.GL63085@ivaldir.etoilebsd.net> <5407649A.80500@FreeBSD.org> <540782CD.3090206@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/by8ulPmGcMU=ZZ+EbGnupx1
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

On Wed, 03 Sep 2014 16:06:21 -0500 Bryan Drewery <bdrewery@FreeBSD.org> wro=
te:
> On 9/3/2014 1:57 PM, Bryan Drewery wrote:
> > What might be interesting is an autoplist with glob-like syntax to
> > support sub-packages. So a main package could be everything except
> > .debug, or .h, or man/*. Or each of those prefixed with a keyword
> > specifying with package they are in.
>=20
> It may be tricky to handle the current ignore mechanism of @comment. I
> laid out ideas for this before. Here is my previous proposal which had
> separate plist files for sub-packages. The general idea could be adapted
> to other ways of specifying patterns/lists for sub-packages though:
>=20
> All plists are packaged and then anything leftover is packaged into
> the main package assuming there is not a plist for it specifying
> what to install.  Orphans would only be things not in any plist.
> So if you specify a main plist then you are forbidden to have
> orphans, not specifying a plist would have no orphans as everything
> is installed from stagedir.
>=20
>=20
> 1. No plists =3D everything in STAGEDIR is automatically added to a plist.
>    (I suppose this ignores all the cruft in Mk/* that adds to plists)
> 2. pkg-plist =3D "main" plist, If you only have this file then any orphans
>    are fatal.
> 3. pkg-plist, pkg-plist.docs, main package and doc package, any orphan
>    not in one of these plists is fatal. "doc" is arbitrary here, you can
>    have N plists.
> 4. pkg-plist.ignore contains files not to install and not to consider
>    orphans. One could argue that "ignore" here really should be a
>    subpackage of the ignored files. I.e., why are they ignored? Should
>    it really just be another subpackage? But "ignore" can be a special
>    case to really ignore and not package.
>=20
> This scheme gives us autoplist, a way to ignore orphans you know don't
> matter, and properly alerts when new files are added in new releases.

An important type of files to list explicitly are libraries, because
you need to know when a library version changes so you can bump
PORTREVISION on dependent ports.  I don't think it's safe to rely on
the pkg repo to give you that information because there may not always
be a previous package (for whatever reason).

In your proposal either you have autoplist or you list everything.
This means that if you have to list some files like libraries you
cannot have autoplist.  With glob patterns you can have at least a
partial autoplist.  It is more gradual.

This issue would go away of course if we had a 'make dependents' target
that rebuilds installed packages that depend on a given port.  If this
target ran automatically when a library version change was detected there
would no longer be a need to bump PORTREVISION.  However, this makes the
time it takes to update a port (or how many other ports it triggers)
unpredictable.

For subpackages I would suggest something like:

these/files/go
into/main/package
@subpackage S1
these/will/go
into/S1/package
@subpackage S2
this/goes/into/S2
@subpackage
this/goes/back/into/main

It may be convenient to also have a shorthand like the new
(owner,group,mode)

--Sig_/by8ulPmGcMU=ZZ+EbGnupx1
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iF4EAREKAAYFAlQIQPIACgkQfoCS2CCgtiuMagD/WeeZreKGz0w1LnF3ehYm607E
PmcKq8IEbTlFer6DbGYA/iFLcjlQRVLriIMA200eOsG/JNOR7VhuXXjhcq1cMP0K
=PMBM
-----END PGP SIGNATURE-----

--Sig_/by8ulPmGcMU=ZZ+EbGnupx1--



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