From owner-freebsd-ports@FreeBSD.ORG Wed Sep 3 21:07:12 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6DE3ED2C for ; Wed, 3 Sep 2014 21:07:12 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4CC621595 for ; Wed, 3 Sep 2014 21:07:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.9/8.14.9) with ESMTP id s83L7CwU080169 for ; Wed, 3 Sep 2014 21:07:12 GMT (envelope-from bdrewery@freefall.freebsd.org) Received: (from bdrewery@localhost) by freefall.freebsd.org (8.14.9/8.14.9/Submit) id s83L7C7r080167 for ports@freebsd.org; Wed, 3 Sep 2014 21:07:12 GMT (envelope-from bdrewery) Received: (qmail 14394 invoked from network); 3 Sep 2014 16:07:07 -0500 Received: from unknown (HELO ?10.10.0.24?) (freebsd@shatow.net@10.10.0.24) by sweb.xzibition.com with ESMTPA; 3 Sep 2014 16:07:07 -0500 Message-ID: <540782CD.3090206@FreeBSD.org> Date: Wed, 03 Sep 2014 16:06:21 -0500 From: Bryan Drewery Organization: FreeBSD User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 MIME-Version: 1.0 To: Baptiste Daroussin , Tijl Coosemans Subject: Re: [BRAINSTORMING] simplifying maintainer's life 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> In-Reply-To: <5407649A.80500@FreeBSD.org> OpenPGP: id=6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0qpt6daiW0AlcnhPiRuP3sbaQFGELTSTc" Cc: ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2014 21:07:12 -0000 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--