]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: Fix firewalld check
authorAndrea Bolognani <abologna@redhat.com>
Wed, 26 May 2021 15:33:08 +0000 (17:33 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 1 Jun 2021 12:32:02 +0000 (14:32 +0200)
firewalld is Linux-only, so it should be disabled by default
everywhere else and attempts to explicitly enable firewalld
support on non-Linux targets should result in an error.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
meson.build

index f1a43fea90c91de031ae3fb724cc718c80f41a74..a8139d5afd5fe032b0062fbcb51957d418b2ec88 100644 (file)
@@ -1342,8 +1342,11 @@ endif
 if not get_option('firewalld').disabled()
   firewalld_enable = true
 
-  if host_machine.system() == 'freebsd'
+  if host_machine.system() != 'linux'
     firewalld_enable = false
+    if get_option('firewalld').enabled()
+      error('firewalld support can only be enabled on Linux')
+    endif
   endif
 
   if firewalld_enable