Bug#710728: cacti-spine: postinst uses /usr/share/doc content (Policy 12.3): /usr/share/doc/cacti-spine/spine.conf.dbconfig

2013-06-02 Thread Paul Gevers
Control: tag -1 confirmed

This very same bug was indeed also in cacti, where I fixed it in one of
the latest uploads. We should apply the same logic in cacti-spine as well.

Paul



signature.asc
Description: OpenPGP digital signature


Bug#710728: cacti-spine: postinst uses /usr/share/doc content (Policy 12.3): /usr/share/doc/cacti-spine/spine.conf.dbconfig

2013-06-01 Thread Andreas Beckmann
Package: cacti-spine
Version: 0.8.8a-2
Severity: serious
User: debian...@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 cacti-spine.
  (Reading database ... 10783 files and directories currently installed.)
  Unpacking cacti-spine (from .../cacti-spine_0.8.8a-2_amd64.deb) ...
  Setting up cacti-spine (0.8.8a-2) ...
  error: template infile /usr/share/doc/cacti-spine/spine.conf.dbconfig does 
not exist
  dpkg: error processing cacti-spine (--configure):
   subprocess installed post-installation script returned error exit status 1
  Errors were encountered while processing:
   cacti-spine


Cheers,

Andreas


cacti-spine_0.8.8a-2.log.gz
Description: GNU Zip compressed data