[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/12: gnu: gash-utils-boot: Create 'echo' wrapper.
From: |
guix-commits |
Subject: |
07/12: gnu: gash-utils-boot: Create 'echo' wrapper. |
Date: |
Sat, 19 Mar 2022 15:42:20 -0400 (EDT) |
samplet pushed a commit to branch core-updates
in repository guix.
commit 6bf2fa8d1c79accc85aee987687c5d8f375b3d2c
Author: Timothy Sample <samplet@ngyro.com>
AuthorDate: Sun Feb 7 13:38:56 2021 -0500
gnu: gash-utils-boot: Create 'echo' wrapper.
* gnu/packages/commencement.scm (gash-utils-boot)[arguments]: Add a
phase that generates an external wrapper for Gash's 'echo' built-in.
---
gnu/packages/commencement.scm | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index e63c0b3437..df91f57b59 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -242,7 +242,19 @@ pure Scheme to Tar and decompression in one easy step.")
(copy-file (string-append gash-godir "/gash/compat.go")
(string-append godir "/gash/compat.go"))
(copy-recursively (string-append gash-godir "/gash/compat")
- (string-append godir "/gash/compat")))))))))
+ (string-append godir "/gash/compat")))))
+ ;; We need an external echo.
+ (add-after 'install 'make-echo
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (gash (assoc-ref inputs "gash")))
+ (with-output-to-file (string-append out "/bin/echo")
+ (lambda ()
+ (display (string-append "#!" gash "/bin/gash\n"))
+ (newline)
+ (display "echo \"$@\"")
+ (newline)))
+ (chmod (string-append out "/bin/echo") #o755))))))))
(inputs `(("gash" ,gash-boot)
("guile" ,%bootstrap-guile)))
(native-inputs `(("bootar" ,bootar)))))
- branch core-updates updated (806824c2c0 -> f0136b36ae), guix-commits, 2022/03/19
- 01/12: gnu: hello-mesboot: Downgrade to 2.10., guix-commits, 2022/03/19
- 03/12: gnu-bootstrap: Allow multiple module directories., guix-commits, 2022/03/19
- 05/12: gnu: bootar: Update to 1b., guix-commits, 2022/03/19
- 07/12: gnu: gash-utils-boot: Create 'echo' wrapper.,
guix-commits <=
- 02/12: gnu-bootstrap: Configure PACKAGE_NAME., guix-commits, 2022/03/19
- 04/12: gnu: gash-utils: Update to 0.2.0., guix-commits, 2022/03/19
- 10/12: gnu: binutils-mesboot0: Update to 2.20.1a., guix-commits, 2022/03/19
- 06/12: gnu: gash: Update to 0.3.0., guix-commits, 2022/03/19
- 08/12: gnu: bzip2-mesboot: Remove package., guix-commits, 2022/03/19
- 09/12: gnu: sed-mesboot0: Remove package., guix-commits, 2022/03/19
- 11/12: gnu: %boot-tcc-inputs: Remove extra "gash-utils"., guix-commits, 2022/03/19
- 12/12: gnu: commencement: Remove many old utilities., guix-commits, 2022/03/19