devel/gauche-gaunit packing list - unexec rmdir of directory containing PORTDOCS

Sam Lawrance boris at brooknet.com.au
Wed Apr 6 23:56:00 PDT 2005


On Wed, 2005-04-06 at 23:47 -0700, Brooks Davis wrote:
> On Thu, Apr 07, 2005 at 04:39:51PM +1000, Sam Lawrance wrote:
> > devel/gauche-gaunit fails mtree checks, log here:
> > http://pointyhat.freebsd.org/errorlogs/i386-errorlogs/e.5.2005032807/gauche-gaunit-0.0.9.log
> > 
> > The extra directory that is left behind is listed to be deleted in the
> > pkg-plist when nonempty:
> > @unexec rmdir %D/share/doc/gauche 2>/dev/null || true
> > 
> > The port uses PORTDOCS. The problem seems to be that the directory is
> > never empty, because the automatically generated PORTDOCS entries in the
> > packing list are lower down than the unexec rmdir entry, eg:
> > 
> > @unexec rmdir %D/share/doc/gauche 2>/dev/null || true
> > share/examples/gauche/gaunit/site-lisp/run-test-setting.el
> > ... etc etc ...
> > share/doc/gauche/gaunit/README.en
> > @comment MD5:0d5cb13bc1815619d93df94b52ab99ff
> > share/doc/gauche/gaunit/README.ja
> > @comment MD5:6e270ae1113bcca3e41d7c4ecd41f418
> > share/doc/gauche/gaunit/Tutorial.ja
> > 
> > What to do? The only way around I can think of is to not use PORTDOCS
> > and list everything in pkg-plist in the right order.
> 
> The PORTSDOC support looks to me like it should be adding an @dirrm
> DOCSDIR entry so you shouldn't need to do this.  See the add-plist-docs
> target in /usr/ports/Mk/bsd.port.mk.

Not quite. gauche-gaunit DOCSDIR is share/doc/gauche/gaunit. What the
port was originally trying to do was remove share/doc/gauche if it was
non empty - presumably because other ports might have installed stuff in
share/doc/gauche as well - gauche-sxml for example.




More information about the freebsd-ports mailing list