From 13cb37f179e44b81dacb7a04a8ee59c27efa2bce Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Wed, 20 Aug 2025 10:58:39 -0700 Subject: [PATCH] meson: don't build xselinux if xace is disabled xselinux requires xace to build Signed-off-by: Alan Coopersmith (cherry picked from commit 7b15321b3b0e40244af1488f4ee1cd4453a78bc8) Part-of: --- meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 5add847b1..b96d3b1be 100644 --- a/meson.build +++ b/meson.build @@ -585,7 +585,7 @@ if get_option('xselinux') != 'false' if get_option('xselinux') == 'true' build_xselinux = true else - build_xselinux = dep_selinux.found() and dep_audit.found() + build_xselinux = dep_selinux.found() and dep_audit.found() and build_xace endif if build_xselinux @@ -593,6 +593,10 @@ if get_option('xselinux') != 'false' common_dep += dep_audit endif endif +if build_xselinux and not build_xace + error('cannot build SELinux extension without X-ACE') +endif + socket_dep = [] if host_machine.system() == 'windows'