-
Notifications
You must be signed in to change notification settings - Fork 491
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
guile 3.0.10 requires additional patch #3 to enable readline support. Furthermore patch #4 adds a minor fix.
- Loading branch information
Showing
3 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
guile/0003-Fix-make-custom-port-in-case-encoding-is-f.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
From 72b85f8e6a369e6aef4c6bd6bb233c0cacb80b03 Mon Sep 17 00:00:00 2001 | ||
From: =?UTF-8?q?Hannes=20M=C3=BCller?= <> | ||
Date: Sat, 21 Dec 2024 16:55:13 +0100 | ||
Subject: [PATCH] Fix make-custom-port in case encoding is #f | ||
|
||
On MSYS2 readline support failed, ref. | ||
https://github.com/msys2/MSYS2-packages/issues/5079 | ||
|
||
It turns out (fluid-ref %default-port-encoding) returns #f. The later code | ||
is prepared to handle #f for encoding, but not the assignment to encoding. | ||
--- | ||
module/ice-9/custom-ports.scm | 4 +++- | ||
1 file changed, 3 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/module/ice-9/custom-ports.scm b/module/ice-9/custom-ports.scm | ||
index 6010fd94f..bc9de8f64 100644 | ||
--- a/module/ice-9/custom-ports.scm | ||
+++ b/module/ice-9/custom-ports.scm | ||
@@ -127,7 +127,9 @@ | ||
(id "custom-port") | ||
(print (make-default-print #:id id)) | ||
(truncate default-truncate) | ||
- (encoding (string->symbol (fluid-ref %default-port-encoding))) | ||
+ (encoding (if (string? (fluid-ref %default-port-encoding)) | ||
+ (string->symbol (fluid-ref %default-port-encoding)) | ||
+ (fluid-ref %default-port-encoding))) | ||
(conversion-strategy (fluid-ref %default-port-conversion-strategy)) | ||
(close-on-gc? #f)) | ||
"Create a custom port whose behavior is determined by the methods passed | ||
-- | ||
2.45.2 | ||
|
32 changes: 32 additions & 0 deletions
32
guile/0004-libguile-scm.h-fix-BUILDING_LIBGUILE-for-Werror-unde.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
From 696151ca382c7b166d349f704812dd73bc2fa7a7 Mon Sep 17 00:00:00 2001 | ||
From: =?UTF-8?q?Hannes=20M=C3=BCller?= <> | ||
Date: Sat, 21 Dec 2024 19:20:17 +0100 | ||
Subject: [PATCH] libguile/scm.h: fix BUILDING_LIBGUILE for -Werror=undef | ||
|
||
BUILDING_LIBGUILE is not always defined. This is | ||
signaled using -Werror=undef in code using libguile. | ||
|
||
This fixes commit dc3a3a84f908f4a16e95a2c3bb412861521960dc | ||
--- | ||
libguile/scm.h | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/libguile/scm.h b/libguile/scm.h | ||
index 4d079b1a8..180b40159 100644 | ||
--- a/libguile/scm.h | ||
+++ b/libguile/scm.h | ||
@@ -718,9 +718,9 @@ enum scm_tc8_tags | ||
|
||
/* SCM_API is a macro prepended to all function and data definitions | ||
which should be exported from libguile. */ | ||
-#if BUILDING_LIBGUILE && HAVE_VISIBILITY | ||
+#if defined BUILDING_LIBGUILE && HAVE_VISIBILITY | ||
# define SCM_API extern __attribute__((__visibility__("default"))) | ||
-#elif BUILDING_LIBGUILE && (defined _WIN32 || defined __CYGWIN__) | ||
+#elif defined BUILDING_LIBGUILE && (defined _WIN32 || defined __CYGWIN__) | ||
# define SCM_API __declspec(dllexport) extern | ||
#elif defined _WIN32 || defined __CYGWIN__ | ||
# define SCM_API __declspec(dllimport) extern | ||
-- | ||
2.45.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters