From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: The load path Date: Sat, 16 Oct 2004 19:52:08 +0200 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <1097949129.4178.31.camel@localhost> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1098022498 26785 80.91.229.6 (17 Oct 2004 14:14:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 17 Oct 2004 14:14:58 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Oct 17 16:14:52 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CJBoB-0008IW-00 for ; Sun, 17 Oct 2004 16:14:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CJBvQ-0004PM-Rm for guile-devel@m.gmane.org; Sun, 17 Oct 2004 10:22:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CJBus-00049Q-Rm for guile-devel@gnu.org; Sun, 17 Oct 2004 10:21:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CJBus-00048t-6o for guile-devel@gnu.org; Sun, 17 Oct 2004 10:21:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CJBur-00048d-Vm for guile-devel@gnu.org; Sun, 17 Oct 2004 10:21:46 -0400 Original-Received: from [216.166.232.203] (helo=johnson-resources.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CJBnO-0005rt-TC for guile-devel@gnu.org; Sun, 17 Oct 2004 10:14:03 -0400 Original-Received: from localhost (mantis.schoolnet.na [::ffff:196.44.140.238]) (AUTH: LOGIN wingo) by johnson-resources.com with esmtp; Sun, 17 Oct 2004 10:13:56 -0400 id 001201E2.41727E27.00002BDC Original-Received: from wingo by localhost with local (Exim 3.36 #1 (Debian)) id 1CIsjF-0006V9-00 for ; Sat, 16 Oct 2004 19:52:29 +0200 Original-To: guile-devel X-Mailer: Evolution 2.0.1 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:4261 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:4261 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 http://ambient.2y.net/wingo/ _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel