unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Guile extensions path (includes PATCH)
@ 2020-06-30  2:54 Aleix Conchillo Flaqué
  2020-07-29 18:07 ` Aleix Conchillo Flaqué
  0 siblings, 1 reply; 2+ messages in thread
From: Aleix Conchillo Flaqué @ 2020-06-30  2:54 UTC (permalink / raw)
  To: guile-user, guile-devel


[-- Attachment #1.1: Type: text/plain, Size: 962 bytes --]

Hi,

I was adding guile-ncurses to homebrew-guile and realized there might be an
issue in the documentation.

According to this:

https://www.gnu.org/software/guile/manual/html_node/Modules-and-Extensions.html

the extensions directory is /usr/lib/guile/3.0/ (or
/usr/local/lib/guile/3.0/m depending on your libdir). This is the directory
where guile-ncurses installs libguile-ncurses library.

However, I then saw that guile-readline was installed in
/usr/local/lib/guile/3.0/extensions. I initially thought this was a
Homebrew specific location. I looked at the Formula but there's nothing
specific to Homebrew there.

Then, I looked at guile and found this:

http://git.savannah.gnu.org/cgit/guile.git/tree/libguile/Makefile.am#n772

which indicates the extensions path is really /usr/lib/guile/3.0/extensions.

I patched guile-ncurses with this and it works fine now on macOS.

In case this is correct, I'm including a patch to fix the manual.

Best,

Aleix

[-- Attachment #1.2: Type: text/html, Size: 3546 bytes --]

[-- Attachment #2: 0001-doc-update-guile-extensions-path.patch --]
[-- Type: application/octet-stream, Size: 1139 bytes --]

From 4c0ecac85bb3c1af9b66f00963d34e96096c3889 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= <aconchillo@gmail.com>
Date: Mon, 29 Jun 2020 19:51:30 -0700
Subject: [PATCH] doc: update guile extensions path

* doc/ref/api-foreign.texi: append "extensions" to extensiondir.
---
 doc/ref/api-foreign.texi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/ref/api-foreign.texi b/doc/ref/api-foreign.texi
index b0d6c249b..b0306fadf 100644
--- a/doc/ref/api-foreign.texi
+++ b/doc/ref/api-foreign.texi
@@ -373,7 +373,7 @@ When loaded with @code{(use-modules (foo bar))}, the
 object file in Guile's @code{extensiondir}, which is usually a
 subdirectory of the @code{libdir}. For example, if your libdir is
 @file{/usr/lib}, the @code{extensiondir} for the Guile @value{EFFECTIVE-VERSION}.@var{x}
-series will be @file{/usr/lib/guile/@value{EFFECTIVE-VERSION}/}.
+series will be @file{/usr/lib/guile/@value{EFFECTIVE-VERSION}/extensions}.
 
 The extension path includes the major and minor version of Guile (the
 ``effective version''), because Guile guarantees compatibility within a
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-07-29 18:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-30  2:54 Guile extensions path (includes PATCH) Aleix Conchillo Flaqué
2020-07-29 18:07 ` Aleix Conchillo Flaqué

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).