From 6feaf1d472baadfc7759ea49c81df0437e079f9c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Mon, 14 Apr 2025 23:07:18 +0200 Subject: [PATCH] meson: use .to_string() in configuration data check MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Newer versions of meson validate the types of comparisions. Explicitly convert to strings. Fixes the following error: meson.build:1875:70: ERROR: The `==` operator of bool does not accept objects of type int (1) Signed-off-by: Thomas Weißschuh --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 928eda2da..4b2cf1303 100644 --- a/meson.build +++ b/meson.build @@ -1873,7 +1873,7 @@ exe = executable( link_with : [lib_common, lib_smartcols], # requires systemd v240 or newer - dependencies : [conf.get('HAVE_DECL_SD_DEVICE_NEW_FROM_SYSPATH') == 1 ? lib_systemd : [] ], + dependencies : [conf.get('HAVE_DECL_SD_DEVICE_NEW_FROM_SYSPATH').to_string() == '1' ? lib_systemd : [] ], install_dir : sbindir, install : opt, build_by_default : opt) -- 2.47.2