Control: tags -1 pending

On 6/20/23 19:05, Andreas Beckmann wrote:
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.

This is done by dh_python3:

 # Automatically added by dh_python3
 if command -v py3compile >/dev/null 2>&1; then
py3compile -p python3-mapscript:amd64 /usr/share/doc/python3-mapscript/examples
 fi
 if command -v pypy3compile >/dev/null 2>&1; then
pypy3compile -p python3-mapscript:amd64 /usr/share/doc/python3-mapscript/examples || true
 fi

dh_python3 is used to rewrite the shebang, we'll just ignore the example-unusual-interpreter lintian issue then.

Kind Regards,

Bas

--
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1

Reply via email to