checkbox build fails if python3-plainbox is installed in the build system
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
checkbox (Ubuntu) |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
On a trusty system which by default has python3-plainbox and plainbox-
=======
ERROR: test_run_
-------
Traceback (most recent call last):
File "/home/
main(['dev', 'special'])
File "/home/
raise SystemExit(
File "/home/
self._parser = self.construct_
File "/home/
self.
File "/home/
subparsers)
File "/home/
get_
File "/home/
transport_cls = entry_point.load()
File "/usr/lib/
if require: self.require(env, installer)
File "/usr/lib/
working_
File "/usr/lib/
raise VersionConflict
pkg_resources.
-------
Ran 1590 tests in 4.828s
FAILED (errors=14, skipped=1, expected failures=1)
make[1]: *** [override_
make[1]: Leaving directory `/home/
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
How I reproduced this:
- On a just-installed desktop Trusty system, install bzr, build-deps for checkbox, and quilt.
- branch lp:ubuntu/checkbox and change to that directory
- dpkg-buildpackage -S
At Zygmunt's suggestion I uninstalled all checkbox and plainbox packages to ensure things run against the source and not installed packages. In that case, things work as expected.
The problem is that the build script continues to run tests for the plainbox portion of the tree (even if it only packages checkbox-gui), and those fail in the presence of an installed version of plainbox.
A possible solution is to update debian/rules so it doesn't run those tests.
Also, to clarify, this doesn't affect building a source package (e.g. dpkg-buildpackage -S), nor does it affect builds in "clean" environments such as sbuild, which is used to generate the actual Ubuntu packages.
I'll set this to Triaged since it was reproduced both by Zygmunt and I, the problem has been identified and a solution has been proposed.
Changed in checkbox (Ubuntu): | |
status: | Triaged → Won't Fix |