gnu: isc-dhcp: Do not refer to canonical coreutils.

Make sure not to retain a reference to the canonical coreutils and sed
packages.  The Guix System closure size would otherwise be increased by
including references to both canonical and non-canonical version of those
packages.

* gnu/packages/admin.scm (isc-dhcp)[inputs]: Add "coreutils" and "sed",
[arguments]: and use them, instead of their canonical counterpart.
This commit is contained in:
Mathieu Othacehe 2020-08-27 15:38:45 +02:00
parent ad476912b6
commit 17f168fcad
No known key found for this signature in database
GPG key ID: 8354763531769CA6

View file

@ -1042,10 +1042,10 @@ (define-public isc-dhcp
;; if finds all the programs it needs.
(let* ((out (assoc-ref outputs "out"))
(libexec (string-append out "/libexec"))
(coreutils (assoc-ref inputs "coreutils"))
(coreutils (assoc-ref inputs "coreutils*"))
(inetutils (assoc-ref inputs "inetutils"))
(net-tools (assoc-ref inputs "net-tools"))
(sed (assoc-ref inputs "sed")))
(sed (assoc-ref inputs "sed*")))
(substitute* "client/scripts/linux"
(("/sbin/ip")
(string-append (assoc-ref inputs "iproute")
@ -1085,12 +1085,8 @@ (define-public isc-dhcp
(base32
"1j9a4r83a77mp8k1y8z524c9rzdqgd8rzwczd6zwmw86a00xiimg"))))
;; When cross-compiling, we need the cross Coreutils and sed.
;; Otherwise just use those from %FINAL-INPUTS.
,@(if (%current-target-system)
`(("coreutils" ,coreutils)
("sed" ,sed))
'())))
("coreutils*" ,coreutils)
("sed*" ,sed)))
(home-page "https://www.isc.org/products/DHCP/")
(synopsis "Dynamic Host Configuration Protocol (DHCP) tools")