[Pkg-libvirt-maintainers] Bug#842452: FTBFS depdnding on docs/apibuild.py timestamp (api docs not buildable)
Ian Jackson
ijackson at chiark.greenend.org.uk
Sat Oct 29 11:21:39 UTC 2016
Package: libvirt
Version: 2.3.0-3
Severity: serious
I have discovered that libvirt sometimes doesn't build, depending on
the file timestamps. Specifically: the api docs don't build; but,
whether they are rebuilt depends on timestamps and a simple "apt-get
source" generates timestamps which do not cause a docs build.
The built docs in the source package (which I think are probably also
shipped in the binaries) are evidently not actually buildable from the
provided inputs. And it is just luck that the source package builds
for most people.
Steps to reproduce:
In a sid chroot with the build-deps installed:
$ mkdir repro
$ cd repro
$ apt-get source libvirt
Reading package lists... Done
NOTICE: 'libvirt' packaging is maintained in the 'Git' version control system at:
https://anonscm.debian.org/git/pkg-libvirt/libvirt.git
Please use:
git clone https://anonscm.debian.org/git/pkg-libvirt/libvirt.git
to retrieve the latest (possibly unreleased) updates to the package.
Need to get 13.3 MB of source archives.
Get:1 http://ftp.debian.org/debian sid/main libvirt 2.3.0-3 (dsc) [3779 B]
Get:2 http://ftp.debian.org/debian sid/main libvirt 2.3.0-3 (tar) [13.2 MB]
Get:3 http://ftp.debian.org/debian sid/main libvirt 2.3.0-3 (diff) [56.1 kB]
Fetched 13.3 MB in 0s (93.4 MB/s)
gpgv: unknown type of key resource 'trustedkeys.kbx'
gpgv: keyblock resource '/home/ian/.gnupg/trustedkeys.kbx': General error
gpgv: Signature made Sun Oct 16 16:00:16 2016 UTC
gpgv: using RSA key 07B8B7B0EA98120B
gpgv: Can't check signature: No public key
dpkg-source: warning: failed to verify signature on ./libvirt_2.3.0-3.dsc
dpkg-source: info: extracting libvirt in libvirt-2.3.0
dpkg-source: info: unpacking libvirt_2.3.0.orig.tar.xz
dpkg-source: info: unpacking libvirt_2.3.0-3.debian.tar.xz
dpkg-source: info: applying debian/remove-RHism.diff.patch
dpkg-source: info: applying debian/Don-t-enable-default-network-on-boot.patch
dpkg-source: info: applying debian/fix-Debian-specific-path-to-hvm-loader.patch
dpkg-source: info: applying debian/Debianize-libvirt-guests.patch
dpkg-source: info: applying patch-qemuMonitorTextGetMigrationStatus-to-intercept.patch
dpkg-source: info: applying Disable-gnulib-s-test-nonplocking-pipe.sh.patch
dpkg-source: info: applying Reduce-udevadm-settle-timeout-to-10-seconds.patch
dpkg-source: info: applying debian/Debianize-systemd-service-files.patch
dpkg-source: info: applying Allow-xen-toolstack-to-find-it-s-binaries.patch
dpkg-source: info: applying Skip-vircgrouptest.patch
dpkg-source: info: applying debian/Debianize-virtlockd.patch
dpkg-source: info: applying debian/Use-upstreams-polkit-rule.patch
dpkg-source: info: applying Allow-access-to-libnl-3-config-files.patch
dpkg-source: info: applying debian/apparmor_profiles_local_include.patch
dpkg-source: info: applying virt-aa-helper-apparmor-allow-usr-share-OVMF-too.patch
dpkg-source: info: applying Set-defaults-for-zfs-tools.patch
dpkg-source: info: applying libvirt-guests-use-wants-instead-of-requires.patch
$ cd libvirt-2.3.0/
$ touch docs/apibuild.py
$ dpkg-buildpackage -uc -b >../log 2>&1
$
Expected behavour: successful build.
Observed behaviour: failed build, with error messages like:
function virTypedParamsGetUInt from /volatile/ian/Weird-libvirt-failure/repro/libvirt-2.3.0/docs/../include/libvirt/libvirt-common.h redeclared in /volatile/ian/Weird-libvirt-failure/repro/libvirt-2.3.0/de
bian/build/docs/../include/libvirt/libvirt-common.h
Log attached.
Thanks for your attention and sorry to be the bearer of bad tidings.
Regards,
Ian.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log.gz
Type: application/x-gzip
Size: 69767 bytes
Desc: build log
URL: <http://lists.alioth.debian.org/pipermail/pkg-libvirt-maintainers/attachments/20161029/2f4985da/attachment-0001.bin>
More information about the Pkg-libvirt-maintainers
mailing list