Your message dated Sun, 15 Mar 2020 21:41:33 +0100
with message-id <20200315204133.r4kkems2xu6f2...@sar0.p1otr.com>
and subject line cannot reproduce
has caused the Debian Bug report #945903,
regarding dh-python: py3compile in postinst fails on scripts in /usr/share/doc
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
945903: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=945903
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: dh-python
Version: 4.20191017
Severity: serious
Justification: 14.3
Control: block 945338 -1
Control: block 945339 -1
dh_python3 sets up a py3compile entry in the postinst script for a
package containing python scripts.
dh_installexamples installs example scripts into
/usr/share/doc/<package>/examples
It is well possible that some of those example scripts may be python,
so they are detected by dh_python3 and registered for processing by
py3compile.
But we are currently being hit with RC bugs saying that this
situation is a serious bug, since it is possible that /usr/share/doc
may not be installed, might not be present, Debian Policy 12.3.
See for example petsc bug#945338, slepc bug#945339.
It seems to me reasonable that you would install to example python scripts
using dh_installexamples. Yes you could install elsewhere using
dh_install, but then what is the point of dh_installexamples?
In that case dh_python3 needs to be updated to comply with Policy
12.3, to let the py3compile snippet not break when acting on python
files in /usr/share/doc/*/examples
-- System Information:
Debian Release: bullseye/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.3.0-2-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8),
LANGUAGE=en_AU:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages dh-python depends on:
ii python3 3.7.5-3
ii python3-distutils 3.8.0-1
dh-python recommends no packages.
Versions of packages dh-python suggests:
ii dpkg-dev 1.19.7
ii libdpkg-perl 1.19.7
-- no debconf information
--- End Message ---
--- Begin Message ---
Hi,
I cannot reproduce this bug. I added a test case just in case, but after
looking at petsc source package (when it was still failing) - it looks
like dh_python3 was asked to use a directory under /usr/share/doc/ as
a private directory (so you really really wantend this behaviour)
--- End Message ---