unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* The load path
@ 2004-10-16 17:52 Andy Wingo
  2004-10-17 19:40 ` Rob Browning
                   ` (2 more replies)
  0 siblings, 3 replies; 39+ messages in thread
From: Andy Wingo @ 2004-10-16 17:52 UTC (permalink / raw)


Hey all,

We all know know that guile is a great extension language. However,
these days I'm writing apps that are Just Guile -- no C frontend at all.
When doing so, I run into some issues with the load path.

First off, the load path for a guile in /usr/bin/guile doesn't
include /usr/local. I was discussing this with Rob today on IRC, and we
agreed that /usr/local should be added onto the load path for a guile
in /usr, so that local packages can be used without hacking LOAD_PATH.
Otherwise you have to run wrapper scripts/environment variable hacks
before running your code. This is analogous to the behavior of the C
compiler, and so shouldn't be too controversial. /usr/local should
precede /usr in the ordering, so that local changes override the
distribution's defaults. This is also in line with the behavior of the C
compiler. (Dunno if $prefix/local should only be added if $prefix==/usr,
or always.)

Secondly, guile's load path includes ".". This is unexpected. The set of
includes should not depend on the working directory of the user. Also,
as in the case of $PATH and $LD_LIBRARY_PATH, this exposes a security
risk. The only time I can imagine this as being useful is within a
source tree, when you control the environment anyway.

Obviously fixing these cannot be done in the stable branch, because it
will likely break people's code and hacks around the problem. But I'd
like to see it go in to guile 1.7. Sound OK?

Regards,
-- 
Andy Wingo <wingo@pobox.com>
http://ambient.2y.net/wingo/


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


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

end of thread, other threads:[~2004-11-19 14:46 UTC | newest]

Thread overview: 39+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-16 17:52 The load path Andy Wingo
2004-10-17 19:40 ` Rob Browning
2004-10-17 23:13 ` Greg Troxel
2004-11-05 15:05 ` Marius Vollmer
2004-11-05 15:25   ` Paul Jarc
2004-11-05 16:43     ` Rob Browning
2004-11-05 17:43       ` Paul Jarc
2004-11-05 18:59         ` Rob Browning
2004-11-05 19:22           ` Paul Jarc
2004-11-05 22:05             ` Rob Browning
2004-11-06  7:25               ` Paul Jarc
2004-11-06 16:19                 ` Rob Browning
2004-11-06 22:58                   ` Rob Browning
2004-11-05 16:15   ` Rob Browning
2004-11-05 17:31   ` Andreas Rottmann
2004-11-05 18:57     ` Greg Troxel
2004-11-05 19:07     ` Rob Browning
2004-11-05 19:19   ` Greg Troxel
2004-11-05 23:53     ` Neil Jerram
2004-11-06  4:54       ` Rob Browning
2004-11-06 14:38         ` Andreas Vögele
2004-11-06 17:49         ` Neil Jerram
2004-11-06 21:21           ` Rob Browning
2004-11-07 18:46             ` Neil Jerram
2004-11-07 21:16               ` Rob Browning
2004-11-09 15:22               ` Paul Jarc
2004-11-10 18:43           ` Andy Wingo
2004-11-11 13:23             ` Greg Troxel
2004-11-12 21:31             ` Neil Jerram
2004-11-13  0:22               ` Greg Troxel
2004-11-13  1:08                 ` Rob Browning
2004-11-13 16:12                   ` Greg Troxel
2004-11-14 11:02                     ` Neil Jerram
2004-11-14 14:05                       ` Greg Troxel
2004-11-18 19:44                         ` Neil Jerram
2004-11-19 14:46                           ` Greg Troxel
2004-11-14 10:48                   ` Neil Jerram
2004-11-15 16:43                     ` Andy Wingo
2004-11-18 19:54                       ` Neil Jerram

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).