summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2022-03-28 19:23:25 +0300
committerEfraim Flashner <efraim@flashner.co.il>2022-03-28 21:34:08 +0300
commitbf0389a3806509650b7a8425973ac5aac722901a (patch)
tree09da744a16bab8157b77bcb2ce4bcdcc1c4bf08a /gnu/packages
parentf24ddb1e90909e12b4a72407fa2a325e452b13d7 (diff)
downloadguix-bf0389a3806509650b7a8425973ac5aac722901a.tar.gz
gnu: freeipmi: Fix cross-compiling.
* gnu/packages/freeipmi.scm (freeipmi)[arguments]: Assume support for
/dev/random and /dev/urandom when cross compiling.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/freeipmi.scm10
1 files 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/")