GNU bug report logs - #26848
procedure resolve-interface finds no code for GUIX_PACKAGE_PATH modules which are otherwise working

Previous Next

Package: guix;

Reported by: ng0 <ng0 <at> pragmatique.xyz>

Date: Mon, 8 May 2017 22:25:01 UTC

Severity: normal

Done: Royce Strange <royball <at> disroot.org>

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 26848 in the body.
You can then email your comments to 26848 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#26848; Package guix. (Mon, 08 May 2017 22:25:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to ng0 <ng0 <at> pragmatique.xyz>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 08 May 2017 22:25:02 GMT) Full text and rfc822 format available.

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

From: ng0 <ng0 <at> pragmatique.xyz>
To: bug-guix <at> gnu.org
Subject: procedure resolve-interface finds no code for GUIX_PACKAGE_PATH
 modules which are otherwise working
Date: Mon, 8 May 2017 22:24:19 +0000
[user <at> abyayala ~/src/packages]$ sudo guix system reconfigure /etc/config.scm
guix system: error: failed to load '/etc/config.scm':
ice-9/boot-9.scm:2903:6: In procedure resolve-interface:
ice-9/boot-9.scm:2903:6: no code for module (ng0 packages personalized)


[user <at> abyayala ~/src/packages]$ env | grep "PACKAGE"
GUIX_PACKAGE_PATH=/home/user/src/packages

From /etc/config.scm first two lines:

(use-modules (gnu) (guix) (gnu system nss)
             (ng0 packages personalized))

This is used to reference "ii-ssl" in (packages),
which comes from the module in
https://git.pragmatique.xyz/ng0-packages/log.html

and which can be installed and used by the users.

Running "guix system build /etc/config.scm" with this
succeeds, just the "sudo guix system reconfigure /etc/config.scm"
produces this error.

I tried building the system with the config.scm located
in the same directory as the root of packages.git, but
this produces the same error.
-- 
https://pragmatique.xyz
PGP: https://people.pragmatique.xyz/ng0/




Information forwarded to bug-guix <at> gnu.org:
bug#26848; Package guix. (Tue, 09 May 2017 19:06:02 GMT) Full text and rfc822 format available.

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

From: Alex Kost <alezost <at> gmail.com>
To: ng0 <ng0 <at> pragmatique.xyz>
Cc: 26848 <at> debbugs.gnu.org
Subject: Re: bug#26848: procedure resolve-interface finds no code for
 GUIX_PACKAGE_PATH modules which are otherwise working
Date: Tue, 09 May 2017 22:05:16 +0300
ng0 (2017-05-08 22:24 +0000) wrote:

> [user <at> abyayala ~/src/packages]$ sudo guix system reconfigure /etc/config.scm
> guix system: error: failed to load '/etc/config.scm':
> ice-9/boot-9.scm:2903:6: In procedure resolve-interface:
> ice-9/boot-9.scm:2903:6: no code for module (ng0 packages personalized)
>
>
> [user <at> abyayala ~/src/packages]$ env | grep "PACKAGE"
> GUIX_PACKAGE_PATH=/home/user/src/packages
>
> From /etc/config.scm first two lines:
>
> (use-modules (gnu) (guix) (gnu system nss)
>              (ng0 packages personalized))
>
> This is used to reference "ii-ssl" in (packages),
> which comes from the module in
> https://git.pragmatique.xyz/ng0-packages/log.html
>
> and which can be installed and used by the users.
>
> Running "guix system build /etc/config.scm" with this
> succeeds, just the "sudo guix system reconfigure /etc/config.scm"
> produces this error.

When you run "sudo ..." like this, the environment is not preserved,
thus GUIX_PACKAGE_PATH is not set for that reconfigure command.  Try to
run it like this:

  sudo -E guix system reconfigure /etc/config.scm"

-- 
Alex




Reply sent to Royce Strange <royball <at> disroot.org>:
You have taken responsibility. (Wed, 10 Jun 2020 18:29:02 GMT) Full text and rfc822 format available.

Notification sent to ng0 <ng0 <at> pragmatique.xyz>:
bug acknowledged by developer. (Wed, 10 Jun 2020 18:29:02 GMT) Full text and rfc822 format available.

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

From: Royce Strange <royball <at> disroot.org>
To: 26848-done <at> debbugs.gnu.org
Subject: Re: Status: procedure resolve-interface finds no code for
 GUIX_PACKAGE_PATH modules which are otherwise working
Date: Wed, 10 Jun 2020 13:28:37 -0500
Hello.

Alex Kost's suggestion to use "sudo -E" for system reconfiguration 
is what is needed when setting GUIX_PACKAGE_PATH in a user's environment
to use personal packages.

From sudo's man page:
-----
     -E, --preserve-env
                 Indicates to the security policy that the user wishes to pre‐
                 serve their existing environment variables.  The security
                 policy may return an error if the user does not have permis‐
                 sion to preserve the environment.
-----

Verifying myself (as I still need to switch to using channels):
-----
$ guix --version
guix (GNU Guix) 2971ed57345ee4e00058efeaf27c6a0790fdc9dd

$ env | grep "GUIX_PACKAGE_PATH"
GUIX_PACKAGE_PATH=/home/royce/guix-config/.paths/my-packages

$ sudo guix system reconfigure my-config.scm 
guix system: error: failed to load 'my-config.scm':
ice-9/boot-9.scm:3300:6: In procedure resolve-interface:
no code for module (roy guix packages emacs)

$ sudo -E guix system reconfigure my-config.scm
...
guix system: bootloader successfully installed on '/boot/efi'
To complete the upgrade, run 'herd restart SERVICE' to stop,
upgrade, and restart each service that was not automatically restarted.
-----

Going to go ahead and close,
as it has been three years since it was suggested, 
and the fix proposed by Alex Kost works.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 09 Jul 2020 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 284 days ago.

Previous Next


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