Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jul 2005 16:13:54 -0500
From:      Paul Schmehl <pauls@utdallas.edu>
To:        ports@freebsd.org
Subject:   pkg-plist problems
Message-ID:  <EBCC58430C7721C861BB2875@utd59514.utdallas.edu>

next in thread | raw e-mail | index | archive | help
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?)

As you can see, the directory is gone:
 ls /var/tmp/sguild/share/doc/
ja

After running make install PREFIX=
 make install PREFIX=/var/tmp/sguild

As you can see, the directory is there:
ls /var/tmp/sguild/share/doc/
ja              sguil-sensor

And so are the docs:
ls /var/tmp/sguild/share/doc/sguil-sensor/
CHANGES         INSTALL.openbsd OPENSSL.README  USAGE
INSTALL         LICENSE.QPL     TODO            sguildb.dia

Here's the pkg-plist:
 less pkg-plist
bin/sguil-sensor/log_packets.sh
bin/sguil-sensor/log_packets.sh-sample
bin/sguil-sensor/sensor_agent.tcl
etc/rc.d/sensoragent.sh
etc/sancp.conf
etc/sancp.conf-sample
etc/sensor_agent.conf
etc/sensor_agent.conf-sample
share/doc/sguil-sensor/CHANGES
share/doc/sguil-sensor/INSTALL
share/doc/sguil-sensor/INSTALL.openbsd
share/doc/sguil-sensor/LICENSE.QPL
share/doc/sguil-sensor/OPENSSL.README
share/doc/sguil-sensor/TODO
share/doc/sguil-sensor/USAGE
share/doc/sguil-sensor/sguildb.dia
share/nls/POSIX
share/nls/en_US.US-ASCII
@dirrm share/doc/sguil-sensor
@dirrm bin/sguil-sensor

Everything is being installed and deleted correctly, but the deinstall 
generates the above errors.

What the heck is going on?

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EBCC58430C7721C861BB2875>