guix-patches
[Top][All Lists]
Advanced

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

[bug#68263] [PATCH 2/2] gnu: fwupd: Depend on libsmbios only on supporte


From: Simon South
Subject: [bug#68263] [PATCH 2/2] gnu: fwupd: Depend on libsmbios only on supported systems.
Date: Fri, 5 Jan 2024 09:50:41 -0500

* gnu/packages/firmware.scm (fwupd)[inputs]: Add libsmbios conditionally.

Change-Id: Id34135b180f5ee6e7abd2fd4eb10e0d3c6308e06
---
 gnu/packages/firmware.scm | 34 +++++++++++++++++++---------------
 1 file changed, 19 insertions(+), 15 deletions(-)

diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm
index 5cebf515bf..c3e6d20987 100644
--- a/gnu/packages/firmware.scm
+++ b/gnu/packages/firmware.scm
@@ -283,21 +283,25 @@ (define-public fwupd
                          `(,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 (%current-target-system)
+                                                (%current-system)))
+                        (list libsmbios)
+                        '())))
     ;; In Requires of fwupd*.pc.
     (propagated-inputs (list curl
                              gcab
-- 
2.41.0






reply via email to

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