]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: use .to_string() in configuration data check
authorThomas Weißschuh <thomas@t-8ch.de>
Mon, 14 Apr 2025 21:07:18 +0000 (23:07 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Mon, 14 Apr 2025 21:47:42 +0000 (23:47 +0200)
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 <thomas@t-8ch.de>
meson.build

index 928eda2da8c4ced10010338f36a209a5b5d1b07f..4b2cf130311ce90cda7d71450e6d291e57122113 100644 (file)
@@ -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)