]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: add workaround for old meson
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 17 May 2021 10:42:34 +0000 (12:42 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 19 May 2021 01:25:26 +0000 (10:25 +0900)
Recent meson versions include the directory name in the target name,
so there is no conflict for files with the same name in different
directories. But at least with meson-0.49.2 in buster we have conflict
with sysusers.d/systemd.conf.

tmpfiles.d/meson.build

index d449034dba0f76a3f6c80f30879bdc79e5849aff..a8aaacaf29e9f67d08429acb5b1029dd39e86533 100644 (file)
@@ -33,7 +33,8 @@ in_files = ['etc.conf',
 
 foreach file : in_files
         custom_target(
-                file,
+                # XXX: workaround for old meson. Drop when upgrading.
+                'tmpfiles+' + file,
                 input : file + '.in',
                 output: file,
                 command : [meson_render_jinja2, config_h, '@INPUT@'],