]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: bump required version to 0.59.0
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 15 May 2022 18:53:01 +0000 (03:53 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 16 Jun 2023 01:43:06 +0000 (10:43 +0900)
fs.stemp() and fs.name() can take File object since 0.59.0.

meson.build

index 76f57c0fb25dbc8fd563fc291de159fcb5e718af..b275718ee6bcae7af22d10f6571e25c6dc9718a3 100644 (file)
@@ -10,7 +10,7 @@ project('systemd', 'c',
                 'localstatedir=/var',
                 'warning_level=2',
         ],
-        meson_version : '>= 0.56.0',
+        meson_version : '>= 0.59.0',
        )
 
 libsystemd_version = '0.36.0'
@@ -4454,16 +4454,13 @@ foreach test : tests
                 versiondep,
         ]
 
-        # FIXME: Drop .format with meson >= 0.59.0
-        name = fs.stem('@0@'.format(sources[0]))
+        name = fs.stem(sources[0])
         if not name.endswith('.cc')
                 deps += [userspace]
         endif
         name = name.split('.')[0]
 
-        suite = fs.name(fs.parent('@0@'.format(sources[0])))
-        # FIXME: Use str.replace() with meson >= 0.58.0
-        suite = suite.split('sd-')[-1]
+        suite = fs.name(fs.parent(sources[0])).replace('sd-', '')
 
         if condition != '' and conf.get(condition) == 0
                 message('Not compiling @0@ because @1@ is not true'.format(name, condition))
@@ -4594,8 +4591,7 @@ foreach fuzzer : fuzzers
         endif
         sources += fuzz_generated_directives
 
-        # FIXME: Drop .format with meson >= 0.59.0
-        name = fs.stem('@0@'.format(sources[0]))
+        name = fs.stem(sources[0])
 
         exe = executable(
                 name,