GNU bug report logs - #60065
fwupd can not find required polkit actions

Previous Next

Package: guix;

Reported by: Jelle Licht <jlicht <at> fsfe.org>

Date: Wed, 14 Dec 2022 13:07:02 UTC

Severity: normal

To reply to this bug, email your comments to 60065 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#60065; Package guix. (Wed, 14 Dec 2022 13:07:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jelle Licht <jlicht <at> fsfe.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 14 Dec 2022 13:07:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jelle Licht <jlicht <at> fsfe.org>
To: bug-guix <at> gnu.org
Subject: fwupd can not find required polkit actions
Date: Wed, 14 Dec 2022 14:06:12 +0100
The package description for fwupd looks for polkit actions in the polkit
output. There are multiple ways to patch this.

--8<---------------cut here---------------start------------->8---
(add-before 'configure 'set-polkit-rules-dir
              ;; Locate actions in our {output,etc-dir}, not that of the polkit input.
              (lambda _
                (setenv "PKG_CONFIG_POLKIT_GOBJECT_1_ACTIONDIR"
                        ;; This makes it 'Just Work':
                        ;; (string-append #$output "/share/polkit-1/actions")
                        ;; This only makes it work when we extend polkit-service-type:
                        (string-append "/etc/polkit-1/actions")
                        )))
--8<---------------cut here---------------end--------------->8---

Example service definition: 
--8<---------------cut here---------------start------------->8---
(define (fwupd-shepherd-service package)
  "Return a Shepherd service to start fwupd."
  (list (shepherd-service
         (requirement '(dbus-system))
         (provision '(fwupd))
         (start #~(make-forkexec-constructor
                   (list #$(file-append package "/libexec/fwupd/fwupd"))))
         (stop #~(make-kill-destructor)))))

(define-public fwupd-service-type
  (service-type
   (name 'fwupd)
   (description "Setup the firmware update deamon.")
   (default-value fwupd)
   (extensions
    (list
     (service-extension profile-service-type list)
     (service-extension polkit-service-type list)
     (service-extension dbus-root-service-type list)
     (service-extension shepherd-root-service-type
                        fwupd-shepherd-service)))))
--8<---------------cut here---------------end--------------->8---

If we go for the first fix, the polkit-service-type extension is not
required. If we go for the /etc fix, the polkit-service-type extension
is required. I know too little about polkit to make an informed choice
here, so with some guidance I could work on a patch to close this issue.

- Jelle




This bug report was last modified 1 year and 132 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.