summaryrefslogtreecommitdiff
path: root/sysctl.d
diff options
context:
space:
mode:
authorChristian Brauner <christian.brauner@ubuntu.com>2021-11-05 14:29:53 +0100
committerLuca Boccassi <luca.boccassi@gmail.com>2021-11-08 12:06:48 +0000
commita6d1760024d0884efb343e1c739f303619f7c8b9 (patch)
treec8dbba36a1918327990537b23aefe1b54941fd12 /sysctl.d
parentbf47f71c1cd36c2b0eb5aeac4d8bdf58c67f2b33 (diff)
downloadsystemd-a6d1760024d0884efb343e1c739f303619f7c8b9.tar.gz
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 'sysctl.d')
-rw-r--r--sysctl.d/meson.build3
1 files changed, 1 insertions, 2 deletions
diff --git a/sysctl.d/meson.build b/sysctl.d/meson.build
index b058f9364b..1745a13bfb 100644
--- a/sysctl.d/meson.build
+++ b/sysctl.d/meson.build
@@ -16,8 +16,7 @@ custom_target(
'50-coredump.conf',
input : '50-coredump.conf.in',
output : '50-coredump.conf',
- command : [meson_render_jinja2, config_h, '@INPUT@'],
- capture : true,
+ command : [meson_render_jinja2, config_h, '@INPUT@', '@OUTPUT@'],
install : conf.get('ENABLE_COREDUMP') == 1,
install_dir : sysctldir)