pbr requires the dist name and module name to be the same
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Core Infrastructure |
Fix Committed
|
Medium
|
Khai Do | ||
PBR |
Won't Fix
|
Wishlist
|
Unassigned |
Bug Description
I tried to package jenkins-job-builder 0.8.0 for Debian/Ubuntu and it failed to build from scratch:
/usr/bin/make -C doc html man BUILDDIR=
make[2]: Entering directory `/tmp/buildd/
sphinx-build -b html -d /tmp/buildd/
Making output directory...
Running Sphinx v1.2.2
Exception occurred:
File "/usr/lib/
raise child_exception
OSError: [Errno 2] No such file or directory
The full traceback has been saved in /tmp/sphinx-
After investigation, the exception is triggered by pbr failing to get jenkins-
Further digging into pbr/packaging.py code and get_version function, we fail to get the version from PKG-INFO because package_name = "jenkins_jobs" while "jenkins-
In jenkins-
Obviously, pbr doesn't like that as we can see also on https:/
As an ugly workaround, we can force PBR_VERSION and will bypass PKG-INFO check.
I understand the bug is mostly a pbr bug but I doubt we'll get a fix in distro. Please advise on proper way to fix the issue with released pbr (0.7.0 in Trusty).
tags: | added: jjb |
Changed in pbr: | |
assignee: | nobody → Khai Do (zaro0508) |
Changed in openstack-ci: | |
assignee: | nobody → Khai Do (zaro0508) |
tags: | added: pbr |
Changed in pbr: | |
assignee: | Khai Do (zaro0508) → nobody |
Changed in openstack-ci: | |
assignee: | Khai Do (zaro0508) → nobody |
Changed in openstack-ci: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
tags: | removed: pbr |
Changed in pbr: | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
summary: |
- jenkins-job-builder 0.8.0 tarball with the switch to pbr is unusable for - packagers + pbr requires the dist name and module name to be the same |
The following change set fixed the issue that you linked to (also involves package name but it's about coverage not working because of a differing package name) - https:/ /review. openstack. org/89205