From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.user Subject: Re: Modified load-path proposal Date: Thu, 13 Oct 2005 23:08:01 +0100 Message-ID: <87u0fl3wam.fsf@ossau.uklinux.net> References: <878xwx5ld2.fsf@ossau.uklinux.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1129241424 17747 80.91.229.2 (13 Oct 2005 22:10:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 13 Oct 2005 22:10:24 +0000 (UTC) Cc: Guile Users Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Oct 14 00:10:16 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EQBFE-0004w0-ET for guile-user@m.gmane.org; Fri, 14 Oct 2005 00:08:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EQBFD-0005ga-KY for guile-user@m.gmane.org; Thu, 13 Oct 2005 18:08:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EQBF8-0005gT-H8 for guile-user@gnu.org; Thu, 13 Oct 2005 18:08:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EQBF7-0005gH-29 for guile-user@gnu.org; Thu, 13 Oct 2005 18:08:06 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EQBF6-0005gE-TF for guile-user@gnu.org; Thu, 13 Oct 2005 18:08:04 -0400 Original-Received: from [80.84.72.33] (helo=mail3.uklinux.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EQBF6-0008Lc-CR for guile-user@gnu.org; Thu, 13 Oct 2005 18:08:04 -0400 Original-Received: from laruns (host81-130-31-36.in-addr.btopenworld.com [81.130.31.36]) by mail3.uklinux.net (Postfix) with ESMTP id 69CDF40A035; Thu, 13 Oct 2005 22:08:03 +0000 (UTC) Original-Received: from laruns (laruns [127.0.0.1]) by laruns (Postfix) with ESMTP id B36C36F71B; Thu, 13 Oct 2005 23:08:01 +0100 (BST) Original-To: Greg Troxel In-Reply-To: (Greg Troxel's message of "13 Oct 2005 14:40:14 -0400") User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:4842 Archived-At: Greg Troxel writes: > We need remove-load-path too, for cleanup. OK. (Actually, "add" should probably be "ensure", and only add the directory if not already in config; and "remove" should probably be "cleanup", and only do anything if there is nothing left under the relevant directory; but those are next-level details.) > It's not clear to me how the default version of config shows up in a > fresh guile build/install. I'd argue that only the traditional three > dirs in prefix should be there by default. Yes, agreed. (The default config.scm could be provided in the distro, or could be generated during the make.) > Perhaps configure can have > a "--add-load-path /usr/local/share/guile" to make the install search > this, and this can be invoked by packaging systems that want it. By I don't think we need this, because it's equivalent to just running guile-config add-load-path once after the install. > ;; 5. Code for GUILE_SCHEME_DIR autoconf macro > > This doesn't support the notion of putting things in > $(prefix)/share/guile, and adding that to the load path of the > existing guile when you do install. Yes it does (I think). If that's what you want, you just write your Makefile.am like this ... scmdatadir = $(datadir)/guile scmdata_DATA = whatever1.scm whatever2.scm ... and add an extra install step (for which I forget the syntax) that does guile-config add-load-path mydata $(datadir)/guile "My Location" Am I still missing something? > Perhaps setting that up should be > a standard pre-step before building the new package, but I believe > that a package configured with --prefix=/usr/foo should only write to > /usr/foo. I realize others disagree, but I'd like the mechanisms to > support this behavior. perhaps the tag for /usr/foo/share/guile > should be /usr/foo, so packages can search for a load dir by their > prefix. Perhaps there should be an optional argument that returns the > path now and causes creation of it at make install time. I don't see your point - can you be more concrete? Thanks, Neil _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user