From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 14 08:06:25 2022 Received: (at submit) by debbugs.gnu.org; 14 Dec 2022 13:06:25 +0000 Received: from localhost ([127.0.0.1]:39144 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5RSq-0000Fi-O7 for submit@debbugs.gnu.org; Wed, 14 Dec 2022 08:06:25 -0500 Received: from lists.gnu.org ([209.51.188.17]:57068) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5RSn-0000FZ-RR for submit@debbugs.gnu.org; Wed, 14 Dec 2022 08:06:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5RSk-0004qC-47 for bug-guix@gnu.org; Wed, 14 Dec 2022 08:06:21 -0500 Received: from mail1.fsfe.org ([2001:aa8:ffed:f5f3::151]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5RSh-0007yY-Pl for bug-guix@gnu.org; Wed, 14 Dec 2022 08:06:17 -0500 From: Jelle Licht DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fsfe.org; s=2021100501; t=1671023173; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=leLLeSVlViIwH77VysRqucXVY6aPP1UkVU4n0XuxF2c=; b=HVEfnuEfCZ6D9MvNgkVtbk7yLXB75PM73lEURGoaTXe0EPgI+XFe187AWrnU33h31uWk3g N9Th5ZonGl5tP1Hj/lT2B4xBhERUIZjmx+Q8hDcEGiXqLZHSKMk7+MlG7dimmDu31pPC3E mjBNy2eb3mDTt/Hjnyw8cL7tA/Ixl2w= To: bug-guix@gnu.org Subject: fwupd can not find required polkit actions Date: Wed, 14 Dec 2022 14:06:12 +0100 Message-ID: <87tu1ym8xn.fsf@fsfe.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2001:aa8:ffed:f5f3::151; envelope-from=jlicht@fsfe.org; helo=mail1.fsfe.org X-Spam_score_int: -70 X-Spam_score: -7.1 X-Spam_bar: ------- X-Spam_report: (-7.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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