Package: dh-python
Version: 7.20251231
Severity: important
X-Debbugs-Cc: [email protected]

Dear Maintainer,

dh_python3 generates postint script that contains:

Automatically added by dh_python3
if command -v py3compile >/dev/null 2>&1; then
        py3compile -p llvm-21-tools:amd64 /usr/lib/llvm-21/build/utils/lit
fi

Lack of || true or similar(py3compile not returning 1 on fail?) causes
llvm-21-tools to fail at install:

Setting up llvm-21-tools (1:21.1.8-1+b1) ...
  File "/usr/lib/llvm-21/build/utils/lit/tests/shtest-encoding.py", line 3
    # Here is a string that cannot be decoded in line mode: �.
                                                            ^
SyntaxError: Non-UTF-8 code starting with '\xc2' on line 3, but no encoding
declared; see https://peps.python.org/pep-0263/ for details
dpkg: error processing package llvm-21-tools (--configure):
 old llvm-21-tools package postinst maintainer script subprocess failed with
exit status 1
Errors were encountered while processing:
 llvm-21-tools



-- System Information:
Debian Release: forky/sid
  APT prefers experimental
  APT policy: (502, 'experimental'), (501, 'unstable'), (500, 
'unstable-debug'), (500, 'testing'), (1, 'experimental-debug')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.19-amd64 (SMP w/32 CPU threads; PREEMPT)
Locale: LANG=pl_PL.utf8, LC_CTYPE=pl_PL.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dh-python depends on:
ii  python3  3.14.2-1

dh-python recommends no packages.

Versions of packages dh-python suggests:
ii  dpkg-dev           1.23.4
pn  flit               <none>
ii  libdpkg-perl       1.23.4
ii  python3-build      1.2.2-5
ii  python3-installer  0.7.0+dfsg1-3
ii  python3-wheel      0.46.1-2

-- debconf-show failed

Reply via email to