GNU bug report logs -
#10557
GUILE_LOAD_PATH variable value ignored when setting %load-path.
Previous Next
Reported by: Ian Hulin <ian <at> hulin.org.uk>
Date: Thu, 19 Jan 2012 22:41:01 UTC
Severity: normal
Done: Andy Wingo <wingo <at> pobox.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 10557 in the body.
You can then email your comments to 10557 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guile <at> gnu.org
:
bug#10557
; Package
guile
.
(Thu, 19 Jan 2012 22:41:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Ian Hulin <ian <at> hulin.org.uk>
:
New bug report received and forwarded. Copy sent to
bug-guile <at> gnu.org
.
(Thu, 19 Jan 2012 22:41:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
This doesn't appear to work as per page 41, section 4.2.2 Environment
Variables in the docs. Strangely enough, though settings of
GUILE_LOAD_COMPILED_PATH *are* observed and added to the front of
%load-compiled-path.
Cheers,
Ian Hulin
==================================================================================================
ian <at> ian-laptop ~/src/lilypond (T1686)$ echo $GUILE_LOAD_PATH
ian <at> ian-laptop ~/src/lilypond (T1686)$ guile
GNU Guile 2.0.3
Copyright (C) 1995-2011 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)> %load-path
$1 = ("/usr/local/share/guile/2.0" "/usr/local/share/guile/site/2.0"
"/usr/local/share/guile/site" "/usr/local/share/guile")
scheme@(guile-user)> ,q
ian <at> ian-laptop ~/src/lilypond (T1686)$ declare -x
GUILE_LOAD_COMPILED_PATH='/home/ian/src/lilypond/scm/out'
ian <at> ian-laptop ~/src/lilypond (T1686)$ guile
GNU Guile 2.0.3
Copyright (C) 1995-2011 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)> %load-path
$1 = ("/usr/local/share/guile/2.0" "/usr/local/share/guile/site/2.0"
"/usr/local/share/guile/site" "/usr/local/share/guile")
scheme@(guile-user)> ^\Quit
ian <at> ian-laptop ~/src/lilypond (T1686)$
Information forwarded
to
bug-guile <at> gnu.org
:
bug#10557
; Package
guile
.
(Fri, 20 Jan 2012 07:57:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 10557 <at> debbugs.gnu.org (full text, mbox):
Ian Hulin <ian <at> hulin.org.uk> writes:
> ian <at> ian-laptop ~/src/lilypond (T1686)$ echo $GUILE_LOAD_PATH
>
> ian <at> ian-laptop ~/src/lilypond (T1686)$ guile
> GNU Guile 2.0.3
> Copyright (C) 1995-2011 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)> %load-path
> $1 = ("/usr/local/share/guile/2.0" "/usr/local/share/guile/site/2.0"
> "/usr/local/share/guile/site" "/usr/local/share/guile")
> scheme@(guile-user)> ,q
> ian <at> ian-laptop ~/src/lilypond (T1686)$ declare -x
> GUILE_LOAD_COMPILED_PATH='/home/ian/src/lilypond/scm/out'
> ian <at> ian-laptop ~/src/lilypond (T1686)$ guile
> GNU Guile 2.0.3
> Copyright (C) 1995-2011 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)> %load-path
> $1 = ("/usr/local/share/guile/2.0" "/usr/local/share/guile/site/2.0"
> "/usr/local/share/guile/site" "/usr/local/share/guile")
> scheme@(guile-user)> ^\Quit
> ian <at> ian-laptop ~/src/lilypond (T1686)$
Err, all you have done here is show that GUILE_LOAD_COMPILED_PATH has no
bearing on %load-path, which is perfectly in accordance with the
documentation as far as I can see.
As for the question of GUILE_LOAD_PATH not prepending to %load-path, I
can't reproduce this on a recent stable-2.0 with fedora 16.
[ian <at> Kagami ~]$ env GUILE_LOAD_PATH=notadir guile -q
GNU Guile 2.0.3.155-6f0e5
...<snip>...
scheme@(guile-user)> %load-path
$1 = ("notadir" "/usr/local/share/guile/2.0" "/usr/local/share/guile/site/2.0" "/usr/local/share/guile/site" "/usr/local/share/guile")
scheme@(guile-user)>
I'll report back again after I've built the 2.0.3 release
--
Ian Price
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
Information forwarded
to
bug-guile <at> gnu.org
:
bug#10557
; Package
guile
.
(Fri, 20 Jan 2012 08:33:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 10557 <at> debbugs.gnu.org (full text, mbox):
> I'll report back again after I've built the 2.0.3 release
[ian <at> Kagami ~]$ env GUILE_LOAD_PATH=notadir GUILE_LOAD_COMPILED_PATH=notadir2 guile -q
GNU Guile 2.0.3
...<snip>...
scheme@(guile-user)> %load-path
$1 = ("notadir" "/usr/local/share/guile/2.0" "/usr/local/share/guile/site/2.0" "/usr/local/share/guile/site" "/usr/local/share/guile")
scheme@(guile-user)> %load-compiled-path
$2 = ("notadir2" "/usr/local/lib/guile/2.0/ccache" "/usr/local/lib/guile/2.0/site-ccache")
scheme@(guile-user)>
As you can see, I get the same behaviour on 2.0.3
--
Ian Price
"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"
Reply sent
to
Andy Wingo <wingo <at> pobox.com>
:
You have taken responsibility.
(Fri, 03 Feb 2012 19:30:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
Ian Hulin <ian <at> hulin.org.uk>
:
bug acknowledged by developer.
(Fri, 03 Feb 2012 19:30:03 GMT)
Full text and
rfc822 format available.
Message #16 received at 10557-done <at> debbugs.gnu.org (full text, mbox):
Hi Ian,
I think I agree with ijp's assessment of things. If you can point to
something in the manual that is confusing in this regard, please let us
know. Thanks!
Andy
--
http://wingolog.org/
Message #17 received at 10557-done <at> debbugs.gnu.org (full text, mbox):
On 03/02/12 15:32, Andy Wingo wrote:
> Hi Ian,
>
> I think I agree with ijp's assessment of things. If you can point to
> something in the manual that is confusing in this regard, please let us
> know. Thanks!
>
I think that the docs. really need to make the difference in behaviour
clear between the guile compile --load-path option and setting the
GUILE_LOAD_PATH environment variable. Maybe have an extended example
showing that you can use multiple occurrences of the option on the
command-line, and that you need to do this if you want to pre-pend a
list of values to the load-path e.g
$ guild compile "fred.scm" --load-path='/path/here' \
--load-path=/path/here/scm' --output='path/here/compiled/fred.go'
causes fred.scm to be compiled to path/here/compiled/fred.go with a
load-path list of "/path/here path/here/scm user/local/share/site etc.."
Another option would be to give the long option a more appropriate name:
--load-path seems to imply that you're suggesting a one-shot
re-definition of the load-path, whereas you're pre-pending things to the
path and you can do this multiple times.
Maybe use --add-to-load-path to mirror the new function you've just
added to the V2.0.5 base code?
Cheers,
Ian Hulin
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 04 Mar 2012 12:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 189 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.