From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WOunD2ZJomFXgAAAgWs5BA (envelope-from ) for ; Sat, 27 Nov 2021 16:06:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id mGNJC2ZJomE9IwAAB5/wlQ (envelope-from ) for ; Sat, 27 Nov 2021 15:06:14 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B1ED8391B2 for ; Sat, 27 Nov 2021 16:06:13 +0100 (CET) Received: from localhost ([::1]:56562 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mqzHI-000059-Oo for larch@yhetil.org; Sat, 27 Nov 2021 10:06:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36074) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqzH8-0008WU-7z for bug-guix@gnu.org; Sat, 27 Nov 2021 10:06:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51058) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mqzH7-00036E-UO for bug-guix@gnu.org; Sat, 27 Nov 2021 10:06:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mqzH7-0006pz-NG for bug-guix@gnu.org; Sat, 27 Nov 2021 10:06:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#52002: missing $GUIX_PROFILE/share/emacs/site-lisp in EMACSLOADPATH Resent-From: bbb ee Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 27 Nov 2021 15:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52002 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer Received: via spool by 52002-submit@debbugs.gnu.org id=B52002.163802552926243 (code B ref 52002); Sat, 27 Nov 2021 15:06:01 +0000 Received: (at 52002) by debbugs.gnu.org; 27 Nov 2021 15:05:29 +0000 Received: from localhost ([127.0.0.1]:34371 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mqzGa-0006pC-Jx for submit@debbugs.gnu.org; Sat, 27 Nov 2021 10:05:29 -0500 Received: from mail-yb1-f179.google.com ([209.85.219.179]:39683) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mquee-0004fe-1e for 52002@debbugs.gnu.org; Sat, 27 Nov 2021 05:10:00 -0500 Received: by mail-yb1-f179.google.com with SMTP id v203so26678100ybe.6 for <52002@debbugs.gnu.org>; Sat, 27 Nov 2021 02:10:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Fana58yjT4QMxxivaPzhTPAIS2/hzqdkfQiiM9y+uX8=; b=FV4KNCwyEKzFEIWXSOuwu5BA2aBGIPUaT83Tkc9gATDEjhXdqWqXlPUBbPnfXP+Xld aU3rkE8ohBhjQdVQYvRYYbarc+TFhOwdfPwf3GMFcFvTgU9illptrHuFnqNRYNIG8vu/ TR7irN2jwQWFNOecCDQyFvXlC2MlQVctkE1KmLAhRffaSU86HKoIWQHqGnlT21dIESbX mPPb/v3rb01N2A3S1Z7uzpqWuDbaGwOC1hl5voqfUxTcgVtxEjTk20VfVJ2Qhkn3Gmvn dG9r+eoGYiyCOFQVPFxyhrSF2MzsOPnBPmMxxPpyoPpGjxBpsqOcFsrpIhFO1eXWs9S0 5E+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Fana58yjT4QMxxivaPzhTPAIS2/hzqdkfQiiM9y+uX8=; b=DAay4gErGrYhQPCTiwCKzMOE0F9u/waKbQw5CjGG2SpOokrzx3w8xXyjKIXJ9XFDd/ W5dWQkaUJpVi+dcbdLAPHXPPbzrrOfcRuG6SXtbjhAR32YMmCxiUim8Zy5hYKaApE5JG 4ur/KzIgTKq1AyS8LGHLOYHCfVQEXHeeSICcFs4jW3roVjoaeKrxrOrBrwRjChTPOgSc gHUwtQRzs4EMDDWODun9gixBU08JMqC98yHtRvfZ4BPyc3m9kShABdpbEEsV7dr5PsCF BfmVxOXIP4buVZAUk9u1B6h4HPSUK8JqXkhQLocPKQ6YpkHurVxhiaJipa9ESu0uck2L BHhA== X-Gm-Message-State: AOAM532b7rdze/76JLeISvGx/wki2vY36qltM7URVnYx4KpdWWdHppnf /0O35sXigOUoXow0VwsllffQUpci+Ee04OvhRxE= X-Google-Smtp-Source: ABdhPJwS/fj5MJ5X2ZaCX6TyvC3MZbzzpjl6S38VeX10Ef09uc9jTFYAg2dERzMuimeD3qBsmqKCt1Sm7KdrD5PjzLw= X-Received: by 2002:a25:d68e:: with SMTP id n136mr21735932ybg.520.1638007794250; Sat, 27 Nov 2021 02:09:54 -0800 (PST) MIME-Version: 1.0 References: <877dd2dtjt.fsf@gmail.com> In-Reply-To: <877dd2dtjt.fsf@gmail.com> From: bbb ee Date: Sat, 27 Nov 2021 10:09:43 +0000 Message-ID: Content-Type: multipart/alternative; boundary="000000000000b736b005d1c26818" X-Mailman-Approved-At: Sat, 27 Nov 2021 10:05:27 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 52002@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638025573; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=Fana58yjT4QMxxivaPzhTPAIS2/hzqdkfQiiM9y+uX8=; b=WZY85hqtTe4e3zJUxS4RCGGfAVcD4VY1UcyZ6d77w8CCHXD8K+F+j4k/Ehvn+N4rPi9a+2 9T1Cc1GwXz4uS+zXTEY3p6S0g7Vx9hQUGSYAwbdr3OST+N2cJT4wj2VxfSei+/z6C3vNS/ SRTur+ABlhCpJ/5uvI71ySma22+lnItEqQVShhwk9+msvZs5ESgtwt4HJYC3g7zXFkYONa XdIPPNenVauQPZnNEuUexmO7hJgPASq7YU6zXAut8Mm2U6S68/QwbZUO6ah+/QX53Z9z6i hwrE5o/qyTf84TImI8vMj11BhR34p3V//xdF61mCn5a4rQ+ZrnFJWbcewIr3yw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638025573; a=rsa-sha256; cv=none; b=fhZxvTjX3v4nOalwNw8/tGdM8kBFcAfYY4iuWEoZ/P32o+xf81axGoslGU53QoQuGnrj86 Er7NUQSIzF/+ImqD2NBSIs+DeFC4JyAsKDriNmlvrJFJyi1AW0QlRV/c02eu4P7Zh9uv+A BRZB8ebHCjcIdCmUdkaX2b2RtW77W5kf3HBFGCXVaA2gzbrXjb6N5fiWbRn3ZsrJF3sFUH MqzX86zUC+UCILT2Ac9isZ7Jq6xj6Wnv+E//80U0ukzbJKVzgGyp+/i4bzE3hZZb6bCCpc QKiVar7lsOaH8vCebwMPe1Lu+vz36hOtuEt6Eo6Q1jrHv2BFwH3PLbxK0I8GQQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=FV4KNCwy; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -0.81 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=FV4KNCwy; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: B1ED8391B2 X-Spam-Score: -0.81 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7XNflyV3i2xY --000000000000b736b005d1c26818 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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/s= hare/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 =C3=A0 04:25, Maxim Cournoyer a =C3=A9crit : > Hello, > > bbb ee 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/pro= file/share/emacs/27.1/lisp > > > > $ less $GUIX_PROFILE/etc/profile > > export > > > EMACSLOADPATH=3D"${GUIX_PROFILE:-/gnu/store/vq5dzmbx202z9p5hjyxfzcdpyzapx= gxg-profile}/share/emacs/site-lisp:${GUIX_PROFILE:-/gnu/store/vq5dzmbx202z9= p5hjyxfzcdpyzapxgxg-profile}/share/emacs/27.1/lisp${EMACSLOADPATH:+:}$EMACS= LOADPATH" > > > > ``` > > 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-lis= p:/gnu/store/ybpddmq7f8ajzydhiqqx6dldgmadqanp-emacs-27.2/share/emacs/27.2/l= isp" > > "3.3.0" > --8<---------------cut here---------------end--------------->8--- > > HTH, > > Maxim > --000000000000b736b005d1c26818 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks, the problem is solved.

