gnu: guile-static-stripped: Use invoke instead of system*.

* gnu/packages/make-bootstrap.scm (guile-static-stripped)[arguments]: Use
invoke and remove vestigial plumbing.
This commit is contained in:
Mark H Weaver 2018-03-16 06:34:22 -04:00
parent c2af3b0725
commit 1a83e2a286
No known key found for this signature in database
GPG key ID: 7CEF29847562C516

View file

@ -590,21 +590,22 @@ (define %guile-static-stripped
(mkdir (string-append out "/bin"))
(copy-file guile1 guile2)
;; Does the relocated Guile work?
(and ,(if (%current-target-system)
#t
'(zero? (system* guile2 "--version")))
(begin
;; Strip store references.
(remove-store-references guile2)
;; Verify that the relocated Guile works.
,@(if (%current-target-system)
'()
'((invoke guile2 "--version")))
;; Does the stripped Guile work? If it aborts, it could be
;; that it tries to open iconv descriptors and fails because
;; libc's iconv data isn't available (see
;; `guile-default-utf8.patch'.)
,(if (%current-target-system)
#t
'(zero? (system* guile2 "--version")))))))))
;; Strip store references.
(remove-store-references guile2)
;; Verify that the stripped Guile works. If it aborts, it could be
;; that it tries to open iconv descriptors and fails because libc's
;; iconv data isn't available (see `guile-default-utf8.patch'.)
,@(if (%current-target-system)
'()
'((invoke guile2 "--version")))
#t))))
(inputs `(("guile" ,%guile-static)))
(outputs '("out"))
(synopsis "Minimal statically-linked and relocatable Guile")))