]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
docs/manpages/meson: fix sanlock detection
authorPavel Hrdina <phrdina@redhat.com>
Wed, 5 Aug 2020 08:04:12 +0000 (10:04 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Wed, 5 Aug 2020 11:32:59 +0000 (13:32 +0200)
In meson.build we define sanlock_dep only if it is available but in
addition we add 'WITH_SANLOCK' into conf. Use the presence of
'WITH_SANLOCK' in conf to figure out if we need to install
virt-sanlock-cleanup man page.

Reported-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
docs/manpages/meson.build

index 97133adf3ad6f0371e89ebe7bec42c242a292195..8295e9e5ea119483705bc683159b63d3478466ec 100644 (file)
@@ -17,7 +17,7 @@ docs_man_files = [
   { 'name': 'virt-xml-validate', 'section': '1', 'install': true },
 
   { 'name': 'libvirtd', 'section': '8', 'install': conf.has('WITH_LIBVIRTD') },
-  { 'name': 'virt-sanlock-cleanup', 'section': '8', 'install': sanlock_dep.found() },
+  { 'name': 'virt-sanlock-cleanup', 'section': '8', 'install': conf.has('WITH_SANLOCK') },
   { 'name': 'virtlockd', 'section': '8', 'install': conf.has('WITH_LIBVIRTD') },
   { 'name': 'virtlogd', 'section': '8', 'install': conf.has('WITH_LIBVIRTD') },
 ]