[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/03: gnu: isc-dhcp: Fix building on riscv64-linux.
From: |
guix-commits |
Subject: |
02/03: gnu: isc-dhcp: Fix building on riscv64-linux. |
Date: |
Mon, 7 Feb 2022 04:40:38 -0500 (EST) |
efraim pushed a commit to branch master
in repository guix.
commit 3344567bb14b8445495e402f0043dcf23f588242
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Thu Sep 2 15:20:37 2021 +0300
gnu: isc-dhcp: Fix building on riscv64-linux.
* gnu/packages/admin.scm (isc-dhcp)[arguments]: Add phase to update
configure scripts.
[inputs]: Add config.
---
gnu/packages/admin.scm | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 17dc0f1315..f2ad66ea5b 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -1220,6 +1220,21 @@ connection alive.")
;; build system uses the built 'gen' executable.
(setenv "BUILD_CC" "gcc"))))
'())
+ (add-before 'build 'update-config-scripts
+ (lambda* (#:key native-inputs inputs #:allow-other-keys)
+ (for-each (lambda (file)
+ (install-file
+ (search-input-file
+ (or native-inputs inputs)
+ (string-append "/bin/" file)) "."))
+ '("config.guess" "config.sub"))
+ (for-each (lambda (file)
+ (install-file
+ (search-input-file
+ (or native-inputs inputs)
+ (string-append "/bin/" file))
+ (string-append "bind/bind-" ,bind-version)))
+ '("config.guess" "config.sub"))))
(add-after 'configure 'post-configure
(lambda* (#:key outputs #:allow-other-keys)
;; Point to the right client script, which will be
@@ -1302,6 +1317,7 @@ connection alive.")
(base32
"108nh7hha4r0lb5hf1fn7lqaascvhsrghpz6afm5lf9vf2vgqly9"))))
+ ("config" ,config)
("coreutils*" ,coreutils)
("sed*" ,sed)))