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