Bug#1038735: python3-mapscript: python hook /usr/share/doc content (Policy 12.3): /usr/share/doc/python3-mapscript/examples/__init__.py

Andreas Beckmann anbe at debian.org
Tue Jun 20 18:05:36 BST 2023


Package: python3-mapscript
Version: 8.0.1-1
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."
https://www.debian.org/doc/debian-policy/ch-docs.html#additional-documentation

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...):

  Setting up python3 (3.11.2-1+b1) ...
  [Errno 2] No such file or directory: '/usr/share/doc/python3-mapscript/examples/__init__.py'error running python rtupdate hook python3-mapscript
  dpkg: error processing package python3 (--configure):
   installed python3 package post-installation script subprocess returned error exit status 4
  Setting up libgdal32 (3.6.4+dfsg-1) ...
  dpkg: dependency problems prevent configuration of python3-mapscript:
   python3-mapscript depends on python3 (<< 3.12); however:
    Package python3 is not configured yet.

In this case it's probably sufficient to exclude the examples from the
hook.


Cheers,

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python3-mapscript_8.0.1-1.log.gz
Type: application/gzip
Size: 22968 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20230620/e1c9fc14/attachment-0001.gz>


More information about the Pkg-grass-devel mailing list