distro: make-bootstrap: Fix arguments to gawk.

* distro/packages/make-bootstrap.scm (%static-inputs)[gawk]: Use
  `substitute-keyword-arguments' to preserve the #:phases argument of
  GAWK.
This commit is contained in:
Ludovic Courtès 2013-01-04 17:42:59 +01:00
parent 2f8a123ed3
commit fdc78b72f8
1 changed files with 11 additions and 9 deletions

View File

@ -107,15 +107,17 @@
(arguments (arguments
(lambda (system) (lambda (system)
`(#:patches (list (assoc-ref %build-inputs "patch/sh")) `(#:patches (list (assoc-ref %build-inputs "patch/sh"))
#:phases (alist-cons-before ,@(substitute-keyword-arguments
'build 'no-export-dynamic ((package-arguments gawk) system)
(lambda* (#:key outputs #:allow-other-keys) ((#:phases phases)
;; Since we use `-static', remove `(alist-cons-before
;; `-export-dynamic'. 'configure 'no-export-dynamic
(substitute* "configure" (lambda _
(("-export-dynamic") ""))) ;; Since we use `-static', remove
%standard-phases) ;; `-export-dynamic'.
,@((package-arguments gawk) system)))) (substitute* "configure"
(("-export-dynamic") "")))
,phases))))))
(inputs `(("patch/sh" ,(search-patch "gawk-shell.patch")))))) (inputs `(("patch/sh" ,(search-patch "gawk-shell.patch"))))))
(finalize (lambda (p) (finalize (lambda (p)
(static-package (package-with-explicit-inputs (static-package (package-with-explicit-inputs