[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/04: gnu: freeipmi: Fix cross-compiling.
From: |
guix-commits |
Subject: |
03/04: gnu: freeipmi: Fix cross-compiling. |
Date: |
Mon, 28 Mar 2022 14:35:53 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit bf0389a3806509650b7a8425973ac5aac722901a
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Mar 28 19:23:25 2022 +0300
gnu: freeipmi: Fix cross-compiling.
* gnu/packages/freeipmi.scm (freeipmi)[arguments]: Assume support for
/dev/random and /dev/urandom when cross compiling.
---
gnu/packages/freeipmi.scm | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/freeipmi.scm b/gnu/packages/freeipmi.scm
index 75019dbdcc..762cfcee78 100644
--- a/gnu/packages/freeipmi.scm
+++ b/gnu/packages/freeipmi.scm
@@ -1,6 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org>
-;;; Copyright © 2015, 2016, 2017, 2020, 2021 Efraim Flashner
<efraim@flashner.co.il>
+;;; Copyright © 2015, 2016, 2017, 2020, 2021, 2022 Efraim Flashner
<efraim@flashner.co.il>
;;; Copyright © 2019–2021 Tobias Geerinckx-Rice <me@tobias.gr>
;;;
;;; This file is part of GNU Guix.
@@ -38,7 +38,13 @@
"0w8af1i57szmxl9vfifwwyal7xh8aixz2l9487wvy6yckqk6m92a"))))
(build-system gnu-build-system)
(arguments
- '(#:configure-flags '("--disable-static")))
+ `(#:configure-flags '("--disable-static"
+ ,@(if (%current-target-system)
+ ;; We cannot check for these devices
+ ;; when cross compiling.
+ `("ac_cv_file__dev_random=yes"
+ "ac_cv_file__dev_urandom=yes")
+ '()))))
(inputs
(list libgcrypt))
(home-page "https://www.gnu.org/software/freeipmi/")