GNU bug report logs - #15286
Add the current directory as GUILE_LOAD_PATH by default

Previous Next

Package: guix;

Reported by: arne_bab <at> web.de

Date: Fri, 6 Sep 2013 09:30:03 UTC

Severity: normal

Done: ludo <at> gnu.org (Ludovic Courtès)

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 15286 in the body.
You can then email your comments to 15286 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#15286; Package guix. (Fri, 06 Sep 2013 09:30:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to arne_bab <at> web.de:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Fri, 06 Sep 2013 09:30:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Arne Babenhauserheide <arne_bab <at> web.de>
To: bug-guix <at> gnu.org
Subject: Add the current directory as GUILE_LOAD_PATH by default
Date: Fri, 06 Sep 2013 11:29:15 +0200
Dear Guix Hackers,

Currently to install a local package definition, I have to adjust the GUILE_LOAD_PATH by hand:

      GUILE_LOAD_PATH=. guix package -e '(@ (mercurial) hg)'

This could be much clearer if the $pwd were in the load path automatically.


Even clearer could be something like overlays as discussed on guix-devel.¹

Examples of usage could be:

# install from an explicit definition file
guix package --file mercurial.scm -i mercurial 

# install from a directory with many scheme files: essentially just
# adds the directory and subdirectories to the load path.
guix package --overlay . -i mercurial 

With the obvious short forms:
(--file | -f)
(--overlay | -o)

Overlay and file might be used multiple times to adjust the available
packages.


Adding the local path to the package would be a first step, but it
would be unnecessary if there were a way to define additional files
and overlays.


Best wishes,
Arne

¹: http://lists.gnu.org/archive/html/guix-devel/2013-08/msg00127.html




Reply sent to ludo <at> gnu.org (Ludovic Courtès):
You have taken responsibility. (Fri, 06 Sep 2013 12:11:01 GMT) Full text and rfc822 format available.

Notification sent to arne_bab <at> web.de:
bug acknowledged by developer. (Fri, 06 Sep 2013 12:11:03 GMT) Full text and rfc822 format available.

Message #10 received at 15286-done <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Arne Babenhauserheide <arne_bab <at> web.de>
Cc: 15286-done <at> debbugs.gnu.org
Subject: Re: bug#15286: Add the current directory as GUILE_LOAD_PATH by default
Date: Fri, 06 Sep 2013 14:10:27 +0200
Arne Babenhauserheide <arne_bab <at> web.de> skribis:

> Currently to install a local package definition, I have to adjust the GUILE_LOAD_PATH by hand:
>
>       GUILE_LOAD_PATH=. guix package -e '(@ (mercurial) hg)'
>
> This could be much clearer if the $pwd were in the load path automatically.

As usual, it is a bad idea to include ‘.’ in the search path, because it
makes it easy to unwillingly execute untrusted code.

More generally, ‘GUILE_LOAD_PATH’ is a user environment variable (like
$PATH, $CPATH, etc.), so it’s up to the user, not to Guix, to set it up
correctly.

So I’m closing this bug, but of course, I remain open to discussions on
improving Guix to better support “overlays”.

Thanks!

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#15286; Package guix. (Fri, 13 Sep 2013 23:06:01 GMT) Full text and rfc822 format available.

Message #13 received at 15286-done <at> debbugs.gnu.org (full text, mbox):

From: Arne Babenhauserheide <arne_bab <at> web.de>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 15286-done <at> debbugs.gnu.org
Subject: Re: bug#15286: Add the current directory as GUILE_LOAD_PATH by default
Date: Sat, 14 Sep 2013 01:05:42 +0200
[Message part 1 (text/plain, inline)]
Am Freitag, 6. September 2013, 14:10:27 schrieb Ludovic Courtès:
> Arne Babenhauserheide <arne_bab <at> web.de> skribis:
> 
> > Currently to install a local package definition, I have to adjust the GUILE_LOAD_PATH by hand:
> >
> >       GUILE_LOAD_PATH=. guix package -e '(@ (mercurial) hg)'
> >
> > This could be much clearer if the $pwd were in the load path automatically.
> 
> As usual, it is a bad idea to include ‘.’ in the search path, because it
> makes it easy to unwillingly execute untrusted code.

