From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.devel Subject: SLIB Date: Sat, 11 Aug 2007 13:36:25 +0200 Message-ID: <878x8icngm.fsf@chbouib.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1186832239 7621 80.91.229.12 (11 Aug 2007 11:37:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 11 Aug 2007 11:37:19 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Aug 11 13:37:17 2007 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IJpHQ-0003bt-Io for guile-devel@m.gmane.org; Sat, 11 Aug 2007 13:37:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IJpHP-0004v9-Ow for guile-devel@m.gmane.org; Sat, 11 Aug 2007 07:37:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IJpHL-0004u5-LU for guile-devel@gnu.org; Sat, 11 Aug 2007 07:37:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IJpHK-0004ti-1W for guile-devel@gnu.org; Sat, 11 Aug 2007 07:37:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IJpHJ-0004tZ-VX for guile-devel@gnu.org; Sat, 11 Aug 2007 07:37:09 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IJpHJ-00085D-Hc for guile-devel@gnu.org; Sat, 11 Aug 2007 07:37:09 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IJpHB-0003iM-K6 for guile-devel@gnu.org; Sat, 11 Aug 2007 13:37:01 +0200 Original-Received: from adh419.fdn.fr ([80.67.176.9]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 11 Aug 2007 13:37:01 +0200 Original-Received: from ludo by adh419.fdn.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 11 Aug 2007 13:37:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 41 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: adh419.fdn.fr X-URL: http://www.laas.fr/~lcourtes/ 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: i486-pc-linux-gnu User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:OCWBMrhD0kG0ldXQOwWh5NctguE= X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) 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: news.gmane.org gmane.lisp.guile.devel:6680 Archived-At: Hi, I'd like to fix the SLIB issue in 1.8.3. SLIB 3a4 works perfectly well with 1.8. The thing is that `(ice-9 slib)' is of no use. Instead of using it, I followed the SLIB instructions: $ guile -l /usr/share/slib/init/guile.init guile> (require 'primes) guile> (prime? 13) #t Note that the first time you use SLIB, it will create the library catalog, which requires write access to its directory. Our `(ice-9 slib)' is essentially a duplicate of `guile.init'. So I think what we really want in `(ice-9 slib)' is this (as already suggested by Greg [0]): (define-module (ice-9 slib)) (load-from-path "guile.init") Distributions could easily patch it so that it works out of the box. On Debian, that would become: (define-module (ice-9 slib)) (load "/usr/share/slib/init/guile.init") Now, it is true that `guile.init' contains too many Guile-specific things that ought to be maintained out of SLIB, as Mikael noted [1], but for the time being, I suggest that we just stick to this approach. FWIW, other `.init' files that come with SLIB are quite long as well. Ok to rewrite `(ice-9 slib)' as shown above? Thanks, Ludovic. [0] http://thread.gmane.org/gmane.lisp.guile.devel/6644 [1] http://thread.gmane.org/gmane.lisp.guile.devel/6645 _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel