954c63
From f45c99be9258f2d97c1f19b93ae8f5e73f4cb486 Mon Sep 17 00:00:00 2001
954c63
Message-Id: <f45c99be9258f2d97c1f19b93ae8f5e73f4cb486@dist-git>
954c63
From: Jim Fehlig <jfehlig@suse.com>
954c63
Date: Mon, 10 Jan 2022 11:42:58 -0700
954c63
Subject: [PATCH] build: Only install libvirt-guests when building libvirtd
954c63
954c63
libvirt-guests was already moved to the libvirt daemon package in commit
954c63
d800c50349. It only needs to be installed when building libvirtd.
954c63
954c63
Signed-off-by: Jim Fehlig <jfehlig@suse.com>
954c63
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
954c63
(cherry picked from commit 3be5ba11a2c6fcb2dfdffa03ab4f847113f36b85)
954c63
954c63
https://bugzilla.redhat.com/show_bug.cgi?id=2042529
954c63
---
954c63
 tools/meson.build | 38 ++++++++++++++++++++------------------
954c63
 1 file changed, 20 insertions(+), 18 deletions(-)
954c63
954c63
diff --git a/tools/meson.build b/tools/meson.build
954c63
index 22fa3604ba..2d0aecb90b 100644
954c63
--- a/tools/meson.build
954c63
+++ b/tools/meson.build
954c63
@@ -297,29 +297,31 @@ if conf.has('WITH_SANLOCK')
954c63
   )
954c63
 endif
954c63
 
954c63
-configure_file(
954c63
-  input: 'libvirt-guests.sh.in',
954c63
-  output: '@BASENAME@',
954c63
-  configuration: tools_conf,
954c63
-  install: true,
954c63
-  install_dir: libexecdir,
954c63
-  install_mode: 'rwxrwxr-x',
954c63
-)
954c63
-
954c63
-if init_script == 'systemd'
954c63
-  install_data(
954c63
-    'libvirt-guests.sysconf',
954c63
-    install_dir: sysconfdir / 'sysconfig',
954c63
-    rename: 'libvirt-guests',
954c63
-  )
954c63
-
954c63
+if conf.has('WITH_LIBVIRTD')
954c63
   configure_file(
954c63
-    input: 'libvirt-guests.service.in',
954c63
+    input: 'libvirt-guests.sh.in',
954c63
     output: '@BASENAME@',
954c63
     configuration: tools_conf,
954c63
     install: true,
954c63
-    install_dir: prefix / 'lib' / 'systemd' / 'system',
954c63
+    install_dir: libexecdir,
954c63
+    install_mode: 'rwxrwxr-x',
954c63
   )
954c63
+
954c63
+  if init_script == 'systemd'
954c63
+    install_data(
954c63
+      'libvirt-guests.sysconf',
954c63
+      install_dir: sysconfdir / 'sysconfig',
954c63
+      rename: 'libvirt-guests',
954c63
+    )
954c63
+
954c63
+    configure_file(
954c63
+      input: 'libvirt-guests.service.in',
954c63
+      output: '@BASENAME@',
954c63
+      configuration: tools_conf,
954c63
+      install: true,
954c63
+      install_dir: prefix / 'lib' / 'systemd' / 'system',
954c63
+    )
954c63
+  endif
954c63
 endif
954c63
 
954c63
 if bash_completion_dep.found()
954c63
-- 
954c63
2.35.0
954c63