Subject: trouble packaging perl module File-Tail
To: None <tech-pkg@netbsd.org>
From: Brad Volz <bradv@affectation.org>
List: tech-pkg
Date: 05/26/2003 17:03:05
Hello,
I am attempting to create a p5-File-Tail package currently, as this
particular perl module is a requirement for David Schweikert's mailgraph
(which I am also attempting to package).
Using the following Makefile and the demonstration script logwatch, that
is bundled with the module, things work as expected. This was confirmed
following a 'make install' by going into the work directory and then:
./logwatch /var/log/messages
and in another window --
/etc/rc.d/named restart
In the wondow that logwatch was running in, the syslog output from named
scrolled across the screen shortly after being restarted.
Here is the Makefile that I am using --
# $NetBSD$
#
DISTNAME= File-Tail-0.98
PKGNAME= p5-${DISTNAME}
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=File/}
MAINTAINER= packages@netbsd.org
COMMENT= provides functions for monitoring continuously appended files
DEPENDS+= p5-Time-HiRes:../../time/p5-Time-HiRes
USE_PERL5= YES
REPLACE_PERL= logwatch
PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/File/Tail/.packlist
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"
Where I seem to be having trouble is cleaning things up via pkg_delete or
a 'make deinstall.' These are the errors that I am getting --
bradv:omniscient:$ make deinstall
===> Deinstalling for p5-File-Tail-0.98
===> Becoming root@omniscient.affectation.org to deinstall
p5-File-Tail-0.98.
/usr/bin/su Password:
Running PKG_DBDIR=/var/db/pkg /usr/sbin/pkg_delete p5-File-Tail-0.98
pkg_delete: unable to completely remove directory
'/usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd/auto'
pkg_delete: unable to completely remove directory
'/usr/pkg/lib/perl5/site_perl/5.6.1/File'
pkg_delete: unable to completely remove directory
'/usr/pkg/lib/perl5/site_perl/5.6.1'
pkg_delete: unable to completely remove directory
'/usr/pkg/lib/perl5/5.6.1/i386-netbsd'
pkg_delete: file
`/usr/pkg/lib/perl5/site_perl/5.6.1/auto/File/Tail/autosplit.ix' doesn't
really exist
pkg_delete: file
`/usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd/auto/File/Tail/.packlist'
doesn't really exist
pkg_delete: couldn't entirely delete package `p5-File-Tail-0.98'
(perhaps the packing list is incorrectly specified?)
I created the PLIST via 'make print-PLIST | tee PLIST' immediately
following the 'make install'
What I find really confusing is that after a 'make install' I can see that
the files which the system claims do not exist are in place.
For Example,
ls -al /usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd/auto/File/Tail/.packlist
produces the following:
-rw-r--r-- 1 root wheel 111 May 26 16:46 /usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd/auto/File/Tail/.packlist
I guess that I am missing something along the way, but I can't figure out
what it is. Does anyone have any suggestions?
Thanks,
Brad