[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20/70: bootstrap: mes-boot: Install intermediate ASCII cache.
From: |
guix-commits |
Subject: |
20/70: bootstrap: mes-boot: Install intermediate ASCII cache. |
Date: |
Wed, 11 Dec 2019 13:03:20 -0500 (EST) |
janneke pushed a commit to branch wip-bootstrap
in repository guix.
commit 6f3bd283ce7ad88597cff9145ec9098bd111bbed
Author: Jan Nieuwenhuizen <address@hidden>
Date: Mon Dec 9 16:08:06 2019 +0100
bootstrap: mes-boot: Install intermediate ASCII cache.
mes-boot should have the well known mes-rb5 sha256sum, but it's different,
possibly due to usage of mescc-tools 0.5.2. We keep the build cache to
enable comparison later.
* gnu/packages/commencement.scm (mes-boot): Install intermediate ASCII
cache.
---
gnu/packages/commencement.scm | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 57d7957..a7d8473 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -509,6 +509,7 @@ $MES -e '(mescc)' module/mescc.scm -- \"$@\"
(invoke "tar" "-xvf" nyacc-source)))))
(add-after 'unpack 'patch-%moduledir
(lambda _
+ (copy-file "module/mescc.scm" "module/mescc.scm.orig")
(substitute* "module/mescc.scm"
(("^ \\(mes-use-module \\(mescc mescc\\)" all)
(string-append "
@@ -561,7 +562,21 @@ $MES -e '(mescc)' module/mescc.scm -- \"$@\"
(("^( *)((cp|mkdir|tar) [^']*[^\\])\n" all space cmd)
(string-append space "echo '" cmd "'\n"
space cmd "\n")))
- (invoke "sh" "install.sh"))))))
+ (copy-file "module/mescc.scm.orig" "module/mescc.scm")
+ (invoke "sh" "install.sh")
+ ;; Keep ASCII output, for friendlier comparison and bisection
+ (let* ((out (assoc-ref %outputs "out"))
+ (cache (string-append out "/lib/cache")))
+ (define (objects-in-dir dir)
+ (find-files dir
+ (lambda (name stat)
+ (and (equal? (dirname name) dir)
+ (or (string-suffix? ".o" name)
+ (string-suffix? ".s" name))))))
+ (for-each (lambda (x) (install-file x cache))
+ (append (objects-in-dir ".")
+ (objects-in-dir "mescc-lib"))))
+ #t)))))
(native-search-paths
(list (search-path-specification
(variable "C_INCLUDE_PATH")
@@ -571,6 +586,7 @@ $MES -e '(mescc)' module/mescc.scm -- \"$@\"
(files '("lib")))
(search-path-specification
(variable "MES_PREFIX")
+ (separator #f)
(files '("")))))))
- 06/70: bootstrap: mes-minimal: Update to mes-0.21., (continued)
- 06/70: bootstrap: mes-minimal: Update to mes-0.21., guix-commits, 2019/12/11
- 13/70: Revert "bootstrap: mescc-tools-static: Update to 0.6.1.", guix-commits, 2019/12/11
- 14/70: Revert "bootstrap: mes-minimal: Update to mes-0.21.", guix-commits, 2019/12/11
- 18/70: bootstrap: Add %bootstrap-mes-rewired., guix-commits, 2019/12/11
- 17/70: bootstrap: Add gash-core-utils-boot., guix-commits, 2019/12/11
- 23/70: bootstrap: make-mesboot0: Use Gash instead of coreutils&co., guix-commits, 2019/12/11
- 21/70: bootstrap: tcc-boot0: Use Gash instead of coretutils&co., guix-commits, 2019/12/11
- 28/70: bootstrap: Add patch-mesboot., guix-commits, 2019/12/11
- 16/70: bootstrap: Add gash-boot., guix-commits, 2019/12/11
- 22/70: bootstrap: Add gzip-mesboot., guix-commits, 2019/12/11
- 20/70: bootstrap: mes-boot: Install intermediate ASCII cache.,
guix-commits <=
- 24/70: bootstrap: Add bzip2-mesboot., guix-commits, 2019/12/11
- 27/70: bootstrap: diffuils-mesboot: Use Gash instead of coretutils&co., guix-commits, 2019/12/11
- 26/70: bootstrap: tcc-boot: Use Gash instead of coretutils&co., guix-commits, 2019/12/11
- 31/70: bootstrap: gcc-core-mesboot0: Use Gash instead of coretutils&co., guix-commits, 2019/12/11
- 29/70: bootstrap: Add sed-mesboot0., guix-commits, 2019/12/11
- 19/70: bootstrap: mes-boot: Use Gash instead of coretutils&co., guix-commits, 2019/12/11
- 25/70: bootstrap: Add bash-mesboot0., guix-commits, 2019/12/11
- 30/70: bootstrap: binutils-mesboot0: Use Gash instead of coretutils&co., guix-commits, 2019/12/11
- 37/70: bootstrap: Add grep-mesboot., guix-commits, 2019/12/11
- 33/70: bootstrap: mesboot-headers: Use Gash instead of coretutils&co., guix-commits, 2019/12/11