Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Sep 2014 16:06:21 -0500
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        Baptiste Daroussin <bapt@FreeBSD.org>, Tijl Coosemans <tijl@coosemans.org>
Cc:        ports@freebsd.org
Subject:   Re: [BRAINSTORMING] simplifying maintainer's life
Message-ID:  <540782CD.3090206@FreeBSD.org>
In-Reply-To: <5407649A.80500@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>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--0qpt6daiW0AlcnhPiRuP3sbaQFGELTSTc
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

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.

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:

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.


1. No plists =3D everything in STAGEDIR is automatically added to a plist=
=2E
   (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 orphan=
s
   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.

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.


--=20
Regards,
Bryan Drewery


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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)

iQEcBAEBAgAGBQJUB4LNAAoJEDXXcbtuRpfPuroH/AplcA33QotYWBBAX/JUxYhQ
N9y9F8PVECOYD8yT2pt60V8dB9jglM8lnIhc4NMvhV9aYqwkRrtAIY39JJbWhFOo
XPbxu+lTEZMldMnDdhclJhtXrGnEHyxArV/gp7DJ12cFfiDcxG627QCy0A7ycBRb
mDgt7twVdT/DSX2TXHADQ/J5JQpi23oGStV5OgAU37ixRv+d1Ske+QcIc14tOR2r
Gbod799yUL67YoVloLzkVXZJkIeXStXsFwy5jd/88ka7AddpXkrnLXhfUbTgVvYQ
dl0qMFLoQ8cILbhAbMCugATBaQ61QyWU5mfV7gUF1dC9xUYyVH72GF1BRzkiGAs=
=+VP2
-----END PGP SIGNATURE-----

--0qpt6daiW0AlcnhPiRuP3sbaQFGELTSTc--



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