diff options
author | Christian Brauner <christian.brauner@ubuntu.com> | 2021-11-05 14:29:53 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2021-11-08 13:06:48 +0100 |
commit | a6d1760024d0884efb343e1c739f303619f7c8b9 (patch) | |
tree | c8dbba36a1918327990537b23aefe1b54941fd12 /src/journal-remote/meson.build | |
parent | test: refactor test-procfs-util for clarity and skip test on perm failure (diff) | |
download | systemd-a6d1760024d0884efb343e1c739f303619f7c8b9.tar.xz systemd-a6d1760024d0884efb343e1c739f303619f7c8b9.zip |
build: preserve correct mode when generating files via jinja2
When using "capture : true" in custom_target()s the mode of the source
file is not preserved when the generated file is not installed and so
needs to be tweaked manually. Switch from output capture to creating the
target file and copy the permissions from the input file.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Diffstat (limited to 'src/journal-remote/meson.build')
-rw-r--r-- | src/journal-remote/meson.build | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/journal-remote/meson.build b/src/journal-remote/meson.build index 5670d55ec5..54b314552b 100644 --- a/src/journal-remote/meson.build +++ b/src/journal-remote/meson.build @@ -54,8 +54,7 @@ foreach tuple : in_files file, input : file + '.in', output: file, - command : [meson_render_jinja2, config_h, '@INPUT@'], - capture : true, + command : [meson_render_jinja2, config_h, '@INPUT@', '@OUTPUT@'], install : tuple[1], install_dir : pkgsysconfdir) endforeach |