From: ludovic.courtes@laas.fr (Ludovic Courtès)
Cc: Guile Users <guile-user@gnu.org>, Neil Jerram <neil@ossau.uklinux.net>
Subject: Re: Modified load-path proposal
Date: Mon, 17 Oct 2005 10:04:11 +0200 [thread overview]
Message-ID: <87ach8bmdg.fsf@laas.fr> (raw)
In-Reply-To: <rmi7jcedc08.fsf@fnord.ir.bbn.com> (Greg Troxel's message of "15 Oct 2005 11:40:39 -0400")
Hi,
Greg Troxel <gdt@ir.bbn.com> writes:
> before deciding about tags and descriptions, I think we need to be
> clearer on the semantics of these directories and why they'd be used.
> Let me take a stab at it, and I'm sure I'll leave out other's use
> cases.
I don't think we should reason about installation directories in terms
of packaging-system-managed vs. human-managed installations. I think
the packaging system is just a special case of the "human-managed
installation". However, packaging systems do provide an important
installation pattern that has to be made possible to use.
Looking at your proposal, I don't see why modules installed by a
packaging system would end up in a different directory than modules
installed "by hand". When I install a C program, whether "I" really
refers to me or to a packaging system, I can specify installation
directories with a very fine grain.
In fact, maybe we should just mimic Autoconf/Automake and the GNU
Standards[0] by (i) identifying exactly what the various installation
directories we care about are, (ii) ensuring that they can be configured
at installation-time, and (iii) make sure there's a way for Guile to
know about them. The good thing is that this is policy-neutral.
I guess the Guile-specific installation directories, for any given Guile
module set (I'm not talking about modules that come with Guile), are:
- `guileschemedir', which is where Guile Scheme source files should
get installed; by default, this could be
`/usr/share/guile/MAJOR.MINOR';
- `guilelibdir', which is where C libraries (glue code, wrappers,
etc.) that come with a module should go; by default, this could be
`/usr/local/lib';
- `guileobjectdir', which is where we'd put byte-compiled code if we
had a working VM. ;-)
At `make install'-time, we'd still need to use a mechanism like the one
Neil proposed in order to `add-load-path $(guileschemedir)'. We might
actually want to do this also for C libraries. [BTW, Neil's proposed
`config.scm' is not unlike `ld.so.conf' (or equivalent) for C code.]
>From the user's view point, this wouldn't be any different from what is
done when installing C programs:
$ ./configure --bindir=/usr/bin --guileschemedir=/there \
--guilelibdir=/usr/share/lib/guile/2.3
In summary, if we look at Neil's `config.scm', it really cares about
`guileschemedir' (or `load-path'), and that's it. So it might be
possible to make it contain just a simple list of directories.
OTOH, it might be a good idea to make it aware of `guilelibdir'. This
way, if Guile is able to load a `.scm' file, it would _always_ be able
to load the shared object it opens via `dynamic-link', no matter what
LTDL_LIBRARY_PATH and friends look like.
Hope this makes some sense,
Ludovic.
[0] http://www.gnu.org/prep/standards/html_node/Directory-Variables.html#Directory-Variables
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
next prev parent reply other threads:[~2005-10-17 8:04 UTC|newest]
Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-13 18:21 Modified load-path proposal Neil Jerram
2005-10-13 18:40 ` Greg Troxel
2005-10-13 22:08 ` Neil Jerram
2005-10-14 0:37 ` Greg Troxel
2005-10-14 1:28 ` Andreas Rottmann
2005-10-15 11:17 ` Neil Jerram
2005-10-15 15:03 ` Greg Troxel
2005-10-15 17:53 ` Neil Jerram
2005-10-22 23:16 ` Kevin Ryde
2005-10-28 17:45 ` Neil Jerram
2005-10-30 18:04 ` Neil Jerram
2005-10-30 18:15 ` Tomas Zerolo
2005-10-30 20:37 ` Thien-Thi Nguyen
2005-10-30 22:59 ` Neil Jerram
2005-10-31 10:55 ` Thien-Thi Nguyen
2005-10-31 19:22 ` Neil Jerram
2005-11-08 12:37 ` Thien-Thi Nguyen
2005-10-31 13:17 ` Tomas Zerolo
2005-10-30 23:48 ` Kevin Ryde
2005-10-31 13:20 ` Tomas Zerolo
2005-10-31 19:20 ` Neil Jerram
2005-10-31 23:54 ` Kevin Ryde
2005-11-12 9:47 ` Neil Jerram
2005-11-01 23:31 ` Vorfeed Canal
2005-11-12 17:54 ` Neil Jerram
2005-11-02 8:44 ` Ludovic Courtès
2005-12-03 13:05 ` Neil Jerram
2005-12-13 8:38 ` Ludovic Courtès
2005-12-16 0:16 ` Neil Jerram
2005-12-16 1:00 ` Neil Jerram
2005-12-16 9:55 ` Ludovic Courtès
2006-01-07 13:37 ` Neil Jerram
2006-01-11 4:49 ` steve tell
2006-01-12 18:01 ` Neil Jerram
2005-10-15 11:24 ` Neil Jerram
2005-10-15 15:01 ` Greg Troxel
2005-10-15 17:49 ` Neil Jerram
2005-10-14 7:24 ` Ludovic Courtès
2005-10-15 11:55 ` Neil Jerram
2005-10-15 15:40 ` Greg Troxel
2005-10-17 8:04 ` Ludovic Courtès [this message]
2005-10-17 17:52 ` Greg Troxel
2005-10-18 8:23 ` Search path for C libraries Ludovic Courtès
2005-10-18 10:12 ` Vorfeed Canal
2005-10-17 17:54 ` Modified load-path proposal Neil Jerram
2005-10-18 7:57 ` Ludovic Courtès
2005-10-19 22:30 ` Neil Jerram
2005-10-20 7:56 ` Vorfeed Canal
2005-10-20 8:05 ` Ludovic Courtès
2005-10-20 22:23 ` Neil Jerram
2005-10-21 7:59 ` Ludovic Courtès
2005-10-17 18:10 ` Neil Jerram
2005-10-18 16:16 ` Greg Troxel
2005-10-18 21:24 ` Vorfeed Canal
2005-10-19 22:29 ` Neil Jerram
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ach8bmdg.fsf@laas.fr \
--to=ludovic.courtes@laas.fr \
--cc=guile-user@gnu.org \
--cc=neil@ossau.uklinux.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).