[libvirt PATCH 15/26] meson: Rewrite firewalld check

Andrea Bolognani abologna at redhat.com
Tue Jun 1 08:37:46 UTC 2021


This makes it possible to explicitly disable firewalld support
regardless of the platform that's been targeted.

Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
 meson.build | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/meson.build b/meson.build
index 9b5de6daa1..faccbd750c 100644
--- a/meson.build
+++ b/meson.build
@@ -1339,8 +1339,14 @@ if bash_completion_dep.found()
   endif
 endif
 
-if host_machine.system() != 'freebsd'
-  if not get_option('firewalld').disabled()
+if not get_option('firewalld').disabled()
+  firewalld_enable = true
+
+  if host_machine.system() == 'freebsd'
+    firewalld_enable = false
+  endif
+
+  if firewalld_enable
     conf.set('WITH_FIREWALLD', 1)
   endif
 endif
-- 
2.31.1




More information about the libvir-list mailing list