]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: Define qemu_moddir correctly
authorAndrea Bolognani <abologna@redhat.com>
Mon, 15 Nov 2021 17:16:40 +0000 (18:16 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 18 Nov 2021 14:48:49 +0000 (15:48 +0100)
We can't hardcode /usr here, because the user might have
configured whatever arbitrary prefix.

Everything appeared to be okay because when joining paths
Meson will drop any component that precedes an absolute path
and libdir happens to be absolute, but we should still do
things correctly instead of relying on this.

Fixes: 2ad009eadde27491ff4248f481560953776b2a87
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
meson.build

index dd46572365ec2441446809983a3645bc5fa13a8d..e1e462186889986853928b2b0544ec02bf950005 100644 (file)
@@ -1681,7 +1681,7 @@ if not get_option('driver_qemu').disabled()
 
     qemu_moddir = get_option('qemu_moddir')
     if qemu_moddir == ''
-      qemu_moddir = '/usr' / libdir / 'qemu'
+      qemu_moddir = libdir / 'qemu'
     endif
     conf.set_quoted('QEMU_MODDIR', qemu_moddir)