[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/16: DRAFT commencement: bootstrap-mes-rewired: Support ARM.
From: |
guix-commits |
Subject: |
10/16: DRAFT commencement: bootstrap-mes-rewired: Support ARM. |
Date: |
Sun, 20 Dec 2020 05:14:54 -0500 (EST) |
janneke pushed a commit to branch wip-arm-bootstrap
in repository guix.
commit f7341a3159ccc88f7b7bcea80e4faa12e4173f9a
Author: Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Tue Dec 15 12:10:06 2020 +0100
DRAFT commencement: bootstrap-mes-rewired: Support ARM.
* gnu/packages/commencement.scm (%bootstrap-mes-rewired): Inherit from
mes-next.
[version]: Remove.
[arguments]: Remove mes/base.mes workaround for GNU Mes-0.21's map.
---
gnu/packages/commencement.scm | 39 ++++-----------------------------------
1 file changed, 4 insertions(+), 35 deletions(-)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 272e666..f30146a 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -274,9 +274,8 @@ pure Scheme to Tar and decompression in one easy step.")
(define %bootstrap-mes-rewired
(package
- (inherit mes)
+ (inherit mes-next)
(name "bootstrap-mes-rewired")
- (version "0.19")
(source #f)
(native-inputs `(("mes" ,%bootstrap-mes)
("gash" ,gash-boot)))
@@ -320,7 +319,9 @@ pure Scheme to Tar and decompression in one easy step.")
;; Cannot easily rewire "mes" because it
;; contains NUL characters; would require
;; remove-store-references alike trick
- (filter (negate (cut string-suffix? "/mes" <>))
+ (filter (negate (compose
+ (cute member <> '("mes"
"mes-gcc"))
+ basename))
(find-files bin)))
(rewire (string-append module "/mes/boot-0.scm"))
@@ -346,38 +347,6 @@ export MES_ARENA MES_MAX_ARENA MES_STACK
$MES -e '(mescc)' module/mescc.scm -- \"$@\"
"))))
(chmod mescc #o555)
-
- (with-directory-excursion module
- (chmod "mes/base.mes" #o644)
- (copy-file "mes/base.mes" "mes/base.mes.orig")
- (let ((base.mes (open-file "mes/base.mes" "a")))
- (display "
-;; A fixed map, from Mes 0.21, required to bootstrap Mes 0.21
-(define (map f h . t)
- (if (or (null? h)
- (and (pair? t) (null? (car t)))
- (and (pair? t) (pair? (cdr t)) (null? (cadr t)))) '()
- (if (null? t) (cons (f (car h)) (map f (cdr h)))
- (if (null? (cdr t))
- (cons (f (car h) (caar t)) (map f (cdr h) (cdar t)))
- (if (null? (cddr t))
- (cons (f (car h) (caar t) (caadr t)) (map f (cdr h) (cdar t)
(cdadr t)))
- (error 'unsupported (cons* 'map-4: f h t))b )))))
-" base.mes)
- (close base.mes))
-
- (chmod "mes/guile.mes" #o644)
- (copy-file "mes/guile.mes" "mes/guile.mes.orig")
- (let ((guile.mes (open-file "mes/guile.mes" "a")))
- (display "
-;; After booting guile.scm; use Mes 0.21; especially: MesCC 0.21
-(let* ((self (car (command-line)))
- (prefix (dirname (dirname self))))
- (set! %moduledir (string-append prefix \"/mes/module/\"))
- (setenv \"%numbered_arch\" \"true\"))
-
-" guile.mes)
- (close guile.mes)))
#t))))))
(define mes-boot
- branch wip-arm-bootstrap created (now 500e3f7), guix-commits, 2020/12/20
- 02/16: gnu: Add nyacc-1.00.2., guix-commits, 2020/12/20
- 01/16: gnu: mescc-tools: Update to 0.7.0., guix-commits, 2020/12/20
- 03/16: gnu: mes: Update to nyacc-1.00.2., guix-commits, 2020/12/20
- 05/16: bootstrap: mescc-tools: Support ARM, update to 0.7.0., guix-commits, 2020/12/20
- 04/16: DRAFT gnu: Add mes-next., guix-commits, 2020/12/20
- 06/16: DRAFT bootstrap: mes-minimal: Support ARM, update to mes-0.22.115., guix-commits, 2020/12/20
- 07/16: DRAFT bootstrap: %bootstrap-mescc-tools: Support ARM., guix-commits, 2020/12/20
- 10/16: DRAFT commencement: bootstrap-mes-rewired: Support ARM.,
guix-commits <=
- 11/16: DRAFT commencement: mes-boot: Support ARM., guix-commits, 2020/12/20
- 08/16: DRAFT bootstrap: %bootstrap-mes: Support ARM., guix-commits, 2020/12/20
- 12/16: DRAFT commencement: tcc-boot0: Support ARM, update to 0.9.26-1133-gb906ff86., guix-commits, 2020/12/20
- 09/16: commencement: gash-boot: Build fix for ARM., guix-commits, 2020/12/20
- 13/16: commencement: gzip-mesboot: Support ARM., guix-commits, 2020/12/20
- 14/16: commencement: make-mesboot0: Support ARM., guix-commits, 2020/12/20
- 15/16: commencement: bzip2-mesboot: Support ARM., guix-commits, 2020/12/20
- 16/16: DRAFT commencement: tcc-boot: Support ARM., guix-commits, 2020/12/20