diff options
Diffstat (limited to 'gnu/packages/firmware.scm')
-rw-r--r-- | gnu/packages/firmware.scm | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm index 5e89edc621..715b9ab132 100644 --- a/gnu/packages/firmware.scm +++ b/gnu/packages/firmware.scm @@ -250,7 +250,19 @@ driver.") (find-files ".")) (substitute* "src/fu-self-test.c" (("/bin/sh") - (which "sh"))))) + (which "sh"))) + ;; fwupdmgr checks for missing polkit actions, prints + ;; error message and exits if the polkit actions are + ;; not found. + ;; The path points to gnu store path of polkit and + ;; there are no actions there. Point this to the actual + ;; location used on Guix System. This will still fail on + ;; foreign distros as /usr/share/polkit-1 is used mostly. + (substitute* "src/fu-util.c" + (("g_autofree gchar \\*directory = NULL;") + "") + (("directory = fu_path_from_kind\\(FU_PATH_KIND_POLKIT_ACTIONS\\)") + "const gchar* directory = \"/etc/polkit-1/actions\"")))) ;; These two files are zipped by Python, so need a newer timestamp. (add-after 'unpack 'newer-timestamps-for-python-zip (lambda _ |