* [PATCH] Update and fix Chicken Scheme.
@ 2016-03-20 22:07 Ricardo Wurmus
2016-03-21 16:35 ` Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Ricardo Wurmus @ 2016-03-20 22:07 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 372 bytes --]
Hi Guix,
with these patches the latest version of Chicken Scheme builds on my
machine. I’m not happy about disabling all port tests, but I didn’t
manage to fix the problem with the file.
I’m getting this error, but the line numbers don’t seem to match, so
it’s hard for me to find the culprit:
> Error: (line 294) invalid escape-sequence '\x o'
~~ Ricardo
[-- Attachment #2: 0001-gnu-chicken-Update-to-4.10.0.patch --]
[-- Type: text/x-patch, Size: 1667 bytes --]
From e2fc4f5bfac95e51ba0494ffccd6354680a73385 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <rekado@elephly.net>
Date: Sun, 20 Mar 2016 17:10:12 +0100
Subject: [PATCH 1/4] gnu: chicken: Update to 4.10.0.
* gnu/packages/scheme.scm (chicken): Update to 4.10.0.
---
gnu/packages/scheme.scm | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/scheme.scm b/gnu/packages/scheme.scm
index 00b573f..5361f23 100644
--- a/gnu/packages/scheme.scm
+++ b/gnu/packages/scheme.scm
@@ -2,6 +2,7 @@
;;; Copyright © 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
;;; Copyright © 2015 Federico Beffa <beffa@fbengineering.ch>
+;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -309,14 +310,14 @@ mashups, office (web agendas, mail clients, ...), etc.")
(define-public chicken
(package
(name "chicken")
- (version "4.9.0.1")
+ (version "4.10.0")
(source (origin
(method url-fetch)
- (uri (string-append "http://code.call-cc.org/releases/4.9.0/chicken-"
- version ".tar.gz"))
+ (uri (string-append "http://code.call-cc.org/releases/"
+ version "/chicken-" version ".tar.gz"))
(sha256
(base32
- "0598mar1qswfd8hva9nqs88zjn02lzkqd8fzdd21dz1nki1prpq4"))))
+ "16w96jrhb6qf62fgznk53f55yhfv81damghdjn31k5hirnmza1qf"))))
(build-system gnu-build-system)
(arguments
`(#:modules ((guix build gnu-build-system)
--
2.6.3
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: 0002-gnu-chicken-Use-modify-phases-syntax.patch --]
[-- Type: text/x-patch, Size: 1273 bytes --]
From 98fe76c36134f78346b18f62b09cc1ba42d11dde Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <rekado@elephly.net>
Date: Sun, 20 Mar 2016 17:10:41 +0100
Subject: [PATCH 2/4] gnu: chicken: Use "modify-phases" syntax.
* gnu/packages/scheme.scm (chicken)[arguments]: Use "modify-phases"
syntax.
---
gnu/packages/scheme.scm | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/scheme.scm b/gnu/packages/scheme.scm
index 5361f23..cb113e8 100644
--- a/gnu/packages/scheme.scm
+++ b/gnu/packages/scheme.scm
@@ -326,11 +326,12 @@ mashups, office (web agendas, mail clients, ...), etc.")
;; No `configure' script; run "make check" after "make install" as
;; prescribed by README.
- #:phases (alist-cons-after
- 'install 'check
- (assoc-ref %standard-phases 'check)
- (fold alist-delete %standard-phases
- '(configure check)))
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure)
+ (delete 'check)
+ (add-after 'install 'check
+ (assoc-ref %standard-phases 'check)))
#:make-flags (let ((out (assoc-ref %outputs "out")))
(list "PLATFORM=linux"
--
2.6.3
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #4: 0003-gnu-chicken-Disable-port-tests.patch --]
[-- Type: text/x-patch, Size: 1232 bytes --]
From 345d60f91763c5edf696c7e9c27675655423b8e3 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <rekado@elephly.net>
Date: Sun, 20 Mar 2016 23:01:11 +0100
Subject: [PATCH 3/4] gnu: chicken: Disable port tests.
* gnu/packages/scheme.scm (chicken)[arguments]: Do not run port tests.
---
gnu/packages/scheme.scm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/scheme.scm b/gnu/packages/scheme.scm
index cb113e8..b8b2dba 100644
--- a/gnu/packages/scheme.scm
+++ b/gnu/packages/scheme.scm
@@ -331,7 +331,14 @@ mashups, office (web agendas, mail clients, ...), etc.")
(delete 'configure)
(delete 'check)
(add-after 'install 'check
- (assoc-ref %standard-phases 'check)))
+ (assoc-ref %standard-phases 'check))
+ (add-after 'unpack 'disable-broken-tests
+ (lambda _
+ ;; The port tests fail with this error:
+ ;; Error: (line 294) invalid escape-sequence '\x o'
+ (substitute* "tests/runtests.sh"
+ (("\\$interpret -s port-tests\\.scm") ""))
+ #t)))
#:make-flags (let ((out (assoc-ref %outputs "out")))
(list "PLATFORM=linux"
--
2.6.3
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #5: 0004-gnu-chicken-Build-with-GCC-4.8.patch --]
[-- Type: text/x-patch, Size: 1429 bytes --]
From fd4730fc5cf431d42d9ae670544eb7d6408d78e3 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <rekado@elephly.net>
Date: Sun, 20 Mar 2016 23:03:24 +0100
Subject: [PATCH 4/4] gnu: chicken: Build with GCC 4.8.
* gnu/packages/scheme.scm (chicken)[native-inputs]: Add GCC 4.8.
---
gnu/packages/scheme.scm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/gnu/packages/scheme.scm b/gnu/packages/scheme.scm
index b8b2dba..f166293 100644
--- a/gnu/packages/scheme.scm
+++ b/gnu/packages/scheme.scm
@@ -36,6 +36,7 @@
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages avahi)
#:use-module (gnu packages libphidget)
+ #:use-module (gnu packages gcc)
#:use-module (gnu packages glib)
#:use-module (gnu packages gtk)
#:use-module (gnu packages libffi)
@@ -347,6 +348,12 @@ mashups, office (web agendas, mail clients, ...), etc.")
;; Parallel builds are not supported, as noted in README.
#:parallel-build? #f))
+ ;; One of the tests ("testing direct invocation can detect calls of too
+ ;; many arguments...") times out when building with a more recent GCC.
+ ;; The problem was reported here:
+ ;; https://lists.gnu.org/archive/html/chicken-hackers/2015-04/msg00059.html
+ (native-inputs
+ `(("gcc" ,gcc-4.8)))
(home-page "http://www.call-cc.org/")
(synopsis "R5RS Scheme implementation that compiles native code via C")
(description
--
2.6.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Update and fix Chicken Scheme.
2016-03-20 22:07 [PATCH] Update and fix Chicken Scheme Ricardo Wurmus
@ 2016-03-21 16:35 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2016-03-21 16:35 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: guix-devel
Ricardo Wurmus <rekado@elephly.net> skribis:
> From e2fc4f5bfac95e51ba0494ffccd6354680a73385 Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus <rekado@elephly.net>
> Date: Sun, 20 Mar 2016 17:10:12 +0100
> Subject: [PATCH 1/4] gnu: chicken: Update to 4.10.0.
>
> * gnu/packages/scheme.scm (chicken): Update to 4.10.0.
OK!
> From 98fe76c36134f78346b18f62b09cc1ba42d11dde Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus <rekado@elephly.net>
> Date: Sun, 20 Mar 2016 17:10:41 +0100
> Subject: [PATCH 2/4] gnu: chicken: Use "modify-phases" syntax.
>
> * gnu/packages/scheme.scm (chicken)[arguments]: Use "modify-phases"
> syntax.
OK.
> From 345d60f91763c5edf696c7e9c27675655423b8e3 Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus <rekado@elephly.net>
> Date: Sun, 20 Mar 2016 23:01:11 +0100
> Subject: [PATCH 3/4] gnu: chicken: Disable port tests.
>
> * gnu/packages/scheme.scm (chicken)[arguments]: Do not run port tests.
OK. I think that’s reasonable. It’s an improvement anyway, and we can
always discuss it with upstream eventually.
> From fd4730fc5cf431d42d9ae670544eb7d6408d78e3 Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus <rekado@elephly.net>
> Date: Sun, 20 Mar 2016 23:03:24 +0100
> Subject: [PATCH 4/4] gnu: chicken: Build with GCC 4.8.
>
> * gnu/packages/scheme.scm (chicken)[native-inputs]: Add GCC 4.8.
OK.
Thank you!
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-03-21 16:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-20 22:07 [PATCH] Update and fix Chicken Scheme Ricardo Wurmus
2016-03-21 16:35 ` Ludovic Courtès
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.