[FTBFS] libguestfs fails to build on Xenial - dh_install --fail-missing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libguestfs (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Ioanna Alifieraki |
Bug Description
[Impact]
Ubuntu Version :
$ lsb_release -rd
Description: Ubuntu 16.04.5 LTS
Release: 16.04
libguestfs version : 1:1.32.2-4ubuntu2
When trying to build libguestfs on Ubuntu 16.04 - Xenial, it fails at :
dh_install -X.la -X.so.owner -Xbindtests -X/usr/lib/go/ -Xpackages.orig \
--fail-missing
dh_install: usr/lib/
dh_install: usr/lib/
dh_install: usr/lib/
dh_install: usr/lib/
dh_install: usr/lib/
dh_install: usr/lib/
dh_install: usr/lib/
dh_install: usr/lib/
dh_install: usr/lib/
dh_install: usr/lib/
dh_install: usr/lib/
dh_install: missing files, aborting
debian/rules:118: recipe for target 'override_
This happens because the dh_install excludes the /usr/lib/go files (-X/usr/lib/go)
but does not exclude the /usr/lib/go- for the specific version of go.
The fix replaces the command :
dh_install -X.la -X.so.owner -Xbindtests -X/usr/lib/go/ -Xpackages.orig \
--fail-missing
with :
dh_install -X.la -X.so.owner -Xbindtests -X/usr/lib/go/ -X/usr/lib/go- -Xpackages.orig \
--fail-missing
[Test Case]
On a Xenial machine :
1) $ pull-lp-source libguestfs xenial
2) $ cd libguestfs-1.32.2/
3) $ debuild
dpkg-buildpackage -rfakeroot -D -us -uc
dpkg-buildpackage: source package libguestfs
dpkg-buildpackage: source version 1:1.32.2-4ubuntu2
dpkg-buildpackage: source distribution xenial
....
dh_install -X.la -X.so.owner -Xbindtests -X/usr/lib/go/ -Xpackages.orig \
--fail-missing
dh_install: usr/lib/
dh_install: usr/lib/
dh_install: usr/lib/
...
debian/rules:118: recipe for target 'override_
[Regression Potential]
* The fix might cause problems when building libguestfs.
* autopkgtest fails with :
autopkgtest [14:49:52]: test command1: /usr/bin/
autopkgtest [14:49:52]: test command1: [------
bash: /usr/bin/
autopkgtest [14:49:53]: test command1: -------
autopkgtest [14:49:53]: test command1: - - - - - - - - - - results - - - - - - - - - -
command1 FAIL non-zero exit status 1
autopkgtest [14:49:54]: @@@@@@@
command1 FAIL non-zero exit status 1
However this is due to the golang test which are excluded from the package.
The same behaviour is observed when running autopakgtest for libguestfs on Bionic.
$ autopkgtest -U libguestfs_
...
autopkgtest [17:55:37]: test command1: /usr/bin/
autopkgtest [17:55:37]: test command1: [------
[error] Can't find import paths.
autopkgtest [17:55:41]: test command1: -------
autopkgtest [17:55:42]: test command1: - - - - - - - - - - results - - - - - - - - - -
command1 FAIL non-zero exit status 2
autopkgtest [17:55:43]: @@@@@@@
command1 FAIL non-zero exit status 2
[Other Info]
CVE References
Changed in libguestfs (Ubuntu Xenial): | |
assignee: | nobody → Ioanna Alifieraki (joalif) |
importance: | Undecided → Medium |
status: | New → In Progress |
summary: |
- libguestfs fails to build on Xenial - dh_install --fail-missing + [FTBFS] libguestfs fails to build on Xenial - dh_install --fail-missing |
tags: | added: sts |
Changed in libguestfs (Ubuntu): | |
status: | New → Fix Released |
importance: | Undecided → Medium |
tags: | added: ftbfs |
tags: |
added: verification-failed-xenial removed: verification-needed-xenial |
tags: |
added: verification-done removed: verification-needed |
I have sponsored the patch.
It is now waiting for the SRU veriifcation team to approve the upload for the pkg to start building in xenial-proposed for the testing phase.
- Eric