Bug#945338: libpetsc3.11-dev-examples: postinst uses /usr/share/doc content (Policy 12.3): /usr/share/doc/libpetsc3.11-dev-examples/examples/**/*.py
Christophe Trophime
christrophime at googlemail.com
Fri Dec 6 12:29:23 GMT 2019
On Sat, 23 Nov 2019 04:18:43 +0100 Andreas Beckmann <anbe at debian.org> wrote:
> 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
>
With this fix, there is no more issue with piuparts.
I have checked that the package pestc 3.11 can be installed on Ubuntu Eoan
without problem
Hope it helps
Best
C
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20191206/7ca3ccd7/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-945338.patch
Type: text/x-patch
Size: 6758 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20191206/7ca3ccd7/attachment-0001.bin>
More information about the debian-science-maintainers
mailing list