pkg-plist problems

Paul Schmehl pauls at utdallas.edu
Tue Jul 19 17:35:27 GMT 2005


--On Tuesday, July 19, 2005 19:18:17 +0200 Florent Thoumie <flz at xbsd.org> 
wrote:

> Le Lundi 18 juillet 2005 à 16:13 -0500, Paul Schmehl a écrit :
>> I'm working on a new port, and I'm having a strange problem with
>> pkg-plist.  I created pkg-plist per the instructions in Chapter 19 of
>> the Porters  Handbook.  When I run make deinstall
>> PREFIX=/var/tmp/port-name, the  deinstall complains that the files in
>> $DOCSDIR don't exist.  Yet they do.
>>
>> Here's the error I'm getting (in part):
>>
>> pkg_delete: file '/var/tmp/sguild/share/doc/sguil-sensor' doesn't really
>> exist
>> pkg_delete: unable to completely remove directory
>> '/var/tmp/sguild/share/doc/sguil-sensor'
>> pkg_delete: couldn't entirely delete package (perhaps the packing list is
>> incorrectly specified?)
>
> 	You should have posted the entire port, but reading that, I
> 	guess you're using PORTDOCS in Makefile. PORTDOCS automatically
> 	adds "@dirrm ${DOCSDIR:S,^${PREFIX}/,,}" to the packing list, so
> 	the one you added in pkg-plist isn't necessary.
>
That's exactly what the problem was.  I removed the lines from pkg-plist 
and ran install and deinstall and checked for the docdir, and it was 
installed and removed every time.

Gracias mucho

Paul Schmehl (pauls at utdallas.edu)
Adjunct Information Security Officer
University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu/ir/security/


More information about the freebsd-ports mailing list