The current logic in meson.build assumes a fixed runtime path for
qemu-bridge-helper in case this binary is not available during build.
Since qemu-bridge-helper is not used during build it is not required to
have it installed at build time.

It is likely that both qemu and libvirt are built with the same
--libexecdir option. So use this as the expected location for
qemu-bridge-helper.

Signed-off-by: Olaf Hering <o...@aepfle.de>
---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index c2a2f306c1..6ca05e2f69 100644
--- a/meson.build
+++ b/meson.build
@@ -1653,7 +1653,7 @@ if not get_option('driver_qemu').disabled()
     if qemu_bridge_prog.found()
       qemu_bridge_path = qemu_bridge_prog.full_path()
     else
-      qemu_bridge_path = '/usr/libexec/qemu-bridge-helper'
+      qemu_bridge_path = libexecdir / 'qemu-bridge-helper'
     endif
     conf.set_quoted('QEMU_BRIDGE_HELPER', qemu_bridge_path)
 

Reply via email to