[Libguestfs] How to build virt-v2v after the project was separated

Richard W.M. Jones rjones at redhat.com
Sun Nov 17 17:03:49 UTC 2019


On Sun, Nov 17, 2019 at 06:07:48PM +0200, Nir Soffer wrote:
> Looks like virt-v2v cannot be built now, since it requires non-existing version
> of libguestfs-devel.
> 
> Based on (no README or any instructions in virt-v2v)
> http://libguestfs.org/guestfs-building.1.html
> 
> I tried this:
> 
> git clean -dxf
> ./autogen.sh
> 
> And it fails with:
> 
> --- Checking for libraries used by virt-v2v ---
> checking for pkg-config... /usr/bin/pkg-config
> checking pkg-config is at least version 0.9.0... yes
> checking for LIBGUESTFS... no
> configure: error: Package requirements (libguestfs >= 1.41.5) were not met:
> 
> Package dependency requirement 'libguestfs >= 1.41.5' could not be satisfied.
> Package 'libguestfs' has version '1.40.2', required version is '>= 1.41.5'

You can actually use 1.40 just fine.  There is a single test which
requires 1.41 (I forget now which one), and we should probably change
that test to make it conditional.  Just modify m4/guestfs-libraries.m4:

-PKG_CHECK_MODULES([LIBGUESTFS], [libguestfs >= 1.41.5])
+PKG_CHECK_MODULES([LIBGUESTFS], [libguestfs >= 1.40])

and rerun ‘autoreconf -i’.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html




More information about the Libguestfs mailing list