From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Greg Troxel Newsgroups: gmane.lisp.guile.user Subject: Re: Where to install files? Date: 10 Oct 2005 20:18:37 -0400 Message-ID: References: <87y851xja3.fsf@ossau.uklinux.net> <87wtkl6oq7.fsf@zip.com.au> <873bn9t241.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 1128990210 22906 80.91.229.2 (11 Oct 2005 00:23:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 11 Oct 2005 00:23:30 +0000 (UTC) Cc: guile-user@gnu.org, Kevin Ryde Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Oct 11 02:23:26 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EP7ux-0000rY-SR for guile-user@m.gmane.org; Tue, 11 Oct 2005 02:22:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EP7ux-0004Kp-52 for guile-user@m.gmane.org; Mon, 10 Oct 2005 20:22:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EP7qp-0002yB-CK for guile-user@gnu.org; Mon, 10 Oct 2005 20:18:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EP7qo-0002xi-Im for guile-user@gnu.org; Mon, 10 Oct 2005 20:18:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EP7qo-0002xf-FC for guile-user@gnu.org; Mon, 10 Oct 2005 20:18:38 -0400 Original-Received: from [192.1.100.210] (helo=fnord.ir.bbn.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EP7qo-0007E4-DO for guile-user@gnu.org; Mon, 10 Oct 2005 20:18:38 -0400 Original-Received: by fnord.ir.bbn.com (Postfix, from userid 10853) id E2B095286; Mon, 10 Oct 2005 20:18:37 -0400 (EDT) Original-To: Neil Jerram In-Reply-To: <873bn9t241.fsf@ossau.uklinux.net> Original-Lines: 53 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 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:4830 Archived-At: I concur with most of your comments, but would like to make a metapoint: various OS/distributions/packaging systems have rules about what goes where, and guile should be such that it can be made to behave 'right' for these varying definitions of right. I think this is implicit in your comments, but wanted to raise it explicitly. All that said, most packaging systems (pkgsrc, FreeBSD ports, typical Linux) put all programs under the same prefix, so using "guile's prefix" vs "our prefix" amounts to the same thing. So it's only non-distribution-managed that's an issue. My own view is that a package configured with --prefix=/usr/foo should install files only under /usr/foo. This leads me with guile to want to extend load-path to include guile directories in other prefixes. (5) location of the system init file (e.g. /etc/guile/1.6/init.scm, default=init.scm) Using --sysconfdir to specify this is/would be nice, and would make it easy to hook in a new prefix. Guile's guile.m4 currently provides GUILE_SITE_DIR, but that feels wrong to me both because it doesn't handle the (2)/(3) distinction above, and because of the /site ending - I think of site as being for code put there by the local sysadmin, not for code from packages at all. I agree, but really we need three levels: pkgsrc [wrong word, but distribution-managed] site [managed for a group of machines] local [just this machine] With respect to /usr/local, I believe that guile should by default only look in its own prefix. Whether /usr/local should be searched e.g by programs in /usr is a distribution-specific decision. It may be worthwhile to have a configure argument to add prefixes whose guile directories should be searched, so that ./configure --prefix=/usr/pkg --searchprefix=/usr/bar --searchprefix=/usr/baz would result in a guile installed in /usr/pkg that not only looks in /usr/pkg/share/guile/1.6 but also /usr/bar/share/guile/1.6. It might also be nice to have a run-time method to guile-configer --addsearchprefix=/usr/bar so that someone building another package to /usr/bar can invoke this on the system guile to hook in the new path. -- Greg Troxel _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user