1
0
mirror of https://github.com/systemd/systemd synced 2024-07-08 20:15:55 +00:00

meson: check for pefile dependency before enabling ukify

ukify (and all the tests, including the autogenerated check-version-ukify)
does not work unless pefile is available, so track it as a dependency
in meson to avoid unit test failures later
This commit is contained in:
Luca Boccassi 2023-12-23 09:56:31 +01:00 committed by Yu Watanabe
parent 48e06208ce
commit 85915f312c

View File

@ -1811,7 +1811,9 @@ if have and efi_arch == 'x64' and cc.links('''
efi_cpu_family_alt = 'x86'
endif
want_ukify = get_option('ukify').require(python_39, error_message : 'Python >= 3.9 required').allowed()
pefile = pymod.find_installation('python3', required: false, modules : ['pefile'])
want_ukify = get_option('ukify').require(python_39 and (want_tests != 'true' or pefile.found()), error_message : 'Python >= 3.9 and pefile required').allowed()
conf.set10('ENABLE_UKIFY', want_ukify)
#####################################################################