Package: lintian-brush
Version: 0.104

Hi,
I've seen the autopkgtests fail in Debian
https://ci.debian.net/data/autopkgtest/unstable/amd64/l/lintian-brush/12796854/log.gz
And Ubuntu
https://autopkgtest.ubuntu.com/results/autopkgtest-impish/impish/amd64/l/lintian-brush/20210524_182220_e891a@/log.gz

While it seems that there might be more hidden underneath as tests behave
differently on re-runs and if executed locally there is one issue that
persists everywhere.

    from lintian_brush.fixer import control, report_result, LintianIssue
  File "/usr/lib/python3/dist-packages/lintian_brush/fixer.py", line
235, in <module>
    from debmutate.debcargo import DebcargoControlShimEditor, DebcargoEditor
  File "/usr/lib/python3/dist-packages/debmutate/debcargo.py", line
28, in <module>
    from tomlkit import loads, dumps
ModuleNotFoundError: No module named 'tomlkit'

Installing python3-tomlkit avoids that issue as one would expect.
It only is an indirect recommends and therefore isn't auto-installed.

Resolving this gets the test working in a local autopkgtest
VM based run (in Ubuntu).
Logs => https://paste.ubuntu.com/p/8bSFTkNCFS/

Let me know if you need an MP or debdiff for this, but since it is so
trivial I've just posted it here:

diff -Nru lintian-brush-0.104/debian/tests/control
lintian-brush-0.104/debian/tests/control
--- lintian-brush-0.104/debian/tests/control 2021-03-29 19:56:27.000000000 +0200
+++ lintian-brush-0.104/debian/tests/control 2021-03-29 19:56:27.000000000 +0200
@@ -1,5 +1,5 @@
 Tests: tool-testsuite
-Depends: lintian-brush, python3-breezy.tests, gpg, dos2unix,
libdebhelper-perl, lintian (>= 2.104.0), python3-iniparse,
python3-levenshtein, decopy, po-debconf, python3-toml |
python3-upstream-ontologist (>> 0.1.12), python3-markdown,
python3-docutils, python3-bs4, python3-lxml
+Depends: lintian-brush, python3-breezy.tests, gpg, dos2unix,
libdebhelper-perl, lintian (>= 2.104.0), python3-iniparse,
python3-levenshtein, decopy, po-debconf, python3-toml |
python3-upstream-ontologist (>> 0.1.12), python3-markdown,
python3-docutils, python3-bs4, python3-lxml, python3-tomlkit
 Restrictions: allow-stderr

 Test-Command: deb-scrub-obsolete --version

I hope that helps to resolve this,
Christian Ehrhardt

Reply via email to