unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Royce Strange <royball@disroot.org>
To: 26848-done@debbugs.gnu.org
Subject: bug#26848: 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	[thread overview]
Message-ID: <873672vkq2.fsf@disroot.org> (raw)
In-Reply-To: bug's message of "Wed\, 10 Jun 2020 17\:34\:30 +0000"

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.




      parent reply	other threads:[~2020-06-10 18:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-08 22:24 bug#26848: procedure resolve-interface finds no code for GUIX_PACKAGE_PATH modules which are otherwise working ng0
2017-05-09 19:05 ` Alex Kost
2020-06-10 18:28 ` Royce Strange [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=873672vkq2.fsf@disroot.org \
    --to=royball@disroot.org \
    --cc=26848-done@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).