[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/63: bootstrap: Add %gash-bootstrap-guile, %gash-bootstrap-tarball.
From: |
guix-commits |
Subject: |
11/63: bootstrap: Add %gash-bootstrap-guile, %gash-bootstrap-tarball. |
Date: |
Sun, 24 Nov 2019 05:52:40 -0500 (EST) |
janneke pushed a commit to branch wip-bootstrap
in repository guix.
commit 21d03a869772393aa810a28dd786dac0d4753464
Author: Jan Nieuwenhuizen <address@hidden>
Date: Sun Oct 28 01:14:00 2018 +0200
bootstrap: Add %gash-bootstrap-guile, %gash-bootstrap-tarball.
* gnu/packages/make-bootstrap.scm (%gash-bootstrap-guile): New variable.
(%gash-bootstrap-tarball): New variable.
---
gnu/packages/make-bootstrap.scm | 48 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/gnu/packages/make-bootstrap.scm b/gnu/packages/make-bootstrap.scm
index ec6905c..ebe42c1 100644
--- a/gnu/packages/make-bootstrap.scm
+++ b/gnu/packages/make-bootstrap.scm
@@ -42,6 +42,7 @@
#:use-module (gnu packages hurd)
#:use-module (gnu packages mes)
#:use-module (gnu packages multiprecision)
+ #:use-module (gnu packages shells)
#:use-module (ice-9 match)
#:use-module (srfi srfi-1)
#:export (%bootstrap-binaries-tarball
@@ -50,6 +51,7 @@
%glibc-bootstrap-tarball
%gcc-bootstrap-tarball
%guile-bootstrap-tarball
+ %gash-bootstrap-tarball
%mescc-tools-bootstrap-tarball
%mes-bootstrap-tarball
%bootstrap-tarballs
@@ -692,6 +694,48 @@ for `sh' in $PATH, and without nscd, and with static NSS
modules."
#t))))
(inputs `(("mes" ,%mes-minimal)))))
+(define %gash-bootstrap-guile
+ ;; Gash with bash and sh symlinks and Gash Core Utils, for bootstrap.
+ (package
+ (inherit gash-boot)
+ (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"))
+ (gash-core-utils (assoc-ref %build-inputs "gash-core-utils"))
+ (guile (assoc-ref %build-inputs "guile"))
+ (bootstrap-guile (assoc-ref %build-inputs "bootstrap-guile")))
+
+ (copy-recursively gash out)
+ (copy-recursively gash-core-utils out)
+ (copy-file (string-append gash "/bin/gash")
+ (string-append out "/bin/bash"))
+ (copy-file (string-append gash "/bin/gash")
+ (string-append out "/bin/sh"))
+ (for-each remove-store-references (find-files bin))
+
+ (remove-store-references
+ (string-append out
"/lib/guile/2.0/site-ccache/gash/core-utils/config.go"))
+ (remove-store-references
+ (string-append out
"/share/guile/site/2.0/gash/core-utils/config.scm"))
+
+ #t))))
+ (inputs `(("guile" ,guile-2.0)
+ ("bootstrap-guile" ,(@ (gnu packages bootstrap)
%bootstrap-guile))
+ ("gash" ,gash-boot)
+ ("gash-core-utils" ,gash-core-utils-boot)))))
+
(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
@@ -863,6 +907,10 @@ for `sh' in $PATH, and without nscd, and with static NSS
modules."
;; A tarball with the statically-linked, relocatable Guile.
(tarball-package %guile-static-stripped))
+(define %gash-bootstrap-tarball
+ ;; A tarball with Gash and Gash Core Utils, built with %bootstrap-guile.
+ (tarball-package %gash-bootstrap-guile))
+
(define %mescc-tools-bootstrap-tarball
;; A tarball with statically-linked MesCC binary seed.
(tarball-package %mescc-tools-static-stripped))
- 01/63: gnu: mes: Update to 0.21., (continued)
- 01/63: gnu: mes: Update to 0.21., guix-commits, 2019/11/24
- 02/63: bootstrap: mescc-tools-static: Update to 0.6.1., guix-commits, 2019/11/24
- 03/63: bootstrap: mes-minimal: Update to mes-0.21., guix-commits, 2019/11/24
- 04/63: gnu: Remove mescc-tools-0.5.2., guix-commits, 2019/11/24
- 05/63: bootstrap: bootstrap-mescc-tools: Update to mescc-tools-0.6.1., guix-commits, 2019/11/24
- 06/63: bootstrap: bootstrap-mes: Update to mes-0.21., guix-commits, 2019/11/24
- 07/63: gnu: Add ncompress., guix-commits, 2019/11/24
- 08/63: gnu: Add gash-core-utils., guix-commits, 2019/11/24
- 09/63: bootstrap: Add gash-boot., guix-commits, 2019/11/24
- 10/63: bootstrap: Add gash-core-utils-boot., guix-commits, 2019/11/24
- 11/63: bootstrap: Add %gash-bootstrap-guile, %gash-bootstrap-tarball.,
guix-commits <=
- 13/63: bootstrap: nyacc-boot. WIP, guix-commits, 2019/11/24
- 12/63: bootstrap: Add %bootstrap-gash. WIP, guix-commits, 2019/11/24
- 14/63: bootstrap: Add %bootstrap-gash-rewired.., guix-commits, 2019/11/24
- 15/63: bootstrap: mes-boot: Scheme-only bootstrap., guix-commits, 2019/11/24
- 16/63: bootstrap: tcc-boot0: Scheme-only bootstrap. WIP, guix-commits, 2019/11/24
- 17/63: bootstrap: Add gzip-mesboot0., guix-commits, 2019/11/24
- 18/63: bootstrap: make-mesboot0: Scheme-only bootstrap., guix-commits, 2019/11/24
- 19/63: bootstrap: Add bzip2-mesboot0., guix-commits, 2019/11/24
- 20/63: bootstrap: Add bash-mesboot0., guix-commits, 2019/11/24
- 21/63: bootstrap: tcc-boot: Scheme-only bootstrap., guix-commits, 2019/11/24