From 09ba396c02405eac12215fd2d5d535a70a75c158 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sun, 15 Jun 2014 11:53:02 +0200 Subject: [PATCH] gnu: Remove dependency from gzip to the bootstrap binaries. * gnu/packages/base.scm (grep-final): New variable. (%boot5-inputs): Add it. (%final-inputs): Use it. --- gnu/packages/base.scm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm index bbeee3f0cd..f14baa9409 100644 --- a/gnu/packages/base.scm +++ b/gnu/packages/base.scm @@ -1160,9 +1160,19 @@ store.") ;; test files in Gettext. #:guile guile-final))) +(define grep-final + ;; The final grep. Gzip holds a reference to it (via zgrep), so it must be + ;; built before gzip. + (package-with-bootstrap-guile + (package-with-explicit-inputs grep + %boot4-inputs + (current-source-location) + #:guile guile-final))) + (define %boot5-inputs ;; Now use the final Coreutils. `(("coreutils" ,coreutils-final) + ("grep" ,grep-final) ,@%boot4-inputs)) (define-public %final-inputs @@ -1183,9 +1193,9 @@ store.") ("diffutils" ,diffutils) ("patch" ,patch) ("sed" ,sed) - ("grep" ,grep) ("findutils" ,findutils) ("gawk" ,gawk))) + ("grep" ,grep-final) ("coreutils" ,coreutils-final) ("make" ,gnu-make-final) ("bash" ,bash-final)