]> git.ipfire.org Git - thirdparty/systemd.git/commit
meson: improve precision of pefile checks 41959/head
authorAlyssa Ross <hi@alyssa.is>
Wed, 6 May 2026 13:31:59 +0000 (15:31 +0200)
committerAlyssa Ross <hi@alyssa.is>
Thu, 7 May 2026 07:43:56 +0000 (09:43 +0200)
commit106bb47d2d193e546821da593d1c446ea53414c3
tree3f5b03407941d7df38b648a2087fb30579488d21
parentf91e0730560acd314e03aa4d38370345b5040017
meson: improve precision of pefile checks

Previously, if boot was enabled but ukify wasn't, the check for the pefile
Python module would be omitted.  The check in want_ukify was incorrect — with
Meson it's only possible to check for Python dependencies available for the
build Python.  When the build Python is not the same as the Python that will be
used to run the installed ukify, this would incorrectly require ukify to be
available to the build Python.  The most common, but not the only case where
this would happen would be when cross compiling.  If bootloader and tests are
disabled, there's no need for the build Python to have pefile even when
installing ukify.  Therefore, check in the more specific case of ukify's tests
being enabled, in which case pefile is required at build time.
meson.build