unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#24686: --load-path not honored by guix system
@ 2016-10-13 23:48 Blah Blahh
  2016-10-16 19:24 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Blah Blahh @ 2016-10-13 23:48 UTC (permalink / raw)
  To: 24686

[-- Attachment #1: Type: text/plain, Size: 494 bytes --]

Worked fine when I set GUIX_PACKAGE_PATH, did not when I tried using
--load-path to pass the exact same directory. According to mark_weaver from
#guix it should, so here I am to mention it. Specifically I used "guix
system reconfigure --load-path=/root/guix-modules /etc/config.scm" and it
did not search in that directory, then I set GUIX_PACKAGE_PATH to
/root/guix-modules and ran the command without the --load-path part and it
found the package defined in a module in a subdirectory of it.

[-- Attachment #2: Type: text/html, Size: 530 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#24686: --load-path not honored by guix system
  2016-10-13 23:48 bug#24686: --load-path not honored by guix system Blah Blahh
@ 2016-10-16 19:24 ` Ludovic Courtès
  2016-10-17  1:34   ` Reepca Russelstein
  0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2016-10-16 19:24 UTC (permalink / raw)
  To: Blah Blahh; +Cc: 24686

Hello,

Blah Blahh <anotherreepca@gmail.com> skribis:

> Worked fine when I set GUIX_PACKAGE_PATH, did not when I tried using -
> -load-path to pass the exact same directory. According to mark_weaver
> from #guix it should, so here I am to mention it. Specifically I used
> "guix system reconfigure --load-path=/root/guix-modules
> /etc/config.scm" and it did not search in that directory, then I set
> GUIX_PACKAGE_PATH to /root/guix-modules and ran the command without
> the --load-path part and it found the package defined in a module in a
> subdirectory of it.

I just tried and it Works for Me with current master.

What does ‘guix --version’ return?  What makes you think ‘--load-path’
is not honored, perhaps because you’re using ‘specification->package’ in
config.scm?

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#24686: --load-path not honored by guix system
  2016-10-16 19:24 ` Ludovic Courtès
@ 2016-10-17  1:34   ` Reepca Russelstein
  2016-10-17  8:29     ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Reepca Russelstein @ 2016-10-17  1:34 UTC (permalink / raw)
  To: Ludovic Courtès

[-- Attachment #1: Type: text/plain, Size: 2035 bytes --]

guix --version returns "guix (GNU Guix) 20161013.22". My config.scm
included (firmware (cons openfwwf-firmware %base-firmware)). I was using a
patch provided by bavier from irc to provide openfwwf-firmware (here is the
patch http://paste.lisp.org/display/328373). I created
/root/guix-modules/gnu/packages/firmware.scm, which was the patched
version. When I tried running "guix system reconfigure
--load-path=/root/guix-modules /etc/config.scm" it said that it could not
find openfwwf-firmware. I then ran "export
GUIX_PACKAGE_PATH=/root/guix-modules" and then ran "guix system reconfigure
/etc/config.scm" and it successfully found openfwwf-firmware and
reconfigured the system. That's why I think --load-path is not being
honored.

I'm guessing that to reproduce, I should boot to the system configuration I
had at the time and try the same thing. So I tried rebooting to the system
I had at that time, but it seems to have failed to successfully boot...
screen is stuck black right now, will try some more later. Just wanted to
provide more details in the meantime.

On Sun, Oct 16, 2016 at 2:24 PM, Ludovic Courtès <ludo@gnu.org> wrote:

> Hello,
>
> Blah Blahh <anotherreepca@gmail.com> skribis:
>
> > Worked fine when I set GUIX_PACKAGE_PATH, did not when I tried using -
> > -load-path to pass the exact same directory. According to mark_weaver
> > from #guix it should, so here I am to mention it. Specifically I used
> > "guix system reconfigure --load-path=/root/guix-modules
> > /etc/config.scm" and it did not search in that directory, then I set
> > GUIX_PACKAGE_PATH to /root/guix-modules and ran the command without
> > the --load-path part and it found the package defined in a module in a
> > subdirectory of it.
>
> I just tried and it Works for Me with current master.
>
> What does ‘guix --version’ return?  What makes you think ‘--load-path’
> is not honored, perhaps because you’re using ‘specification->package’ in
> config.scm?
>
> Thanks,
> Ludo’.
>

[-- Attachment #2: Type: text/html, Size: 2555 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#24686: --load-path not honored by guix system
  2016-10-17  1:34   ` Reepca Russelstein
@ 2016-10-17  8:29     ` Ludovic Courtès
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2016-10-17  8:29 UTC (permalink / raw)
  To: Reepca Russelstein; +Cc: 24686

Reepca Russelstein <anotherreepca@gmail.com> skribis:

> guix --version returns "guix (GNU Guix) 20161013.22". My config.scm
> included (firmware (cons openfwwf-firmware %base-firmware)). I was using a
> patch provided by bavier from irc to provide openfwwf-firmware (here is the
> patch http://paste.lisp.org/display/328373). I created
> /root/guix-modules/gnu/packages/firmware.scm, which was the patched
> version. When I tried running "guix system reconfigure
> --load-path=/root/guix-modules /etc/config.scm" it said that it could not
> find openfwwf-firmware. I then ran "export
> GUIX_PACKAGE_PATH=/root/guix-modules" and then ran "guix system reconfigure
> /etc/config.scm" and it successfully found openfwwf-firmware and
> reconfigured the system. That's why I think --load-path is not being
> honored.

I think there’s something subtle going on.  %load-path is adjusted when
command-line arguments are processed, but that happens after (gnu
system) and presumably (gnu packages firmware) have been loaded.
Therefore, your own (gnu packages firmware) module isn’t “seen”.

What I would suggest is to rename your (gnu packages firmware) module
to, say, (my packages firmware), and to use that in your OS config (make
sure to rename both the file and the module name that appears in the
‘define-module’ clause!).

Could you try and report back?

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-10-17  8:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-13 23:48 bug#24686: --load-path not honored by guix system Blah Blahh
2016-10-16 19:24 ` Ludovic Courtès
2016-10-17  1:34   ` Reepca Russelstein
2016-10-17  8:29     ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).