]> git.proxmox.com Git - mirror_qemu.git/commitdiff
meson: vhost-user-gpu/virtiofsd: use absolute path
authorMarc Hartmayer <mhartmay@linux.ibm.com>
Tue, 3 Nov 2020 11:23:33 +0000 (12:23 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 3 Nov 2020 14:42:53 +0000 (09:42 -0500)
The option `libexecdir` is relative to `prefix` (see
https://mesonbuild.com/Builtin-options.html), so we have to be aware
of this when creating 50-qemu-gpu.json and
50-qemu-virtiofsd.json. Otherwise, tools like libvirt will not be able
to find the executable.

Fixes: 16bf7a3326d8 ("configure: move directory options from config-host.mak to meson")
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Message-Id: <20201103112333.24734-1-mhartmay@linux.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
contrib/vhost-user-gpu/meson.build
tools/virtiofsd/meson.build

index 37ecca13cafb239f659f33ff0956f961e01e9867..c487ca72c1ff325ca476b93c519621d6ba5b1fd9 100644 (file)
@@ -9,6 +9,6 @@ if 'CONFIG_TOOLS' in config_host and 'CONFIG_VIRGL' in config_host \
 
   configure_file(input: '50-qemu-gpu.json.in',
                  output: '50-qemu-gpu.json',
-                 configuration: { 'libexecdir' : get_option('libexecdir') },
+                 configuration: { 'libexecdir' : get_option('prefix') / get_option('libexecdir') },
                  install_dir: qemu_datadir / 'vhost-user')
 endif
index e1a4dc98d9ec311478428941cac0180e7518bcb1..17edecf55c0aee51b2b3327fd62389ea15df2644 100644 (file)
@@ -15,5 +15,5 @@ executable('virtiofsd', files(
 
 configure_file(input: '50-qemu-virtiofsd.json.in',
                output: '50-qemu-virtiofsd.json',
-               configuration: { 'libexecdir' : get_option('libexecdir') },
+               configuration: { 'libexecdir' : get_option('prefix') / get_option('libexecdir') },
                install_dir: qemu_datadir / 'vhost-user')