From bf0389a3806509650b7a8425973ac5aac722901a Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 28 Mar 2022 19:23:25 +0300 Subject: 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(-) (limited to 'gnu') 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 -;;; Copyright © 2015, 2016, 2017, 2020, 2021 Efraim Flashner +;;; Copyright © 2015, 2016, 2017, 2020, 2021, 2022 Efraim Flashner ;;; Copyright © 2019–2021 Tobias Geerinckx-Rice ;;; ;;; 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/") -- cgit v1.2.3