render / rpms / libvirt

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