[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
52/211: gnu: tcc-boot: Update for mes 0.14.
From: |
Jan Nieuwenhuizen |
Subject: |
52/211: gnu: tcc-boot: Update for mes 0.14. |
Date: |
Sat, 8 Sep 2018 11:09:25 -0400 (EDT) |
janneke pushed a commit to branch wip-bootstrap
in repository guix.
commit 5fa99d268dad191bff0733b952ad0443ead96f98
Author: Jan Nieuwenhuizen <address@hidden>
Date: Thu May 3 12:00:38 2018 +0200
gnu: tcc-boot: Update for mes 0.14.
* gnu/packages/mes.scm (tcc-boot): Update for mes 0.14.
---
gnu/packages/mes.scm | 49 ++++++++++++++++++++++++++++++++++++++-----------
1 file changed, 38 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/mes.scm b/gnu/packages/mes.scm
index 393e2e2..375b561 100644
--- a/gnu/packages/mes.scm
+++ b/gnu/packages/mes.scm
@@ -359,7 +359,7 @@ extensive examples, including parsers for the Javascript
and C99 languages.")
(define-public tcc-boot
(let ((version "0.9.26")
(revision "0")
- (commit "ddea739c89e145004526b5f66f3b47b20ae30cf2"))
+ (commit "ff1caa80178b8c7d91c14c52b030ff067faef46f"))
(package-with-bootstrap-guile
(package
(name "tcc-boot")
@@ -372,16 +372,16 @@ extensive examples, including parsers for the Javascript
and C99 languages.")
"/tinycc-" commit ".tar.gz"))
(sha256
(base32
- "0w17a2qjh6rcfmd8phw6zxdgwh6yfwdxy6i9awzi8fckfjcwkywh"))))
+ "066z8z1wlzs0k8a1xv6ds0g25vvxwd24fzdca59bahwdaaq0j0ic"))))
(build-system trivial-build-system)
(supported-systems '("i686-linux" "x86_64-linux"))
(native-inputs
`(("static-bash" ,@(assoc-ref %bootstrap-inputs "bash"))
- ("libc" ,@(assoc-ref %bootstrap-inputs "libc"))
;; For testing with Guile
;; ("guile" ,%bootstrap-guile)
+ ;; ("libc" ,@(assoc-ref %bootstrap-inputs "libc"))
;; guile-2.0.9 does not have srfi-43; cherry-pick
- ("srfi-43" ,%srfi-43)
+ ;; ("srfi-43" ,%srfi-43)
("tar" ,(search-bootstrap-binary "tar" (%current-system)))
("xz" ,(search-bootstrap-binary "xz" (%current-system)))
("mes" ,mes-boot)
@@ -407,7 +407,9 @@ extensive examples, including parsers for the Javascript
and C99 languages.")
(tinycc-seed (assoc-ref %build-inputs "tinycc-seed"))
(out (assoc-ref %outputs "out"))
(libc (assoc-ref %build-inputs "libc"))
- (interpreter (string-append libc ,(glibc-dynamic-linker)))
+ (interpreter (if libc
+ (string-append libc
,(glibc-dynamic-linker))
+ (string-append mes "/lib/mes-loader")))
(dir (getcwd)))
(setenv "PATH" (string-append
bash "/bin:"
@@ -426,9 +428,12 @@ extensive examples, including parsers for the Javascript
and C99 languages.")
(system* "tar" "--strip=1" "-C" "mes-seed" "-xvf" mes-seed)
(mkdir-p "tinycc-seed")
(system* "tar" "--strip=1" "-C" "tinycc-seed" "-xvf" tinycc-seed)
- (mkdir-p "srfi")
- (system* "cp" srfi-43 "srfi/srfi-43.scm")
+ (when srfi-43
+ (mkdir-p "srfi")
+ (system* "cp" srfi-43 "srfi/srfi-43.scm"))
(chdir "source")
+
+ ;; configure
(setenv "PREFIX" out)
(setenv "MESCC" (string-append mes "/bin/mescc"))
(symlink (string-append mes "/share/mes") "mes")
@@ -457,7 +462,6 @@ extensive examples, including parsers for the Javascript
and C99 languages.")
(symlink (string-append "../nyacc-source/module")
"nyacc")))
(and
- ;; configure
(zero? (system* "sh" "configure"
"--prefix=$PREFIX"
(string-append "--elfinterp=" interpreter)
@@ -467,9 +471,32 @@ extensive examples, including parsers for the Javascript
and C99 languages.")
;; build
(zero? (system* "sh" "build.sh"))
- (zero? (system* "sh" "-ex" "test.sh" "01-return-0"))
- ;; check: 1/68 tests fail
- (or (zero? (system* "sh" "check.sh")) #t)
+ ;; check
+ (setenv "MES" "mes")
+ (setenv "DIFF" "diff.scm")
+ (zero? (system* "sh" "-ex" "test.sh"
"mes/scaffold/tests/30-strlen"))
+ (zero? (system* "sh" "-ex" "test.sh"
"mes/scaffold/tinycc/00_assignment"))
+ (zero? (system* "sh" "-x" "check.sh"))
+
+ (setenv "TCC" "./mes-tcc")
+ (zero? (system* "sh" "boot.sh"))
+ (zero? (system* "sh" "check.sh"))
+
+ (setenv "TCC" "./boot0-tcc")
+ (zero? (system* "sh" "boot.sh"))
+ (zero? (system* "sh" "check.sh"))
+
+ (setenv "TCC" "./boot1-tcc")
+ (zero? (system* "sh" "boot.sh"))
+ (zero? (system* "sh" "check.sh"))
+
+ (setenv "TCC" "./boot2-tcc")
+ (zero? (system* "sh" "boot.sh"))
+ (zero? (system* "sh" "check.sh"))
+
+ (setenv "TCC" "./boot3-tcc")
+ (zero? (system* "sh" "boot.sh"))
+ (zero? (system* "sh" "check.sh"))
;; install
(zero? (system* "sh" "install.sh")))))))
- 66/211: gnu: binutils-boot: Update to 2.30., (continued)
- 66/211: gnu: binutils-boot: Update to 2.30., Jan Nieuwenhuizen, 2018/09/08
- 41/211: gnu: %mescc-tools-seed: Update to new gitlab url scheme., Jan Nieuwenhuizen, 2018/09/08
- 101/211: gnu: binutils-mesboot0: Rename from binutils-boot0., Jan Nieuwenhuizen, 2018/09/08
- 76/211: Revert "gnu: gcc-boot: Update to 3.2.", Jan Nieuwenhuizen, 2018/09/08
- 83/211: gnu: %mescc-tools-seed: Update for linux-4.17 elf32-header fix., Jan Nieuwenhuizen, 2018/09/08
- 84/211: gnu: mescc-tools-boot: Update for linux-4.17 elf32-header fix., Jan Nieuwenhuizen, 2018/09/08
- 62/211: gnu: Add binutils-boot 2.5.1., Jan Nieuwenhuizen, 2018/09/08
- 86/211: gnu: mes-boot: Update for fopen: Return 0 upon failure., Jan Nieuwenhuizen, 2018/09/08
- 60/211: gnu: tinycc-boot: Update for mes 0.15., Jan Nieuwenhuizen, 2018/09/08
- 56/211: gnu: mescc-tools-boot: Update for mes 0.15., Jan Nieuwenhuizen, 2018/09/08
- 52/211: gnu: tcc-boot: Update for mes 0.14.,
Jan Nieuwenhuizen <=
- 47/211: gnu: %tinycc-seed: Update for mes 0.13., Jan Nieuwenhuizen, 2018/09/08
- 49/211: gnu: %mes-seed: Update for mes 0.14., Jan Nieuwenhuizen, 2018/09/08
- 43/211: gnu: stage0-boot: Update to new gitlab url scheme., Jan Nieuwenhuizen, 2018/09/08
- 36/211: gnu: nyacc-boot: Update to 0.80.42., Jan Nieuwenhuizen, 2018/09/08
- 38/211: gnu: mes-boot: Update to 0.12., Jan Nieuwenhuizen, 2018/09/08
- 39/211: gnu: %tinycc-seed: Update for mes-0.12., Jan Nieuwenhuizen, 2018/09/08
- 34/211: gnu: Update tcc-boot: qsort., Jan Nieuwenhuizen, 2018/09/08
- 40/211: gnu: tinycc-boot: Update for mes-0.12., Jan Nieuwenhuizen, 2018/09/08
- 35/211: gnu: Update mes-boot: M4 support: robustify headers., Jan Nieuwenhuizen, 2018/09/08
- 30/211: gnu: Update tcc-boot: mescc has no long long., Jan Nieuwenhuizen, 2018/09/08