Source: brotli
Version: 1.0.7-6
Severity: serious
Tags: patch
Justification: makes the package in question unusable or mostly so
Dear Maintainer,
The autopkgtest for your package failed:
autopkgtest [03:41:53]: test python3: [-----------------------
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3/dist-packages/brotli.py", line 8, in <module>
import _brotli
ModuleNotFoundError: No module named '_brotli'
autopkgtest [03:41:53]: test python3: -----------------------]
autopkgtest [03:41:53]: test python3: - - - - - - - - - - results - - - - - -
- - - -
python3 FAIL non-zero exit status 1
autopkgtest [03:41:53]: test python3: - - - - - - - - - - stderr - - - - - -
- - - -
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3/dist-packages/brotli.py", line 8, in <module>
import _brotli
ModuleNotFoundError: No module named '_brotli'
autopkgtest [03:41:53]: @@@@@@@@@@@@@@@@@@@@ summary
python3 FAIL non-zero exit status 1
https://ci.debian.net/data/autopkgtest/testing/amd64/b/brotli/4952836/log.gz
This is a blocker for gcc-10:
https://qa.debian.org/excuses.php?package=gcc-10
And other packages that depend on gcc-10.
The attached patch uses `py3version -s` to only test the supported python3
versions.
Kind Regards,
Bas
diff -Nru brotli-1.0.7/debian/changelog brotli-1.0.7/debian/changelog
--- brotli-1.0.7/debian/changelog 2020-01-02 00:09:12.000000000 +0100
+++ brotli-1.0.7/debian/changelog 2020-04-16 10:07:13.000000000 +0200
@@ -1,3 +1,10 @@
+brotli (1.0.7-6.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Use `py3versions -s` for autopkgtest.
+
+ -- Bas Couwenberg <[email protected]> Thu, 16 Apr 2020 10:07:13 +0200
+
brotli (1.0.7-6) unstable; urgency=medium
* Drop python2 support; Closes: #936242
diff -Nru brotli-1.0.7/debian/tests/python3 brotli-1.0.7/debian/tests/python3
--- brotli-1.0.7/debian/tests/python3 2020-01-02 00:09:12.000000000 +0100
+++ brotli-1.0.7/debian/tests/python3 2020-04-16 09:59:15.000000000 +0200
@@ -1,6 +1,6 @@
#!/bin/sh -eu
-for python3 in $(py3versions -r 2>/dev/null); do
+for python3 in $(py3versions -s 2>/dev/null); do
${python3} -c 'import brotli as b; assert b.decompress(b.compress(b"x"))
== b"x"'
echo "${python3}: OK"
done