]> git.ipfire.org Git - thirdparty/libvirt.git/commit
meson: Introduce qemu_datadir option
authorAndrea Bolognani <abologna@redhat.com>
Mon, 15 Nov 2021 17:13:56 +0000 (18:13 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 18 Nov 2021 14:48:59 +0000 (15:48 +0100)
commit794af15f24efd4496aef2afaeb6d30cb5a7b4e63
treee37372622557e4d29d5bad1154067c43e618ed4e
parentc46c2e15d1d1d30c5d1c9a62715d659a906a3d1e
meson: Introduce qemu_datadir option

There is no guarantee that QEMU and libvirt have been configured
with the same prefix.

In particular, Homebrew on macOS will pass a different, private
prefix for each package version and then use symlinks to make
the files for a specific version appear in the usual locations.

This works perfectly fine as long as one package doesn't try to
go poking around another package's data - which is exactly what
libvirt needs to do in order to read and parse the QEMU interop
data.

qemu_datadir can now be explicitly provided to make this and
other uncommon scenarios work. The common scenario, where QEMU
and libvirt both use the same prefix, is unaffected.

https://gitlab.com/libvirt/libvirt/-/issues/168

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
meson.build
meson_options.txt
src/qemu/qemu_interop_config.c