guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/12: gnu: fwupd: Depend on libsmbios only on supported systems.


From: guix-commits
Subject: 02/12: gnu: fwupd: Depend on libsmbios only on supported systems.
Date: Fri, 12 Jan 2024 11:35:38 -0500 (EST)

mothacehe pushed a commit to branch master
in repository guix.

commit 97296f82390f400681886f6a8c758bb5e9359249
Author: Simon South <simon@simonsouth.net>
AuthorDate: Wed Jan 10 12:16:55 2024 -0500

    gnu: fwupd: Depend on libsmbios only on supported systems.
    
    * gnu/packages/firmware.scm (fwupd)[inputs]: Add libsmbios conditionally.
    
    Change-Id: Id34135b180f5ee6e7abd2fd4eb10e0d3c6308e06
    Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
---
 gnu/packages/firmware.scm | 37 ++++++++++++++++++++++---------------
 1 file changed, 22 insertions(+), 15 deletions(-)

diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm
index e691bf33da..75294fadf4 100644
--- a/gnu/packages/firmware.scm
+++ b/gnu/packages/firmware.scm
@@ -31,6 +31,7 @@
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix memoization)
   #:use-module (guix packages)
+  #:use-module (guix platform)
   #:use-module (guix download)
   #:use-module (guix gexp)
   #:use-module (guix utils)
@@ -283,21 +284,27 @@ driver.")
                          `(,glib "bin")
                          help2man
                          gettext-minimal))
-    (inputs (list bash-completion
-                  libgudev
-                  libxmlb
-                  sqlite
-                  polkit
-                  eudev
-                  libelf
-                  tpm2-tss
-                  cairo
-                  efivar
-                  pango
-                  protobuf-c
-                  mingw-w64-tools
-                  libsmbios
-                  gnu-efi))
+    (inputs (append
+             (list bash-completion
+                   libgudev
+                   libxmlb
+                   sqlite
+                   polkit
+                   eudev
+                   libelf
+                   tpm2-tss
+                   cairo
+                   efivar
+                   pango
+                   protobuf-c
+                   mingw-w64-tools
+                   gnu-efi)
+             (if (supported-package? libsmbios
+                                     (or (and=> (%current-target-system)
+                                                platform-target->system)
+                                         (%current-system)))
+                 (list libsmbios)
+                 '())))
     ;; In Requires of fwupd*.pc.
     (propagated-inputs (list curl
                              gcab



reply via email to

[Prev in Thread] Current Thread [Next in Thread]