1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: fwupd: Install fwupd-efi into fwupd's prefix.

This way, fwupd finds the EFI executable that it needs when updating firmware.

* gnu/packages/firmware.scm (fwupd) [arguments] <phases>:
  Add 'install-fwupd.efi phase.

Change-Id: If015408c30b7b6dccbf94d5ff691535393c182f4
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Timo Wilken
2025-05-17 22:05:01 +02:00
committed by Ludovic Courtès
parent 865208db3d
commit 6bc94758ba

View File

@@ -317,7 +317,17 @@ used in the process of installing and updating firmware.")
(substitute* (find-files (string-append #$output "/etc")
"\\.conf$")
(("Enabled=true")
"Enabled=false")))))))
"Enabled=false"))))
(add-after 'glib-or-gtk-wrap 'install-fwupd.efi
;; fwupd looks for its .efi file within its own prefix, so link
;; the directory containing the arch-specific executable here.
;; If we install a symlink to the efi directory before
;; 'glib-or-gtk-wrap, then the wrapping procedure mistakes the
;; directory symlink for an executable and tries to wrap it.
(lambda _
(symlink (string-append #$(this-package-input "fwupd-efi")
"/libexec/fwupd/efi")
(string-append #$output "/libexec/fwupd/efi")))))))
(native-inputs (list gobject-introspection
python-pygobject
python-pillow
@@ -345,6 +355,7 @@ used in the process of installing and updating firmware.")
efivar
pango
protobuf-c
fwupd-efi
mingw-w64-tools
gnu-efi)
(if (supported-package? libsmbios