From 490c46e527fd6b1128d9d58d7f1a080379aca7b9 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 13 Dec 2019 13:41:42 +0100 Subject: [PATCH] meson/build: avoid using ternary as it breaks older meson See mesonbuild issue 5003. Oddly, this isn't inside a method call, while we use ternaries inside a method calls otherwise. Anyway, workaround this and avoid the crash. Fixes: c21c6bc0be2a ('build/meson: allow configuring default for main.auth-polkit setting') (cherry picked from commit 0e3400bef730b2c52d48a1d1d4de58e9bcf2dcaa) --- meson.build | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index bde86bae79..e7a6a70d62 100644 --- a/meson.build +++ b/meson.build @@ -940,7 +940,13 @@ output += ' session tracking: ' + ','.join(session_trackers) + '\n' output += ' suspend/resume: ' + suspend_resume + '\n' output += ' policykit: ' + enable_polkit.to_string() + ' (default: ' + config_auth_polkit_default + ')' if enable_polkit - output += ' (' + (enable_modify_system ? 'permissive' : 'restrictive') + ' modify.system)' + output += ' (' + if enable_modify_system + output += 'permissive' + else + output += 'restrictive' + endif + output += ' modify.system)' endif output += '\n' output += ' polkit agent: ' + enable_polkit_agent.to_string() + '\n'