systemdUkify: fix

This fix was necessary because systemd now requires the pefile module to
be present in the buildtime python installation.

However, this python is never used in the runtime of ukify. Thus this
change is only necessary to trick systemd's meson to do the right thing.

It doesn't seem like there is a right thing to do in meson for this so
it is unlikely that systemd would accept a patch for this.
This commit is contained in:
nikstur
2026-05-06 14:22:12 +02:00
parent c23fa0ff46
commit 74ebb9c069
+5 -1
View File
@@ -316,7 +316,11 @@ stdenv.mkDerivation (finalAttrs: {
jinja2
]
++ lib.optional withEfi ps.pyelftools
++ lib.optional (withUkify && finalAttrs.finalPackage.doCheck) ps.pefile
# pefile is only required to trigger a check in meson to actually build
# ukify. This module should never appear in the runtime closure of ukify.
# Instead the pefile from buildInputs should be used.
# Remove this when it's fixed upstream: https://github.com/systemd/systemd/pull/41959
++ lib.optional withUkify ps.pefile
))
]
++ lib.optionals withLibBPF [