[BRAINSTORMING] simplifying maintainer's life

Tijl Coosemans tijl at coosemans.org
Wed Sep 3 17:21:17 UTC 2014


On Wed, 3 Sep 2014 18:09:10 +0200 Baptiste Daroussin <bapt at FreeBSD.org> wrote:
> On Wed, Sep 03, 2014 at 04:56:22PM +0200, Tijl Coosemans wrote:
>> On Wed, 3 Sep 2014 15:50:30 +0200 Baptiste Daroussin <bapt at FreeBSD.org> wrote:
>>> On Wed, Sep 03, 2014 at 02:56:14PM +0200, Tijl Coosemans wrote:
>>>> On Wed, 3 Sep 2014 10:25:39 +0200 Baptiste Daroussin <bapt at FreeBSD.org> wrote:
>>>>> On of the most borring thing IMHO in the plist maintainance is all the
>>>>> directories.
>>>> 
>>>> Another idea is to support shell glob patterns (*?[) in pkg-plist.  This
>>>> is possible now thanks to staging.  It would allow moving PORTDOCS,
>>>> PORTDATA and PORTEXAMPLES to pkg-plist.  But more importantly, it would
>>>> allow automatic plists that some ports create in post-install to be
>>>> turned back into a real pkg-plist.  Without glob patterns some pkg-plists
>>>> are just too long or too complicated depending on options.
>>> 
>>> We could also say pack everything that is in that stage directory.
>>> 
>>> The problem is right now I do like static plist because if something
>>> fails to build for $reason, that the plist doesn't find a file in the
>>> staging area and we notice quite quickly that something as failed.
>>> with autoplist or globbing we do lose this feature and we need to way
>>> deal with it.
>>> In anycase we won't make full autoplist because we still need to be
>>> able to specify credentials files per files if needed. But glob is
>>> really appealing :)
>> 
>> I completely agree :)  Files should be listed explicitly if possible,
>> but sometimes it's very inconvenient and in these cases some ports
>> roll their own autoplist implementations which worse than having a
>> static pkg-plist with a few glob patterns.
>> 
>> Moving PORTDOCS etc. to pkg-plist means all package content is listed
>> in one file.  That will probably simplify check-plist too.
> 
> Glob sounds nice but can lead to easy failures with files named with
> glob patterns like archivers/deco

Hmm.  Those characters would have to be escaped, just like on the command
line.  glob(3) already handles all of that though.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 213 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20140903/f62dfbfe/attachment.sig>


More information about the freebsd-ports mailing list