mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-08 21:17:47 +03:00
meson: use conf configuration_data object to generate test-sysusers.sh
I wanted to use jinja2 templating here too, but it's hard to get right: custom_target() strips the executable bit by default (unlike configure_file apparently). custom_target() has install_mode setting, but it was only added in meson-0.47, so it can't be used while we support 0.46. And without the executable bit the test is not invoked properly. For example, "root-unittests" in the debian package calls test-* after installation, so the executable bit there is necessary. It would be possible to adjust the file mode after the fact, but it would make things more complicated. So let's use the native meson substitutions here. We don't need anything more fancy.
This commit is contained in:
parent
8feaea5e3d
commit
097c072d83
@ -65,7 +65,7 @@ hwdb_test_sh = find_program('hwdb-test.sh')
|
||||
test_sysusers_sh = configure_file(
|
||||
input : 'test-sysusers.sh.in',
|
||||
output : 'test-sysusers.sh',
|
||||
configuration : substs)
|
||||
configuration : conf)
|
||||
if install_tests and conf.get('ENABLE_SYSUSERS') == 1
|
||||
install_data(test_sysusers_sh,
|
||||
install_dir : testsdir)
|
||||
|
Loading…
Reference in New Issue
Block a user