[Python-modules-team] Bug#904521: pypy-py: postinst uses /usr/share/doc content (Policy 12.3): /usr/share/doc/pypy-py/examples/genhtml.py
Andreas Beckmann
anbe at debian.org
Wed Jul 25 02:09:51 BST 2018
Package: pypy-py
Version: 1.5.3-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/#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...):
Selecting previously unselected package pypy-py.
(Reading database ...
(Reading database ... 7663 files and directories currently installed.)
Preparing to unpack .../pypy-py_1.5.3-1_all.deb ...
Unpacking pypy-py (1.5.3-1) ...
Setting up pypy-py (1.5.3-1) ...
Traceback (most recent call last):
File "/usr/bin/pypycompile", line 100, in <module>
main()
File "/usr/bin/pypycompile", line 93, in main
py_compile.compile(module, doraise=True)
File "/usr/lib/pypy/lib-python/2.7/py_compile.py", line 105, in compile
with open(file, 'U') as f:
IOError: [Errno 2] No such file or directory: '/usr/share/doc/pypy-py/examples/genhtml.py'
dpkg: error processing package pypy-py (--configure):
installed pypy-py package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
pypy-py
Cheers,
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pypy-py_1.5.3-1.log.gz
Type: application/gzip
Size: 9127 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/python-modules-team/attachments/20180725/67fc611a/attachment-0001.gz>
More information about the Python-modules-team
mailing list