From a729a92e1035dcdd13b46331c773f7b06c5b1b18 Mon Sep 17 00:00:00 2001 From: Yegor Yefremov Date: Tue, 30 Jan 2024 12:23:39 +0100 Subject: [PATCH] build: fix fs.copyfile usage for meson versions 0.64/0.64.1 Though this function was introduced in 0.64, its usage with install_dir was broken till meson version 1.0.0. Hence, bump the minimal required meson version for the fs.copyfile() routine. See the following meson commit for details: https://github.com/mesonbuild/meson/commit/100456de0761ee949e2277c97746cb8571b6ba39 --- data/meson.build | 2 +- meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/meson.build b/data/meson.build index 1d0c9aeb..89bf68f4 100644 --- a/data/meson.build +++ b/data/meson.build @@ -11,7 +11,7 @@ service_conf = { } # DBus Service file -if meson_version.version_compare('>=0.64') +if meson_version.version_compare('>=1.0.0') fs.copyfile( 'org.freedesktop.ModemManager1.conf.@0@polkit'.format(enable_polkit ? '' : 'no'), '@BASENAME@', diff --git a/meson.build b/meson.build index 5789dd68..6e7f00d9 100644 --- a/meson.build +++ b/meson.build @@ -14,7 +14,7 @@ project( ) meson_version = meson.version() -if meson_version.version_compare('>=0.64') +if meson_version.version_compare('>=1.0.0') fs = import('fs') endif