Source: vmdb2
Version: 0.13.2+git20190215-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source

The build currently fails with:

Traceback (most recent call last):
  File "/usr/bin/pylint3", line 11, in <module>
    load_entry_point('pylint==2.2.2', 'console_scripts', 'pylint')()
  File "/usr/lib/python3/dist-packages/pylint/__init__.py", line 20, in 
run_pylint
    Run(sys.argv[1:])
  File "/usr/lib/python3/dist-packages/pylint/lint.py", line 1608, in __init__
    linter.check(args)
  File "/usr/lib/python3/dist-packages/pylint/lint.py", line 938, in check
    self._do_check(files_or_modules)
  File "/usr/lib/python3/dist-packages/pylint/lint.py", line 1071, in _do_check
    self.check_astroid_module(ast_node, walker, rawcheckers, tokencheckers)
  File "/usr/lib/python3/dist-packages/pylint/lint.py", line 1154, in 
check_astroid_module
    walker.walk(ast_node)
  File "/usr/lib/python3/dist-packages/pylint/utils.py", line 1269, in walk
    self.walk(child)
  File "/usr/lib/python3/dist-packages/pylint/utils.py", line 1266, in walk
    cb(astroid)
  File "/usr/lib/python3/dist-packages/pylint/checkers/variables.py", line 
1582, in visit_import
    module = next(node.infer_name_module(parts[0]))
AttributeError: 'Import' object has no attribute 'infer_name_module'
make[1]: *** [debian/rules:14: override_dh_auto_test] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:6: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2


This is caused by the build dependency on pylint3, which is an obsolete
binary package and is not compatible anymore with the version of one of
its dependencies in unstable. a fix for this would be just change the
dependency to pylint, but TBH running linters like pylint during the
build make the build flaky because new checks added to the linter can
make the package suddenly fail to build.

I see that the call to pylink has been dropped upstream, so a new
upstream release should fix this.

FWIW the full build log is attached.

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 
'unstable'), (500, 'testing'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.2.0-3-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_CRAP
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8), 
LANGUAGE=pt_BR:pt:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-- no debconf information

Attachment: vmdb2_amd64.build.gz
Description: application/gzip

Attachment: signature.asc
Description: PGP signature

Reply via email to