[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/15: bootstrap: Add %gash-bootstrap-guile, %gash-bootstrap-guile-tarba
From: |
guix-commits |
Subject: |
11/15: bootstrap: Add %gash-bootstrap-guile, %gash-bootstrap-guile-tarball. |
Date: |
Thu, 10 Jan 2019 17:31:49 -0500 (EST) |
janneke pushed a commit to branch wip-bootstrap
in repository guix.
commit a7479fd59acfb2352625c130732b10a32a31dda4
Author: Jan Nieuwenhuizen <address@hidden>
Date: Sun Oct 28 01:14:00 2018 +0200
bootstrap: Add %gash-bootstrap-guile, %gash-bootstrap-guile-tarball.
* gnu/packages/make-bootstrap.scm (%gash-bootstrap-guile): New variable.
(%gash-bootstrap-guile-tarball): New variable.
---
gnu/packages/make-bootstrap.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/gnu/packages/make-bootstrap.scm b/gnu/packages/make-bootstrap.scm
index 8cd25b5..48415c5 100644
--- a/gnu/packages/make-bootstrap.scm
+++ b/gnu/packages/make-bootstrap.scm
@@ -614,6 +614,43 @@ for `sh' in $PATH, and without nscd, and with static NSS
modules."
("bootstrap-guile" ,(@ (gnu packages bootstrap)
%bootstrap-guile))
("gash" ,guile-gash)))))
+(define %gash-bootstrap-guile
+ ;; Gash with %bootstrap-guile she-bangs.
+ (package
+ (inherit guile-gash)
+ (name "gash-bootstrap-guile")
+ (build-system trivial-build-system)
+ (source #f)
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder
+ (begin
+ (use-modules (srfi srfi-1)
+ (guix build utils))
+
+ (setvbuf (current-output-port) _IOLBF)
+ (let* ((out (assoc-ref %outputs "out"))
+ (bin (string-append out "/bin"))
+ (libexec (string-append out "/libexec/gash"))
+ (gash (assoc-ref %build-inputs "gash"))
+ (guile (assoc-ref %build-inputs "guile"))
+ (bootstrap-guile (assoc-ref %build-inputs "bootstrap-guile")))
+
+ (define (rewire-script script)
+ (substitute* script
+ ((gash) out)
+ ((guile) bootstrap-guile)
+ (("bin/guile") "bin/.guile-real")))
+
+ (copy-recursively gash out)
+ (for-each rewire-script (append (find-files bin)
+ (find-files libexec)))
+
+ #t))))
+ (inputs `(("guile" ,guile-2.2)
+ ("bootstrap-guile" ,(@ (gnu packages bootstrap)
%bootstrap-guile))
+ ("gash" ,guile-gash)))))
+
(define %guile-static
;; A statically-linked Guile that is relocatable--i.e., it can search
;; .scm and .go files relative to its installation directory, rather
- branch wip-bootstrap created (now b6edf64), guix-commits, 2019/01/10
- 07/15: bootstrap: tcc-boot0: Update for mes 0.20. WIP, guix-commits, 2019/01/10
- 02/15: bootstrap: Add %gash-bootstrap-guile, %gash-bootstrap-guile-tarball., guix-commits, 2019/01/10
- 08/15: Revert "bootstrap: tcc-boot0: Update for mes 0.20. WIP", guix-commits, 2019/01/10
- 03/15: bootstrap: Update %bootstrap-guile to 2.2., guix-commits, 2019/01/10
- 09/15: bootstrap: %bootstrap-mes: Update for mes 0.20. WIP, guix-commits, 2019/01/10
- 11/15: bootstrap: Add %gash-bootstrap-guile, %gash-bootstrap-guile-tarball.,
guix-commits <=
- 05/15: gnu: mes: Update to 0.20 WIP, guix-commits, 2019/01/10
- 04/15: bootstrap: Add %bootstrap-gash. WIP, guix-commits, 2019/01/10
- 01/15: gnu: Add gash. WIP, guix-commits, 2019/01/10
- 12/15: pieton: HAK, guix-commits, 2019/01/10
- 06/15: bootstrap: mes-boot: Decouple from mes update. TEMP: avoid build world., guix-commits, 2019/01/10
- 10/15: Revert "bootstrap: mes-boot: Decouple from mes update. TEMP: avoid build world.", guix-commits, 2019/01/10
- 13/15: bootstrap: mes-boot: Scheme-only bootstrap. WIP, guix-commits, 2019/01/10
- 14/15: bootstrap: tcc-boot0: Scheme-only bootstrap. WIP, guix-commits, 2019/01/10
- 15/15: Scheme-only bootstrap: WIP, guix-commits, 2019/01/10