HEADS UP: pkg-plist strict enforcement starting

Kris Kennaway kris at obsecurity.org
Fri Jan 14 13:56:00 PST 2005


On Sat, Jan 15, 2005 at 08:12:06AM +1100, Edwin Groothuis wrote:
> On Fri, Jan 14, 2005 at 12:29:18PM +0100, Kirill Ponomarew wrote:
> > On Fri, Jan 14, 2005 at 01:04:04PM +0200, Adi Pircalabu wrote:
> > > > I'm going to be careful about not allowing the "questionable" packages
> > > > to fall foul of the pkg-plist checking, until we decide one way or the
> > > > other whether they should be considered "broken".
> > > 
> > > This is a tricky situation from my point of view. I'm following this
> > > thread with a lot of interest since I'll be managing a port which CAN
> > > NOT honor pkg-plist strict checking. Here are few details:
> > > 
> > > - The configuration files are created and heavily modified at install
> > > time from .dist files, will be modified as needed and should not be
> > > deleted at uninstall - the configuration should be kept for a later
> > > upgrade. This will definitely break "make install deinstall" on the
> > > packages cluster, but the files are required since they must contain
> > > information about various modules and plugins of the port, and this
> > > information must be written through a daemon started at post-install.
> > 
> > You can try cmp(1) in pkg-plist to compare configurations files.
> > Take a look at ports collection, there are enough examples.
> 
> Maybe we need two additional @ commands for pkg-plist:
> 
> - @dirrmifempty foo/bar
>     does do what "@unexec rmdir %D/foo/bar 2>/dev/null || true" does.
> 
> - @rmifdifferent foo/bar foo/baz
>     does do what "@unexec cmp %D/foo/bar %D/foo/baz && rm %D/foo/bar" does.
> 
> This way we
> 
> - have an easy and consistent syntax for a difficult command
> 
> - have less chance for errors (forgetting %D, && instead of ||)
> 
> Comments?

This keeps getting suggested under various names, but you need to
solve the compatibility problem.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20050114/cb24845c/attachment.bin


More information about the freebsd-ports mailing list