[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: gnu: isc-dhcp: Fix cross-compilation.
From: |
guix-commits |
Subject: |
01/01: gnu: isc-dhcp: Fix cross-compilation. |
Date: |
Thu, 19 Dec 2019 09:16:14 -0500 (EST) |
mothacehe pushed a commit to branch core-updates
in repository guix.
commit 45e7599ce87c184e934a23df73e7738c1ce17666
Author: Mathieu Othacehe <address@hidden>
Date: Thu Dec 19 15:00:22 2019 +0100
gnu: isc-dhcp: Fix cross-compilation.
* gnu/packages/admin.scm (isc-dhcp)[arguments]: Add a configure flag to
specify randomdev path, which is needed when cross-compiling. Also add a
fix-bind-cross-compilation phase.
---
gnu/packages/admin.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index c2be85e..33d3783 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -29,6 +29,7 @@
;;; Copyright © 2019 Hartmut Goebel <address@hidden>
;;; Copyright © 2019 Alex Griffin <address@hidden>
;;; Copyright © 2019 Guillaume Le Vaillant <address@hidden>
+;;; Copyright © 2019 Mathieu Othacehe <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -776,6 +777,7 @@ connection alive.")
(build-system gnu-build-system)
(arguments
`(#:parallel-build? #f
+ #:configure-flags '("--with-randomdev=/dev/random")
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'replace-bundled-bind
@@ -807,6 +809,12 @@ connection alive.")
(("^RELEASEVER=.*")
(format #f "RELEASEVER=~a\n" ,bind-release-version)))
#t))
+ (add-before 'configure 'fix-bind-cross-compilation
+ (lambda _
+ (substitute* "configure"
+ (("--host=\\$host")
+ "--host=$host_alias"))
+ #t))
(add-after 'configure 'post-configure
(lambda* (#:key outputs #:allow-other-keys)
;; Point to the right client script, which will be