From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#34590: Effects of GUIX_PACKAGE_PATH and --load-path differ Date: Wed, 06 Mar 2019 18:49:09 +0100 Message-ID: <8736nzgaga.fsf@gnu.org> References: <8736oivj6s.fsf@atufi.org> <87lg1si0n0.fsf@gnu.org> <87h8cg3vxe.fsf@atufi.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:55532) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1agA-0004aD-9l for bug-guix@gnu.org; Wed, 06 Mar 2019 12:50:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h1ag8-0001A6-90 for bug-guix@gnu.org; Wed, 06 Mar 2019 12:50:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:49333) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h1ag6-00018t-Ex for bug-guix@gnu.org; Wed, 06 Mar 2019 12:50:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h1ag6-0006z4-65 for bug-guix@gnu.org; Wed, 06 Mar 2019 12:50:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87h8cg3vxe.fsf@atufi.org> (Daniel Gerber's message of "Wed, 06 Mar 2019 15:43:41 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Daniel Gerber Cc: 34590@debbugs.gnu.org Hi, Daniel Gerber skribis: >> However, what do /gnu/guix-local-packages/ contain? I suppose it >> provides node@11.10.0?=20 > > Yes, it provides node@11.10.0 *plus* its dependency libuv@1.26.0.=20 > > $ tree /gnu/guix-local-packages/ /gnu/guix-local-packages/ =E2=94=9C=E2= =94=80=E2=94=80 gnu > =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 packages =E2=94=82=C2= =A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 libevent.scm =E2=94=82=C2=A0=C2= =A0 =E2=94=94=E2=94=80=E2=94=80 node.scm =E2=94=94=E2=94=80=E2=94=80 > node-llhttp.patch=20 (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 =E2=80=A6). 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 =E2=80=A6); remember to =E2=80=9Cmv gnu daniel=E2=80=9D as well. Let me know if that solves the problem! Thanks, Ludo=E2=80=99.