* bug#26848: procedure resolve-interface finds no code for GUIX_PACKAGE_PATH modules which are otherwise working
@ 2017-05-08 22:24 ng0
2017-05-09 19:05 ` Alex Kost
2020-06-10 18:28 ` bug#26848: Status: " Royce Strange
0 siblings, 2 replies; 3+ messages in thread
From: ng0 @ 2017-05-08 22:24 UTC (permalink / raw)
To: 26848
[user@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@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/
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#26848: procedure resolve-interface finds no code for GUIX_PACKAGE_PATH modules which are otherwise working
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 ` bug#26848: Status: " Royce Strange
1 sibling, 0 replies; 3+ messages in thread
From: Alex Kost @ 2017-05-09 19:05 UTC (permalink / raw)
To: ng0; +Cc: 26848
ng0 (2017-05-08 22:24 +0000) wrote:
> [user@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@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
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#26848: Status: procedure resolve-interface finds no code for GUIX_PACKAGE_PATH modules which are otherwise working
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
1 sibling, 0 replies; 3+ messages in thread
From: Royce Strange @ 2020-06-10 18:28 UTC (permalink / raw)
To: 26848-done
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-06-10 18:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` bug#26848: Status: " Royce Strange
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.