bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#34590: Effects of GUIX_PACKAGE_PATH and --load-path differ


From: Ludovic Courtès
Subject: bug#34590: Effects of GUIX_PACKAGE_PATH and --load-path differ
Date: Wed, 06 Mar 2019 18:49:09 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Hi,

Daniel Gerber <address@hidden> skribis:

>> However, what do /gnu/guix-local-packages/ contain?  I suppose it
>> provides address@hidden 
>
> Yes, it provides address@hidden *plus* its dependency address@hidden 
>
>  $ tree /gnu/guix-local-packages/ /gnu/guix-local-packages/ ├── gnu
> │   └── packages │       ├── libevent.scm │       └── node.scm └──
> node-llhttp.patch 

(Looks like your email client automatically splits lines, but I think I
got the above tree right.)

Your local packages use the same module names as those in Guix itself:
(gnu packages …).

You should not do that because modules are unique.  That is, there can
be only one (gnu packages node) module at run time.

It may be that GUIX_PACKAGE_PATH and -L lead to a different (gnu
packages node) being loaded first, but really the core of the problem
IMO is the module name collision.

So my suggestion would be to rename your modules to, say, (daniel
packages …); remember to “mv gnu daniel” as well.

Let me know if that solves the problem!

Thanks,
Ludo’.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]