From a6d1760024d0884efb343e1c739f303619f7c8b9 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Fri, 5 Nov 2021 14:29:53 +0100 Subject: 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 --- src/udev/meson.build | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/udev') diff --git a/src/udev/meson.build b/src/udev/meson.build index 3423d6de94..0b692df3d8 100644 --- a/src/udev/meson.build +++ b/src/udev/meson.build @@ -162,8 +162,7 @@ custom_target( 'udev.pc', input : 'udev.pc.in', output : 'udev.pc', - command : [meson_render_jinja2, config_h, '@INPUT@'], - capture : true, + command : [meson_render_jinja2, config_h, '@INPUT@', '@OUTPUT@'], install : pkgconfigdatadir != 'no', install_dir : pkgconfigdatadir) -- cgit v1.2.3