From: Thomas Weißschuh Date: Mon, 14 Apr 2025 21:07:18 +0000 (+0200) Subject: meson: use .to_string() in configuration data check X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6feaf1d472baadfc7759ea49c81df0437e079f9c;p=thirdparty%2Futil-linux.git meson: use .to_string() in configuration data check 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 --- 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)