Bug#945338: libpetsc3.11-dev-examples: postinst uses /usr/share/doc content (Policy 12.3): /usr/share/doc/libpetsc3.11-dev-examples/examples/**/*.py

Andreas Beckmann anbe at debian.org
Sat Nov 23 03:18:43 GMT 2019


Package: libpetsc3.11-dev-examples
Version: 3.11.4+dfsg1-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."
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.7.5-1) ...
  [Errno 2] No such file or directory: '/usr/share/doc/libpetsc3.11-dev-examples/examples/config/cmakegen.py'
  [Errno 2] No such file or directory: '/usr/share/doc/libpetsc3.11-dev-examples/examples/config/example_template.py'
  [Errno 2] No such file or directory: '/usr/share/doc/libpetsc3.11-dev-examples/examples/config/gmakegen.py'
  [Errno 2] No such file or directory: '/usr/share/doc/libpetsc3.11-dev-examples/examples/config/gmakegentest.py'
  [Errno 2] No such file or directory: '/usr/share/doc/libpetsc3.11-dev-examples/examples/config/report_tests.py'
  [Errno 2] No such file or directory: '/usr/share/doc/libpetsc3.11-dev-examples/examples/config/testparse.py'
  [Errno 2] No such file or directory: '/usr/share/doc/libpetsc3.11-dev-examples/examples/src/ksp/ksp/examples/tutorials/ex100.py'
  [Errno 2] No such file or directory: '/usr/share/doc/libpetsc3.11-dev-examples/examples/src/ksp/ksp/examples/tutorials/example100.py'
  [Errno 2] No such file or directory: '/usr/share/doc/libpetsc3.11-dev-examples/examples/src/ts/examples/tutorials/ex8.py'
  [Errno 2] No such file or directory: '/usr/share/doc/libpetsc3.11-dev-examples/examples/src/ts/examples/tutorials/extchem.py'
  error running python rtupdate hook libpetsc3.11-dev-examples
  dpkg: error processing package python3 (--configure):
   installed python3 package post-installation script subprocess returned error exit status 4
  dpkg: dependency problems prevent configuration of libpetsc3.11-dev-examples:
   libpetsc3.11-dev-examples depends on python3:any; however:
    Package python3 is not configured yet.
  
  dpkg: error processing package libpetsc3.11-dev-examples (--configure):
   dependency problems - leaving unconfigured
  Processing triggers for libc-bin (2.29-3) ...
  Errors were encountered while processing:
   python3
   libpetsc3.11-dev-examples


Cheers,

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libpetsc3.11-dev-examples_3.11.4+dfsg1-3.log.gz
Type: application/gzip
Size: 8702 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20191123/376e19bf/attachment-0001.gz>


More information about the debian-science-maintainers mailing list