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: Compiled load path issues Date: Sun, 18 Oct 2009 17:36:09 +0200 Message-ID: <871vl090k6.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1255880292 13837 80.91.229.12 (18 Oct 2009 15:38:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 Oct 2009 15:38:12 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Oct 18 17:38:05 2009 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 1MzXpa-00015p-3S for guile-devel@m.gmane.org; Sun, 18 Oct 2009 17:38:02 +0200 Original-Received: from localhost ([127.0.0.1]:52777 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MzXpZ-00054p-Hj for guile-devel@m.gmane.org; Sun, 18 Oct 2009 11:38:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MzXoM-0004RN-8l for guile-devel@gnu.org; Sun, 18 Oct 2009 11:36:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MzXoH-0004Pg-Jj for guile-devel@gnu.org; Sun, 18 Oct 2009 11:36:45 -0400 Original-Received: from [199.232.76.173] (port=54671 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MzXoH-0004Pb-1h for guile-devel@gnu.org; Sun, 18 Oct 2009 11:36:41 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:42719) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MzXoG-0000xB-JZ for guile-devel@gnu.org; Sun, 18 Oct 2009 11:36:40 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1MzXoD-0000Sv-7A for guile-devel@gnu.org; Sun, 18 Oct 2009 17:36:37 +0200 Original-Received: from reverse-83.fdn.fr ([80.67.176.83]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 18 Oct 2009 17:36:37 +0200 Original-Received: from ludo by reverse-83.fdn.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 18 Oct 2009 17:36:37 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 48 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: reverse-83.fdn.fr X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 27 =?iso-8859-1?Q?Vend=E9miaire?= an 218 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 821D 815D 902A 7EAB 5CEE D120 7FBA 3D4F EB1F 5364 X-OS: x86_64-unknown-linux-gnu User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:KzLe98x7VTPNN6S6j7BuwpReths= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:9502 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Hello! Once upon a time, if ‘chbouib.go’ is in the vicinity of ‘chbouib.scm’, then ‘(use-modules (chbouib))’ would load ‘chbouib.go’. This is no longer the case, but can be remedied with something like this: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/libguile/load.c b/libguile/load.c index 50af256..194d1e5 100644 --- a/libguile/load.c +++ b/libguile/load.c @@ -726,7 +726,9 @@ SCM_DEFINE (scm_primitive_load_path, "primitive-load-path", 0, 0, 1, exception_on_not_found = SCM_BOOL_T; full_filename = scm_sys_search_load_path (filename); - compiled_filename = scm_search_path (*scm_loc_load_compiled_path, + compiled_filename = scm_search_path (scm_append + (scm_list_2 (*scm_loc_load_compiled_path, + *scm_loc_load_path)), filename, *scm_loc_load_compiled_extensions, SCM_BOOL_T); --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Andy: can you comment? What was the idea behind ‘%load-compiled-path’? Besides, ‘scm_search_path ()’ was changed incompatibly compared to 1.8 in 22f4ee48822db5e30df3abf9a11b6066f2bab9d3. I’m wary about such incompatibilities and would like it if we could (1) list them, and (2) avoid them unless we really really can’t think of any other way. In this particular case, do you have an idea on how to avoid it? Thanks, Ludo’. --=-=-=--