From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.devel Subject: Re: The load path Date: Thu, 18 Nov 2004 19:54:56 +0000 Message-ID: <419CFE10.7090407@ossau.uklinux.net> References: <1097949129.4178.31.camel@localhost> <418C126D.5010802@ossau.uklinux.net> <87u0s3r30n.fsf@trouble.defaultvalue.org> <418D0EAE.40703@ossau.uklinux.net> <1100112232.3368.19.camel@localhost> <41952B9C.1020408@ossau.uklinux.net> <87y8h65ze4.fsf@trouble.defaultvalue.org> <41973812.9030106@ossau.uklinux.net> <1100537017.19830.147.camel@localhost> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1100807908 5429 80.91.229.6 (18 Nov 2004 19:58:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 18 Nov 2004 19:58:28 +0000 (UTC) Cc: guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Nov 18 20:58:22 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 1CUsQ9-00064r-00 for ; Thu, 18 Nov 2004 20:58:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CUsZ0-0003Qf-J1 for guile-devel@m.gmane.org; Thu, 18 Nov 2004 15:07:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CUsYx-0003QZ-EB for guile-devel@gnu.org; Thu, 18 Nov 2004 15:07:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CUsYv-0003QN-Hd for guile-devel@gnu.org; Thu, 18 Nov 2004 15:07:27 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CUsYv-0003QK-ER for guile-devel@gnu.org; Thu, 18 Nov 2004 15:07:25 -0500 Original-Received: from [80.84.72.33] (helo=mail3.uklinux.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CUsOl-0007sx-MW for guile-devel@gnu.org; Thu, 18 Nov 2004 14:56:55 -0500 Original-Received: from laruns (host81-130-122-81.in-addr.btopenworld.com [81.130.122.81]) by mail3.uklinux.net (Postfix) with ESMTP id 25D48409FC1; Thu, 18 Nov 2004 19:56:55 +0000 (UTC) Original-Received: from ossau.uklinux.net (laruns [127.0.0.1]) by laruns (Postfix) with ESMTP id 082EB6FA34; Thu, 18 Nov 2004 19:54:57 +0000 (GMT) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031107 Debian/1.5-3 X-Accept-Language: en Original-To: Andy Wingo In-Reply-To: <1100537017.19830.147.camel@localhost> 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: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:4405 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:4405 Andy Wingo wrote: >On Sun, 2004-11-14 at 10:48 +0000, Neil Jerram wrote: > > >>Rob Browning wrote: >> >> >>> --with-built-in-load-path='("foo" default "bar")' >>> >>> >>This looks good to me. If this option is not specified, I presume the >>default load path is ("$prefix/share/guile/site" >>"$prefix/share/guile/$effective_version" "$prefix/share/guile") >> >> > >This sounds good to me as well for 1.7, but with one reservation: there >are hordes of linux users that just do ./configure; make; make install >for all autoconf'd software they download. I don't want to have to tell >each one of them to set --prefix if they want the program to actually >work. > I'm not sure what you mean by setting --prefix each time. All that the user needs to do is - once-off - add (set! %load-path (cons "/usr/local/share/guile" %load-path)) to their .guile or the system init.scm. And if the user can do ./configure etc., I reckon they can do this. (And who's to say that they haven't decided to install autoconf'd software in /opt/local, for example?) > This means, distributors must be made aware that guile should >follow the system C compiler's conventions, so that users are not >surprised. > > Personally, I've been surprised in the past _by_ the C compiler's conventions. I seem to recall having serious trouble with one version of Gtk in /usr and another version in /usr/local, because /usr/local comes _before_ /usr in the include path, but _after_ it in the linker path! So - unless I was being really stupid at the time - not a good example to follow. >Furthermore, if they put a /usr/local dir in the path, it should be >before the default paths. > > I think it's probably unwise to set up a system so that ordering is important. However, with the .guile/init.scm approach, the user has complete control here. Regards, Neil _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel