> Anyway, I'll fire up a Debian box in my cloud and see if I can > reproduce this also.I was able to install stretch, starting from jessie [from `virt-builder debian-8'], changing s/jessie/stretch/ in sources.list, and upgrading in the usual way. To install gfs2-utils I had to add jessie as another apt source [see my final sources.list attached]. That package is not in stretch, I suppose because it has not been built since jessie. I completed `apt-get build-dep libguestfs' with no errors. I built libguestfs from git (ac76081f). I had to additionally install: `db-util' and `uuid-runtime'. I think both are missing dependencies from the Debian package. The test suite basically worked after that. There were a few failures (eg. grub missing, xfs-admin lacks some patches that we added upstream), but nothing significant. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW
There's one possible source of the problem: I discovered that if you don't have all the appliance packages installed on the host before your first libguestfs build, then any missing packages don't get added to appliance/supermin.d/packages. Compare your appliance/packagelist with appliance/supermin.d/packages and look for packages present in the first file and missing in the second file -- mdadm may be missing. If you later install those missing packages, the dependencies in appliance/Makefile.am never force appliance/supermin.d/packages to be rebuilt, so those packages will be forever missing from the appliance. Even 'make -C appliance clean all' will not fix this. You can work around this with: rm appliance/stamp-supermin make which forces appliance/supermin.d/packages to be rebuilt from scratch. Of course 'git clean -xdf' should have also fixed this, so I don't know if it applies to the problem you're having. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/
It seems the requirement is to still have Jessie mirrors enabled as it fails even when installing the packages previously mentioned. I'll switch to use APT-Pinning with a hybrid stable/testing distro. Debian testing seems not to be the friendliest environment for building multi-dependencies binaries. Now I eventually succeeded to run the tests even though I have way more packages installed than I was expecting X-D. I'll proceed writing the tests for the new API. Thanks for the support. On 28/02/16 13:52, Richard W.M. Jones wrote:> There's one possible source of the problem: > > I discovered that if you don't have all the appliance packages > installed on the host before your first libguestfs build, then any > missing packages don't get added to appliance/supermin.d/packages. > Compare your appliance/packagelist with appliance/supermin.d/packages > and look for packages present in the first file and missing in the > second file -- mdadm may be missing. > > If you later install those missing packages, the dependencies in > appliance/Makefile.am never force appliance/supermin.d/packages to be > rebuilt, so those packages will be forever missing from the appliance. > Even 'make -C appliance clean all' will not fix this. > > You can work around this with: > > rm appliance/stamp-supermin > make > > which forces appliance/supermin.d/packages to be rebuilt from scratch. > > Of course 'git clean -xdf' should have also fixed this, so I don't > know if it applies to the problem you're having. > > Rich. >