aboutsummaryrefslogtreecommitdiffstats
path: root/mcgoron/guix/patches
diff options
context:
space:
mode:
authorGravatar Peter McGoron 2025-08-12 18:43:16 -0400
committerGravatar Peter McGoron 2025-08-12 18:43:16 -0400
commit4fc83397a58bec9efc63292b5d737eab43fdefea (patch)
treebf6277b8edce51ba6771455d5935088e0f115222 /mcgoron/guix/patches
parentpatch foment to respect new envar R7RS_LIBRARY_PATH (diff)
patch chibi to use R7RS_LIBRARY_PATH
Diffstat (limited to 'mcgoron/guix/patches')
-rw-r--r--mcgoron/guix/patches/chibi-scheme-0.11-library-path.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/mcgoron/guix/patches/chibi-scheme-0.11-library-path.patch b/mcgoron/guix/patches/chibi-scheme-0.11-library-path.patch
new file mode 100644
index 0000000..309681b
--- /dev/null
+++ b/mcgoron/guix/patches/chibi-scheme-0.11-library-path.patch
@@ -0,0 +1,21 @@
+diff --git a/eval.c b/eval.c
+index 8a7f0de2..41239fa4 100644
+--- a/eval.c
++++ b/eval.c
+@@ -509,9 +509,16 @@ void sexp_init_eval_context_globals (sexp ctx) {
+ sexp_init_eval_context_bytecodes(ctx);
+ #endif
+ sexp_global(ctx, SEXP_G_MODULE_PATH) = SEXP_NULL;
++
++
++ user_path = getenv("R7RS_LIBRARY_PATH");
++ if (user_path)
++ sexp_add_path(ctx, user_path);
++
+ user_path = getenv(SEXP_MODULE_PATH_VAR);
+ if (!user_path) user_path = sexp_default_user_module_path;
+ sexp_add_path(ctx, user_path);
++
+ no_sys_path = getenv(SEXP_NO_SYSTEM_PATH_VAR);
+ if (!no_sys_path || strcmp(no_sys_path, "0")==0)
+ sexp_add_path(ctx, sexp_default_module_path);