[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/04: gnu: nyacc: Update to 0.86.0.
From: |
Jan Nieuwenhuizen |
Subject: |
01/04: gnu: nyacc: Update to 0.86.0. |
Date: |
Sun, 9 Sep 2018 02:12:08 -0400 (EDT) |
janneke pushed a commit to branch wip-bootstrap
in repository guix.
commit 34d2bbe74e687a611db7ff20cef942eb009def24
Author: Jan Nieuwenhuizen <address@hidden>
Date: Sat Sep 8 16:55:32 2018 +0200
gnu: nyacc: Update to 0.86.0.
* gnu/packages/patches/nyacc-binary-literals.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/mes.scm (nyacc): Update to 0.86.0, add patch.
---
gnu/local.mk | 1 +
gnu/packages/mes.scm | 6 ++---
gnu/packages/patches/nyacc-binary-literals.patch | 29 ++++++++++++++++++++++++
3 files changed, 33 insertions(+), 3 deletions(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index 1ccdf6d..5424648 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -989,6 +989,7 @@ dist_patch_DATA =
\
%D%/packages/patches/nvi-assume-preserve-path.patch \
%D%/packages/patches/nvi-dbpagesize-binpower.patch \
%D%/packages/patches/nvi-db4.patch \
+ %D%/packages/patches/nyacc-binary-literals.patch \
%D%/packages/patches/nyx-show-header-stats-with-python3.patch \
%D%/packages/patches/ocaml-bisect-fix-camlp4-in-another-directory.patch
\
%D%/packages/patches/ocaml-bitstring-fix-configure.patch \
diff --git a/gnu/packages/mes.scm b/gnu/packages/mes.scm
index 5c8e26e..e407547 100644
--- a/gnu/packages/mes.scm
+++ b/gnu/packages/mes.scm
@@ -118,15 +118,15 @@ with a Knight VM that runs Forth and Lisp.")
(define-public nyacc
(package
(name "nyacc")
- (version "0.83.3")
+ (version "0.86.0")
(source (origin
(method url-fetch)
(uri (string-append "mirror://savannah/nyacc/"
name "-" version ".tar.gz"))
- (file-name (string-append name "-" version ".tar.gz"))
+ (patches (search-patches "nyacc-binary-literals.patch"))
(sha256
(base32
- "0120n0mdb6r58c4jc024dhwqy5s8a20waknijfhqjc59a884lrd6"))))
+ "0lkd9lyspvhxlfs0496gsllwinh62jk9wij6gpadvx9gwz6yavd9"))))
(build-system gnu-build-system)
(native-inputs
`(("guile" ,guile-2.2)))
diff --git a/gnu/packages/patches/nyacc-binary-literals.patch
b/gnu/packages/patches/nyacc-binary-literals.patch
new file mode 100644
index 0000000..8159d74
--- /dev/null
+++ b/gnu/packages/patches/nyacc-binary-literals.patch
@@ -0,0 +1,29 @@
+From 6a08014b77bf435f025ecdac08396580b85f159a Mon Sep 17 00:00:00 2001
+From: Jan Nieuwenhuizen <address@hidden>
+Date: Sat, 8 Sep 2018 20:22:45 +0200
+Subject: [PATCH] fix binary literals.
+
+---
+ module/nyacc/lex.scm | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/module/nyacc/lex.scm b/module/nyacc/lex.scm
+index 2ec9895..b205212 100644
+--- a/module/nyacc/lex.scm
++++ b/module/nyacc/lex.scm
+@@ -345,10 +345,11 @@
+ ((char-numeric? ch) (iter chl '$fixed ba 1 ch))
+ ((char=? #\. ch) (iter (cons ch chl) #f ba 15 (read-char)))
+ (else #f)))
+- ((10) ;; allow x after 0
++ ((10) ;; allow x, b after 0
+ (cond
+ ((eof-object? ch) (iter chl ty ba 5 ch))
+ ((char=? #\x ch) (iter (cons ch chl) ty 16 1 (read-char)))
++ ((char=? #\b ch) (iter (cons ch chl) ty 2 1 (read-char)))
+ (else (iter chl ty ba 1 ch))))
+ ((15) ;; got `.' only
+ (cond
+--
+2.18.0
+