From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludovic.courtes@laas.fr (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.user Subject: Re: Where to install files? Date: Wed, 12 Oct 2005 10:29:46 +0200 Organization: LAAS-CNRS Message-ID: <87r7ar16kl.fsf@laas.fr> References: <87y851xja3.fsf@ossau.uklinux.net> <87wtkl6oq7.fsf@zip.com.au> <873bn9t241.fsf@ossau.uklinux.net> <87y84zrj2o.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 1129109378 32343 80.91.229.2 (12 Oct 2005 09:29:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 12 Oct 2005 09:29:38 +0000 (UTC) Cc: guile-user@gnu.org, Greg Troxel Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Oct 12 11:29:32 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EPcuq-0002EA-BJ for guile-user@m.gmane.org; Wed, 12 Oct 2005 11:28:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EPcuo-00027b-Jq for guile-user@m.gmane.org; Wed, 12 Oct 2005 05:28:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EPc2W-0003Eo-PE for guile-user@gnu.org; Wed, 12 Oct 2005 04:32:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EPc2U-0003EF-I4 for guile-user@gnu.org; Wed, 12 Oct 2005 04:32:43 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EPc2U-0003EB-7Y for guile-user@gnu.org; Wed, 12 Oct 2005 04:32:42 -0400 Original-Received: from [140.93.0.15] (helo=laas.laas.fr) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EPc2U-0006TW-20 for guile-user@gnu.org; Wed, 12 Oct 2005 04:32:42 -0400 Original-Received: by laas.laas.fr (8.13.1/8.13.4) with SMTP id j9C8Wdce005782; Wed, 12 Oct 2005 10:32:40 +0200 (CEST) Original-To: Neil Jerram X-URL: http://www.laas.fr/~lcourtes/ X-Revolutionary-Date: 21 =?iso-8859-1?Q?Vend=E9miaire?= an 214 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEB1F5364 X-PGP-Key: http://www.laas.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 821D 815D 902A 7EAB 5CEE D120 7FBA 3D4F EB1F 5364 X-OS: powerpc-unknown-linux-gnu Mail-Followup-To: Neil Jerram , Greg Troxel , guile-user@gnu.org In-Reply-To: <87y84zrj2o.fsf@ossau.uklinux.net> (Neil Jerram's message of "Tue, 11 Oct 2005 19:42:55 +0100") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) X-Spam-Score: 0 () X-Scanned-By: MIMEDefang at CNRS-LAAS 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:4837 Archived-At: Hi, Neil Jerram writes: > - At Guile configuration time, we allow the builder to specify an > arbitrary set of load path directories, each with a tag and a > description, something (semantically speaking) like this: > > '(("/usr/share/guile/1.6" > "1.6" > "Install location for Guile 1.6's own Scheme files") > > ("/usr/share/guile/site" > "site" > "Install location for site-specific Scheme files") > > ("/opt/gnome/guile" > "gnome" > "Install location for GNOME-related Scheme files") > > ("/usr/local/share/guile" > "local" > "Version-independent non-distribution-managed Scheme files") > > ("/usr/local/share/guile/1.6" > "local-1.6" > "1.6-dependent non-distribution-managed Scheme files")) > > - Guile would always then initialize its %load-path to the union of > all these locations. > > - guile.m4 would provide a --with-guile-scheme-dir=TAG option to > ./configure, which would set GUILE_SCHEME_DIR to the location for > TAG, and a macro > > GUILE_SCHEME(default-tag) I like this approach quite well. It's generic, and it can be used handle both Guile versioning and module versioning. Having it in `init.scm' or some such rather than hardcoded at configuration time sounds like a good idea too. Just a couple of notes. I might look better to use either an alist or keywords (like `((:tag "1.6" :dir "/usr..."))') to store this information, but this is really nitpicking. As for the contents of this list, I believe the `site' and `local' tags should by default be configured as `site-MAJOR.MINOR' and `local-MAJOR.MINOR' so that nothing ends up being installed in unversioned directories. Thanks, Ludovic. _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user