From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Hulin Newsgroups: gmane.lisp.guile.bugs Subject: bug#10693: guild compile --load-path value is not processed with scm_parse_path, GUILE_LOAD_PATH env variable value is parsed. Date: Thu, 02 Feb 2012 00:46:34 +0000 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1328143671 31321 80.91.229.3 (2 Feb 2012 00:47:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 2 Feb 2012 00:47:51 +0000 (UTC) To: 10693@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Feb 02 01:47:49 2012 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rskq0-0003Iq-6m for guile-bugs@m.gmane.org; Thu, 02 Feb 2012 01:47:44 +0100 Original-Received: from localhost ([::1]:59643 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rskpz-0004CM-Ph for guile-bugs@m.gmane.org; Wed, 01 Feb 2012 19:47:43 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:41555) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rskpw-0004C5-8k for bug-guile@gnu.org; Wed, 01 Feb 2012 19:47:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rskpu-0000YI-Ld for bug-guile@gnu.org; Wed, 01 Feb 2012 19:47:40 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46048) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rskpu-0000Y3-Jv for bug-guile@gnu.org; Wed, 01 Feb 2012 19:47:38 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RskqI-0008DQ-8N for bug-guile@gnu.org; Wed, 01 Feb 2012 19:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ian Hulin Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Thu, 02 Feb 2012 00:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10693 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.132814365331537 (code B ref -1); Thu, 02 Feb 2012 00:48:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Feb 2012 00:47:33 +0000 Original-Received: from localhost ([127.0.0.1]:49671 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rskpn-0008CY-NB for submit@debbugs.gnu.org; Wed, 01 Feb 2012 19:47:32 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:37560) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rskpj-0008CG-5B for submit@debbugs.gnu.org; Wed, 01 Feb 2012 19:47:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RskpE-0008VU-T6 for submit@debbugs.gnu.org; Wed, 01 Feb 2012 19:46:57 -0500 Original-Received: from lists.gnu.org ([140.186.70.17]:46902) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RskpE-0008VM-OT for submit@debbugs.gnu.org; Wed, 01 Feb 2012 19:46:56 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:40701) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RskpD-0003mm-5M for bug-guile@gnu.org; Wed, 01 Feb 2012 19:46:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RskpA-0008To-UR for bug-guile@gnu.org; Wed, 01 Feb 2012 19:46:55 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:33345) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RskpA-0008SK-Kr for bug-guile@gnu.org; Wed, 01 Feb 2012 19:46:52 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Rskp7-0002wQ-GH for bug-guile@gnu.org; Thu, 02 Feb 2012 01:46:49 +0100 Original-Received: from cpc13-rdng21-2-0-cust334.15-3.cable.virginmedia.com ([82.12.149.79]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Feb 2012 01:46:49 +0100 Original-Received: from ian by cpc13-rdng21-2-0-cust334.15-3.cable.virginmedia.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Feb 2012 01:46:49 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 100 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cpc13-rdng21-2-0-cust334.15-3.cable.virginmedia.com User-Agent: Mozilla/5.0 (X11; Linux i686; rv:9.0) Gecko/20111229 Thunderbird/9.0 X-Enigmail-Version: 1.3.4 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:6153 Archived-At: Using this small test file load-path-test.scm using meta/uninstalled-env bash with V2.0.5: (eval-when (compile load eval) (format #t "version: ~s\n" (version) ) (format #t "%load-path: ~s\n" %load-path) (format #t "(access? (%search-load-path \"c++.scm\"): ~s\n" (%search-load-path "c++.scm"))) >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 1. Loading the test file (no extra %load-path items) ian@nanny-ogg ~/src/lilypond (T2026-1)>> guile -l load-path-test.scm ;;; note: source file /home/ian/src/lilypond/load-path-test.scm ;;; newer than compiled /home/ian/Dropbox/Development/Guile-and-Scheme/guile-2.0.5/cache/guile/ccache/2.0-LE-4-2.0/home/ian/src/lilypond/load-path-test.scm.go ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling /home/ian/src/lilypond/load-path-test.scm version: "2.0.5" %load-path: ("/home/ian/Dropbox/Development/Guile-and-Scheme/guile-2.0.5/module" "/home/ian/Dropbox/Development/Guile-and-Scheme/guile-2.0.5/guile-readline" "/home/ian/Dropbox/Development/Guile-and-Scheme/guile-2.0.5") (access? (%search-load-path "c++.scm"): #f ;;; compiled /home/ian/Dropbox/Development/Guile-and-Scheme/guile-2.0.5/cache/guile/ccache/2.0-LE-4-2.0/home/ian/src/lilypond/load-path-test.scm.go version: "2.0.5" %load-path: ("/home/ian/Dropbox/Development/Guile-and-Scheme/guile-2.0.5/module" "/home/ian/Dropbox/Development/Guile-and-Scheme/guile-2.0.5/guile-readline" "/home/ian/Dropbox/Development/Guile-and-Scheme/guile-2.0.5") (access? (%search-load-path "c++.scm"): #f # ^^^^^^^^^not found, not in %load-path - correct ^^^^^^^^^^^^ GNU Guile 2.0.5 Copyright (C) 1995-2012 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> ,q ian@nanny-ogg ~/src/lilypond (T2026-1)>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 2. Loading the test file (extra %load-path items specified with GUILE_LOAD_PATH environment variable) ian@nanny-ogg ~/src/lilypond (T2026-1)>> env GUILE_LOAD_PATH="/home/ian/src/lilypond:/home/ian/src/lilypond/scm" guile -l load-path-test.scmversion: "2.0.5" %load-path: ("/home/ian/Dropbox/Development/Guile-and-Scheme/guile-2.0.5" "/home/ian/Dropbox/Development/Guile-and-Scheme/guile-2.0.5/guile-readline" "/home/ian/Dropbox/Development/Guile-and-Scheme/guile-2.0.5/module" "/home/ian/src/lilypond" "/home/ian/src/lilypond/scm") #^^^^^^^^ env variable contents parsed with scm_parse_path ^^^^^^^^^^^ (access? (%search-load-path "c++.scm"): "/home/ian/src/lilypond/scm/c++.scm" #^^^^^^^^^^^^^^^^ file found - correct ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ GNU Guile 2.0.5 Copyright (C) 1995-2012 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> ,q >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 3. Using guild-compile ian@nanny-ogg ~/src/lilypond (T2026-1)>> guild compile --load-path="/home/ian/src/lilypond:/home/ian/src/lilypond/scm" --output=scm/out/load-path-test.go load-path-test.scm version: "2.0.5" %load-path: ("/home/ian/src/lilypond:/home/ian/src/lilypond/scm" "/home # ^^^^^^^^^^^^^option string not parsed ^^^^^^^^^^^^^^^^^^^ /ian/Dropbox/Development/Guile-and-Scheme/guile-2.0.5/module" "/home/ian/Dropbox/Development/Guile-and-Scheme/guile-2.0.5/guile-readline" "/home/ian/Dropbox/Development/Guile-and-Scheme/guile-2.0.5") (access? (%search-load-path "c++.scm"): #f #^^^^^^^^^^^^^^ file not found in %load-path^^^^^^^^ wrote `scm/out/load-path-test.go' ian@nanny-ogg ~/src/lilypond (T2026-1)>> I get similar results using installed V2.0.5 on my laptop. Cheers, Ian Hulin