[libvirt] Trying to re-compile libvirt package on Ubuntu Lucid

I'm trying to rebuild Ubuntu's libvirt packages to turn on ESX support. I've downloaded the Ubuntu source package for Lucid (updated Lucid package) dget -u http://archive.ubuntu.com/ubuntu/pool/main/libv/libvirt/libvirt_0.7.5-5ubunt... I try and re-compile dpkg-buildpackage -rfakeroot -b DEB_BUILD_OPTIONS="--with-esx" fakeroot debian/rules binary and I get this error, when the unit tests are run: ... testing with corrupted config: log_level Skipping test (due to Ubuntu buildd FTBFS): running libvirtd with a valid config file (2 seconds) FAIL: daemon-conf PASS: define-dev-segfault ... ==================== 1 of 37 tests failed ==================== make[4]: *** [check-TESTS] Error 1 make[4]: Leaving directory `/exp/h1/staff/lnordin/libvirt-pkg/libvirt-0.7.5/tests' make[3]: *** [check-am] Error 2 make[3]: Leaving directory `/exp/h1/staff/lnordin/libvirt-pkg/libvirt-0.7.5/tests' make[2]: *** [check-recursive] Error 1 make[2]: Leaving directory `/exp/h1/staff/lnordin/libvirt-pkg/libvirt-0.7.5/tests' make[1]: *** [check-recursive] Error 1 make[1]: Leaving directory `/exp/h1/staff/lnordin/libvirt-pkg/libvirt-0.7.5' make: *** [debian/stamp-makefile-check] Error 2 Anyone gone through this exercise before and would know how to get the packages re-built?

On 05/18/2011 08:01 AM, Lars Nordin wrote:
testing with corrupted config: log_level
Skipping test (due to Ubuntu buildd FTBFS): running libvirtd with a valid config file (2 seconds)
FAIL: daemon-conf
If I'm not mistaken, this is due to a testsuite bug and not a problem with libvirt itself. You can probably safely ignore this failure and proceed to install your self-built version. At any rate, the failure message makes it look like the Ubuntu build system prevented the test from passing because the test was attempting to access outside its chroot jail, and several patches in the tests directory have addressed those sorts of failures: df5944ff, d9c75c8d, d0c7254bf among others.
make[1]: Leaving directory `/exp/h1/staff/lnordin/libvirt-pkg/libvirt-0.7.5'
0.7.5 is rather old; if you are going to build from scratch, it might be worth considering upgrading to 0.9.1. -- Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
participants (2)
-
Eric Blake
-
Lars Nordin