GNU bug report logs -
#52002
missing $GUIX_PROFILE/share/emacs/site-lisp in EMACSLOADPATH
Previous Next
Reported by: bbb ee <blasforr <at> gmail.com>
Date: Sat, 20 Nov 2021 17:05:02 UTC
Severity: normal
Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
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 52002 in the body.
You can then email your comments to 52002 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#52002
; Package
guix
.
(Sat, 20 Nov 2021 17:05:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
bbb ee <blasforr <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Sat, 20 Nov 2021 17:05:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
## Description of bug
emacs can't load packages installed by guix because missing
$GUIX_PROFILE/share/emacs/site-lisp
in EMACSLOADPATH
$GUIX_PROFILE/share/emacs/site-lisp isn't set in my
$GUIX_PROFILE/etc/profile and not in my $EMACSLOADPATH
```
$ echo $EMACSLOADPATH
/run/current-system/profile/share/emacs/site-lisp:/run/current-system/profile/share/emacs/27.1/lisp
$ less $GUIX_PROFILE/etc/profile
export EMACSLOADPATH="${GUIX_PROFILE:-/gnu/store/vq5dzmbx202z9p5hjyxfzcdpyzapxgxg-profile}/share/emacs/site-lisp:${GUIX_PROFILE:-/gnu/store/vq5dzmbx202z9p5hjyxfzcdpyzapxgxg-profile}/share/emacs/27.1/lisp${EMACSLOADPATH:+:}$EMACSLOADPATH"
```
## Workaround used
add in init.el
```
(add-to-list 'load-path "/home/dev_1/.guix-profile/share/emacs/site-lisp")
(guix-emacs-autoload-packages)
```
## version
emacs 27.1
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#52002
; Package
guix
.
(Sun, 21 Nov 2021 04:26:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 52002 <at> debbugs.gnu.org (full text, mbox):
Hello,
bbb ee <blasforr <at> gmail.com> writes:
> ## Description of bug
> emacs can't load packages installed by guix because missing
> $GUIX_PROFILE/share/emacs/site-lisp
> in EMACSLOADPATH
>
> $GUIX_PROFILE/share/emacs/site-lisp isn't set in my
> $GUIX_PROFILE/etc/profile and not in my $EMACSLOADPATH
>
> ```
> $ echo $EMACSLOADPATH
> /run/current-system/profile/share/emacs/site-lisp:/run/current-system/profile/share/emacs/27.1/lisp
>
> $ less $GUIX_PROFILE/etc/profile
> export
> EMACSLOADPATH="${GUIX_PROFILE:-/gnu/store/vq5dzmbx202z9p5hjyxfzcdpyzapxgxg-profile}/share/emacs/site-lisp:${GUIX_PROFILE:-/gnu/store/vq5dzmbx202z9p5hjyxfzcdpyzapxgxg-profile}/share/emacs/27.1/lisp${EMACSLOADPATH:+:}$EMACSLOADPATH"
>
> ```
The EMACSLOADPATH environment variable is set when installing Emacs
itself; have you installed the 'emacs' package in your profile (guix
install emacs), then sourced your profile again
(. ~/.guix-profile/etc/profile), or alternatively started a new shell?
This works for me, for example:
--8<---------------cut here---------------start------------->8---
$ guix shell --container emacs emacs-magit -- emacs --batch --eval \
'(begin (print (getenv "EMACSLOADPATH") (print (magit-version))'
Loading /gnu/store/hsj3kl0vc3hxiapklg5nj42z5jb4s80p-emacs-magit-3.3.0/share/emacs/site-lisp/magit-3.3.0/magit-autoloads...
[...]
"/gnu/store/zv9iqvv6jnnvf0cr0c8kan3dcgj8mybj-profile/share/emacs/site-lisp:/gnu/store/ybpddmq7f8ajzydhiqqx6dldgmadqanp-emacs-27.2/share/emacs/27.2/lisp"
"3.3.0"
--8<---------------cut here---------------end--------------->8---
HTH,
Maxim
Information forwarded
to
bug-guix <at> gnu.org
:
bug#52002
; Package
guix
.
(Sat, 27 Nov 2021 15:06:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 52002 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Thanks, the problem is solved.
## Possible cause
Initially, I have emacs installed and ~/.guix-profile/etc/profile sourced.
but when I type "guix package -I | grep emacs". I don't see emacs package
(strange).
So I reinstall emacs : guix install emacs. Then I can see 2 emacs-27.1
installation
```
$ which -a emacs
/home/dev_1/.guix-profile/bin/emacs
/home/dev_1/.guix-profile/bin/emacs
/run/current-system/profile/bin/emacs
$ ls -l /home/dev_1/.guix-profile/bin/emacs
lrwxrwxrwx 8 root root 64 Jan 1 1970 /home/dev_1/.guix-profile/bin/emacs
-> /gnu/store/6mw831p6pccqwr3k3qanr6pmhcq0qym6-emacs-27.1/bin/emacs
$ ls -l /run/current-system/profile/bin/emacs
lrwxrwxrwx 2 root root 64 Jan 1 1970
/run/current-system/profile/bin/emacs ->
/gnu/store/yy66pbp3h5mw5sv7hrl1778skapszq7k-emacs-27.1/bin/emacs
```
Now $EMACSLOADPATH contains 6 paths with
"$GUIX_PROFILE/share/emacs/site-lisp" in it:
```
$ echo $EMACSLOADPATH
/home/dev_1/.guix-profile/share/emacs/site-lisp:/home/dev_1/.guix-profile/share/emacs/27.1/lisp:/home/dev_1/.guix-profile/share/emacs/site-lisp:/home/dev_1/.guix-profile/share/emacs/27.1/lisp:/run/current-system/profile/share/emacs/site-lisp:/run/current-system/profile/share/emacs/27.1/lisp
```
Before $EMACSLOADPATH contains only 2 paths without
"$GUIX_PROFILE/share/emacs/site-lisp" in it.
I think my first emacs installation should has something break,so
$EMACSLOADPATH isn't correctly set.
Thanks again
Le dim. 21 nov. 2021 à 04:25, Maxim Cournoyer <maxim.cournoyer <at> gmail.com> a
écrit :
> Hello,
>
> bbb ee <blasforr <at> gmail.com> writes:
>
> > ## Description of bug
> > emacs can't load packages installed by guix because missing
> > $GUIX_PROFILE/share/emacs/site-lisp
> > in EMACSLOADPATH
> >
> > $GUIX_PROFILE/share/emacs/site-lisp isn't set in my
> > $GUIX_PROFILE/etc/profile and not in my $EMACSLOADPATH
> >
> > ```
> > $ echo $EMACSLOADPATH
> >
> /run/current-system/profile/share/emacs/site-lisp:/run/current-system/profile/share/emacs/27.1/lisp
> >
> > $ less $GUIX_PROFILE/etc/profile
> > export
> >
> EMACSLOADPATH="${GUIX_PROFILE:-/gnu/store/vq5dzmbx202z9p5hjyxfzcdpyzapxgxg-profile}/share/emacs/site-lisp:${GUIX_PROFILE:-/gnu/store/vq5dzmbx202z9p5hjyxfzcdpyzapxgxg-profile}/share/emacs/27.1/lisp${EMACSLOADPATH:+:}$EMACSLOADPATH"
> >
> > ```
>
> The EMACSLOADPATH environment variable is set when installing Emacs
> itself; have you installed the 'emacs' package in your profile (guix
> install emacs), then sourced your profile again
> (. ~/.guix-profile/etc/profile), or alternatively started a new shell?
>
> This works for me, for example:
>
> --8<---------------cut here---------------start------------->8---
> $ guix shell --container emacs emacs-magit -- emacs --batch --eval \
> '(begin (print (getenv "EMACSLOADPATH") (print (magit-version))'
> Loading
> /gnu/store/hsj3kl0vc3hxiapklg5nj42z5jb4s80p-emacs-magit-3.3.0/share/emacs/site-lisp/magit-3.3.0/magit-autoloads...
> [...]
>
> "/gnu/store/zv9iqvv6jnnvf0cr0c8kan3dcgj8mybj-profile/share/emacs/site-lisp:/gnu/store/ybpddmq7f8ajzydhiqqx6dldgmadqanp-emacs-27.2/share/emacs/27.2/lisp"
>
> "3.3.0"
> --8<---------------cut here---------------end--------------->8---
>
> HTH,
>
> Maxim
>
[Message part 2 (text/html, inline)]
Reply sent
to
Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
:
You have taken responsibility.
(Sun, 28 Nov 2021 02:31:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
bbb ee <blasforr <at> gmail.com>
:
bug acknowledged by developer.
(Sun, 28 Nov 2021 02:31:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 52002-done <at> debbugs.gnu.org (full text, mbox):
Hello,
bbb ee <blasforr <at> gmail.com> writes:
> Thanks, the problem is solved.
>
> ## Possible cause
> Initially, I have emacs installed and ~/.guix-profile/etc/profile sourced.
>
> but when I type "guix package -I | grep emacs". I don't see emacs package
> (strange).
>
> So I reinstall emacs : guix install emacs. Then I can see 2 emacs-27.1
> installation
> ```
> $ which -a emacs
> /home/dev_1/.guix-profile/bin/emacs
> /home/dev_1/.guix-profile/bin/emacs
> /run/current-system/profile/bin/emacs
>
> $ ls -l /home/dev_1/.guix-profile/bin/emacs
> lrwxrwxrwx 8 root root 64 Jan 1 1970 /home/dev_1/.guix-profile/bin/emacs
> -> /gnu/store/6mw831p6pccqwr3k3qanr6pmhcq0qym6-emacs-27.1/bin/emacs
>
> $ ls -l /run/current-system/profile/bin/emacs
> lrwxrwxrwx 2 root root 64 Jan 1 1970
> /run/current-system/profile/bin/emacs ->
> /gnu/store/yy66pbp3h5mw5sv7hrl1778skapszq7k-emacs-27.1/bin/emacs
> ```
>
> Now $EMACSLOADPATH contains 6 paths with
> "$GUIX_PROFILE/share/emacs/site-lisp" in it:
> ```
> $ echo $EMACSLOADPATH
> /home/dev_1/.guix-profile/share/emacs/site-lisp:/home/dev_1/.guix-profile/share/emacs/27.1/lisp:/home/dev_1/.guix-profile/share/emacs/site-lisp:/home/dev_1/.guix-profile/share/emacs/27.1/lisp:/run/current-system/profile/share/emacs/site-lisp:/run/current-system/profile/share/emacs/27.1/lisp
> ```
> Before $EMACSLOADPATH contains only 2 paths without
> "$GUIX_PROFILE/share/emacs/site-lisp" in it.
>
> I think my first emacs installation should has something break,so
> $EMACSLOADPATH isn't correctly set.
>
> Thanks again
Alright, glad you got it sorted!
Closing.
Maxim
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 26 Dec 2021 12:24:04 GMT)
Full text and
rfc822 format available.
bug unarchived.
Request was from
Rostislav Svoboda <rostislav.svoboda <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Tue, 26 Sep 2023 10:34:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#52002
; Package
guix
.
(Tue, 26 Sep 2023 10:39:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 52002 <at> debbugs.gnu.org (full text, mbox):
This happens when I remove emacs from the default profile `guix remove
emacs` and install it via `guix home ...`.
IOW the bug is not that $GUIX_PROFILE/share/emacs/site-lisp is missing
in EMACSLOADPATH, but that "$HOME/.guix-profile/share/emacs/site-lisp"
is in the load-path even if emacs is not installed in the default
profile.
Cheers Bost
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 24 Oct 2023 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 199 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.