I now learned, that with guile I can use 

    guile -L .

which actually does what I need.

Providing this in guix would be consistent with guile and it would make it really easy to select overlays.

Best wishes,
Arne
-- 
1w6 sie zu achten,
sie alle zu finden,
in Spiele zu leiten
und sacht zu verbinden.
→ http://1w6.org

[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#15286; Package guix. (Sat, 14 Sep 2013 12:14:01 GMT) Full text and rfc822 format available.

Message #16 received at 15286-done <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Arne Babenhauserheide <arne_bab <at> web.de>
Cc: 15286-done <at> debbugs.gnu.org
Subject: Re: bug#15286: Add the current directory as GUILE_LOAD_PATH by default
Date: Sat, 14 Sep 2013 14:13:17 +0200
Arne Babenhauserheide <arne_bab <at> web.de> skribis:

> Am Freitag, 6. September 2013, 14:10:27 schrieb Ludovic Courtès:
>> Arne Babenhauserheide <arne_bab <at> web.de> skribis:
>> 
>> > Currently to install a local package definition, I have to adjust the GUILE_LOAD_PATH by hand:
>> >
>> >       GUILE_LOAD_PATH=. guix package -e '(@ (mercurial) hg)'
>> >
>> > This could be much clearer if the $pwd were in the load path automatically.
>> 
>> As usual, it is a bad idea to include ‘.’ in the search path, because it
>> makes it easy to unwillingly execute untrusted code.
>
> I now learned, that with guile I can use 
>
>     guile -L .
>
> which actually does what I need.
>
> Providing this in guix would be consistent with guile and it would make it really easy to select overlays.

If this is a ‘-L’ option, then I’d say no.  After all, Guix is just
another Guile library, and as such it must not fiddle with the search
path.

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#15286; Package guix. (Sun, 15 Sep 2013 11:25:01 GMT) Full text and rfc822 format available.

Message #19 received at 15286-done <at> debbugs.gnu.org (full text, mbox):

From: Arne Babenhauserheide <arne_bab <at> web.de>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 15286-done <at> debbugs.gnu.org
Subject: Re: bug#15286: Add the current directory as GUILE_LOAD_PATH by default
Date: Sun, 15 Sep 2013 13:24:21 +0200
[Message part 1 (text/plain, inline)]
Am Samstag, 14. September 2013, 14:13:17 schrieb Ludovic Courtès:
> > I now learned, that with guile I can use 
> >
> >     guile -L .
> >
> > which actually does what I need.
> >
> > Providing this in guix would be consistent with guile and it would make it really easy to select overlays.
> 
> If this is a ‘-L’ option, then I’d say no.  After all, Guix is just
> another Guile library, and as such it must not fiddle with the search
> path.

Isn’t guix a standalone program?

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein, 
ohne es zu merken. 
- Arne (http://draketo.de)


[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#15286; Package guix. (Sun, 15 Sep 2013 17:47:01 GMT) Full text and rfc822 format available.

Message #22 received at 15286-done <at> debbugs.gnu.org (full text, mbox):

From: Mark H Weaver <mhw <at> netris.org>
To: Arne Babenhauserheide <arne_bab <at> web.de>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 15286-done <at> debbugs.gnu.org
Subject: Re: bug#15286: Add the current directory as GUILE_LOAD_PATH by default
Date: Sun, 15 Sep 2013 13:46:18 -0400
Arne Babenhauserheide <arne_bab <at> web.de> writes:

> Am Samstag, 14. September 2013, 14:13:17 schrieb Ludovic Courtès:
>> > I now learned, that with guile I can use 
>> >
>> >     guile -L .
>> >
>> > which actually does what I need.
>> >
>> > Providing this in guix would be consistent with guile and it would make it really easy to select overlays.
>> 
>> If this is a ‘-L’ option, then I’d say no.  After all, Guix is just
>> another Guile library, and as such it must not fiddle with the search
>> path.
>
> Isn’t guix a standalone program?

It's both a library and a standalone program.

If you're using one or more overlays, isn't it easier to set
GUILE_LOAD_PATH in your dot files?  I wouldn't want to have to
specify one or more -L arguments every time I use guix.

     Mark




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 14 Oct 2013 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 246 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.