## Possible causeInitially, 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<= br>/home/dev_1/.guix-profile/bin/emacs
/home/dev_1/.guix-profile/bin/ema= cs
/run/current-system/profile/bin/emacs

$ ls -l /home/dev_1/.gui= x-profile/bin/emacs
lrwxrwxrwx 8 root root 64 Jan=C2=A0 1=C2=A0 1970 /ho= me/dev_1/.guix-profile/bin/emacs -> /gnu/store/6mw831p6pccqwr3k3qanr6pmh= cq0qym6-emacs-27.1/bin/emacs

$ ls -l /run/current-system/profile/bin= /emacs
lrwxrwxrwx 2 root root 64 Jan=C2=A0 1=C2=A0 1970 /run/current-sys= tem/profile/bin/emacs -> /gnu/store/yy66pbp3h5mw5sv7hrl1778skapszq7k-ema= cs-27.1/bin/emacs
```

Now $EMACSLOADPATH contains 6 paths with &q= uot;$GUIX_PROFILE/share/emacs/site-lisp" in it:
```
$ echo $EMAC= SLOADPATH
/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/si= te-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 ema= cs installation should has something break,so $EMACSLOADPATH isn't corr= ectly set.

Thanks again

Le=C2=A0dim. 21 nov. 2021 =C3=A0=C2=A004:= 25, Maxim Cournoyer <maxim.= cournoyer@gmail.com> a =C3=A9crit=C2=A0:
Hello,

bbb ee <blasforr= @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=3D"${GUIX_PROFILE:-/gnu/store/vq5dzmbx202z9p5hjyxfz= cdpyzapxgxg-profile}/share/emacs/site-lisp:${GUIX_PROFILE:-/gnu/store/vq5dz= mbx202z9p5hjyxfzcdpyzapxgxg-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 (gui= x
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 \
=C2=A0 '(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
--000000000000b736b005d1c26818--