gnu: isc-dhcp: Fix cross-compiling to riscv64-linux.

* gnu/packages/admin.scm (isc-dhcp)[arugments]: Split custom
'update-config-scripts phase to substitute one set of config scripts
earlier in the build process.
This commit is contained in:
Efraim Flashner 2022-09-06 15:36:49 +03:00
parent be810d414f
commit e7532d281b
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351

View File

@ -1382,14 +1382,16 @@ connection alive.")
;; build system uses the built 'gen' executable.
(setenv "BUILD_CC" "gcc"))))
'())
(add-before 'build 'update-config-scripts
(add-before 'configure '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"))
'("config.guess" "config.sub"))))
(add-before 'build 'update-config-scripts-for-bind
(lambda* (#:key native-inputs inputs #:allow-other-keys)
(for-each (lambda (file)
(install-file
(search-input-file