[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#53878] [PATCH v7 21/24] gnu: chez-mit: Support chez-scheme-for-rack
From: |
Philip McGrath |
Subject: |
[bug#53878] [PATCH v7 21/24] gnu: chez-mit: Support chez-scheme-for-racket. |
Date: |
Sun, 27 Feb 2022 16:29:17 -0500 |
Racket's variant of Chez Scheme defines 'string->uninterned-symbol',
which conflicts with the definition from '(chez mit)'. See discussion at
<https://github.com/racket/racket/issues/4151>.
* gnu/packages/chez.scm (chez-mit)[origin]<snippet>: Add workaround for
chez-scheme-for-racket.
---
gnu/packages/chez.scm | 24 +++++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/chez.scm b/gnu/packages/chez.scm
index da267d3616..5d5108a2b1 100644
--- a/gnu/packages/chez.scm
+++ b/gnu/packages/chez.scm
@@ -949,7 +949,29 @@ (define-public chez-mit
(commit (string-append "v" version))))
(sha256
(base32 "0c7i3b6i90xk96nmxn1pc9272a4yal4v40dm1a4ybdi87x53zkk0"))
- (file-name (git-file-name name version))))
+ (file-name (git-file-name name version))
+ (snippet
+ ;; Workaround for chez-scheme-for-racket.
+ ;; See: https://github.com/racket/racket/issues/4151
+ #~(begin
+ (use-modules (guix build utils))
+ (substitute* "mit/core.sls"
+ (("[(]import ")
+ "(import (only (chezscheme) import)\n")
+ (("[(]define string->uninterned-symbol gensym[)]")
+ (format #f "~s"
+ '(begin
+ (import (only (chezscheme)
+ meta-cond
+ library-exports))
+ (meta-cond
+ ((memq 'string->uninterned-symbol
+ (library-exports '(chezscheme)))
+ (import (only (chezscheme)
+ string->uninterned-symbol)))
+ (else
+ (define string->uninterned-symbol
+ gensym)))))))))))
(build-system gnu-build-system)
(inputs
(list chez-srfi)) ; for tests
--
2.32.0
- [bug#53878] [PATCH v7 08/24] gnu: racket-minimal: Add "debug" output., (continued)
- [bug#53878] [PATCH v7 08/24] gnu: racket-minimal: Add "debug" output., Philip McGrath, 2022/02/27
- [bug#53878] [PATCH v7 10/24] gnu: racket-minimal: Separate from the Racket VM., Philip McGrath, 2022/02/27
- [bug#53878] [PATCH v7 13/24] gnu: racket: Add 'racket-vm-for-system'., Philip McGrath, 2022/02/27
- [bug#53878] [PATCH v7 14/24] gnu: chez-scheme: Use new style for Chez packages., Philip McGrath, 2022/02/27
- [bug#53878] [PATCH v7 15/24] gnu: chez-scheme: Use "lib/chez-scheme" for search path., Philip McGrath, 2022/02/27
- [bug#53878] [PATCH v7 17/24] gnu: chez-scheme: Use new package style., Philip McGrath, 2022/02/27
- [bug#53878] [PATCH v7 16/24] gnu: chez-scheme: Use shared zlib and lz4., Philip McGrath, 2022/02/27
- [bug#53878] [PATCH v7 18/24] gnu: Add stex., Philip McGrath, 2022/02/27
- [bug#53878] [PATCH v7 19/24] gnu: Add chez-nanopass., Philip McGrath, 2022/02/27
- [bug#53878] [PATCH v7 20/24] gnu: chez-scheme: Explicitly package bootstrap bootfiles., Philip McGrath, 2022/02/27
- [bug#53878] [PATCH v7 21/24] gnu: chez-mit: Support chez-scheme-for-racket.,
Philip McGrath <=
- [bug#53878] [PATCH v7 22/24] gnu: Add chez-scheme-for-racket., Philip McGrath, 2022/02/27
- [bug#53878] [PATCH v7 23/24] gnu: chez: Add 'chez-scheme-for-system'., Philip McGrath, 2022/02/27
- [bug#53878] [PATCH v7 24/24] gnu: racket-vm-cs: Build with "--enable-scheme"., Philip McGrath, 2022/02/27