[Pkg-nagios-devel] Bug#709956: nagvis: postinst uses /usr/share/doc content (Policy 12.3)

Andreas Beckmann anbe at debian.org
Mon May 27 03:31:02 UTC 2013


Package: nagvis
Version: 1:1.6.6+dfsg.1-3
Severity: serious
User: debian-qa at lists.debian.org
Usertags: piuparts

Hi,

a test with piuparts revealed that your package uses files from
/usr/share/doc in its maintainer scripts which is a violation of
Policy 12.3: "Packages must not require the existence of any files in
/usr/share/doc/ in order to function."
http://www.debian.org/doc/debian-policy/ch-docs.html#s12.3

These files must be moved to /usr/share/$PACKAGE and may be symlinked
from /usr/share/doc/$PACKAGE.

This piuparts test prevents the installation of (most) files into
/usr/share/doc with 'dpkg --path-exclude=...'.

>From the attached log (scroll to the bottom...):

  Selecting previously unselected package nagvis.
  (Reading database ... 10238 files and directories currently installed.)
  Unpacking nagvis (from .../nagvis_1%3a1.6.6+dfsg.1-3_all.deb) ...
  Setting up nagvis (1:1.6.6+dfsg.1-3) ...
  gzip: /usr/share/doc/nagvis/nagvis.ini.php-sample.gz: No such file or directory
  
  Creating config file /etc/nagvis/nagvis.ini.php with new version
  /var/lib/dpkg/info/nagvis.postinst: 49: /var/lib/dpkg/info/nagvis.postinst: cannot open /usr/share/doc/nagvis/apache2-nagvis.conf-sample: No such file
  dpkg: error processing nagvis (--configure):
   subprocess installed post-installation script returned error exit status 2
  Errors were encountered while processing:
   nagvis


Cheers,

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nagvis_1:1.6.6+dfsg.1-3.log.gz
Type: application/x-gzip
Size: 9435 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20130527/1542b423/attachment.bin>


More information about the Pkg-nagios-devel mailing list