From: Andrea Bolognani Date: Wed, 26 May 2021 15:33:08 +0000 (+0200) Subject: meson: Fix firewalld check X-Git-Tag: v7.5.0-rc1~235 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6b7897ce85b1ee42ca365200ab253a1717c5384;p=thirdparty%2Flibvirt.git meson: Fix firewalld check 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 Reviewed-by: Pavel Hrdina --- diff --git a/meson.build b/meson.build index f1a43fea90..a8139d5afd 100644 --- a/meson.build +++ b/meson.build @@ -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