]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: Enable ZFS storage backend even more often
authorAndrea Bolognani <abologna@redhat.com>
Wed, 3 Nov 2021 09:57:41 +0000 (10:57 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 4 Nov 2021 18:01:55 +0000 (19:01 +0100)
Commit 73a2ff36163e already improved the situation a lot. This
pushes things even further.

If the user or, more likely, the distro packager explicitly
asked for ZFS support to be enabled, then we should comply with
that request regardless of whether the necessary programs are
available at build time.

This is particularly important in the context of Debian, where
ZFS cannot be a build dependency of libvirt due to licensing
issues but it can still be an optional runtime dependency.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Tim Wiederhake <twiederh@redhat.com>
meson.build

index 6f5d480c1ef92bfae80fd5a5e1025842843b5b8d..60bf2a1d72681a494ed7e016012858a78e9b444d 100644 (file)
@@ -1978,7 +1978,7 @@ if conf.has('WITH_LIBVIRTD')
     foreach name : [ 'zfs', 'zpool' ]
       set_variable(
         '@0@_prog'.format(name),
-        find_program(name, required: get_option('storage_zfs'), dirs: libvirt_sbin_path)
+        find_program(name, required: false, dirs: libvirt_sbin_path)
       )
     endforeach