gnu: isc-dhcp: Fix building on riscv64-linux.

* gnu/packages/admin.scm (isc-dhcp)[arguments]: Add phase to update
configure scripts.
[inputs]: Add config.
This commit is contained in:
Efraim Flashner 2021-09-02 15:20:37 +03:00
parent 10abb05190
commit 3344567bb1
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -1220,6 +1220,21 @@ (define-public isc-dhcp
;; 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 @@ (define-public isc-dhcp
(base32
"108nh7hha4r0lb5hf1fn7lqaascvhsrghpz6afm5lf9vf2vgqly9"))))
("config" ,config)
("coreutils*" ,coreutils)
("sed*" ,sed)))