From fcfbbb9a32043947bc11b0dcecf0ded1518f0e3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=8D=C3=B1igo=20Huguet?= Date: Fri, 22 Sep 2023 10:12:58 +0200 Subject: [PATCH] Fix version error when building with an old meson version Addition of list and string is allowed but only from version 0.60 of meson. We claim to support building with meson 0.47, and there are distributions like Debian and CentOS Stream 8 that uses versions older than 0.60. Fix it by converting the offending string to a single item list. On newer versions, we get this warning only: Project targets '>= 0.47.2' but uses feature introduced in '0.60.0': list.. The right hand operand was not a list. Fixes: 984642e33f3d ('build: meson: fix some missing dependencies') https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1737 --- man/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/meson.build b/man/meson.build index d81155b2dd..7109937c95 100644 --- a/man/meson.build +++ b/man/meson.build @@ -118,7 +118,7 @@ if enable_introspection output, input: [template, man[2]], output: output, - command: xsltproc_options + '@INPUT@', + command: xsltproc_options + ['@INPUT@'], ) content_files += input.full_path()