[Libguestfs] Building from source with custom gperf location

Richard W.M. Jones
Sun, 02 May 2021 08:28:42 -0000

On Sun, May 02, 2021 at 12:14:19AM +0100, Lewis Gaul
wrote:
> LIBRARY_PATH=~/.local/lib64 doesn't seem to work either unfortunately
(still
> unable to find libmagic). Any other ideas (even if I need to edit a file
and
> rerun autoconf or something)?
...
>     Unfortunately m4/guestfs-libraries.m4 is using AC_CHECK_LIB instead of
>     PKG_CHECK_MODULES, so you cannot just set PKG_CONFIG_* environment
>     variables to pick up the right libmagic.pc (which is a bug in
>     libguestfs).

Take a look at m4/guestfs-libraries.m4 and change the AC_CHECK_LIB to
PKG_CHECK_MODULES, following examples of other package tests in that
file, then re-run "autoconf".

Rich.

--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.