From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cBT8H/quFGJ82wAAgWs5BA (envelope-from ) for ; Tue, 22 Feb 2022 10:38:02 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sDmKHfquFGJcVAAA9RJhRA (envelope-from ) for ; Tue, 22 Feb 2022 10:38:02 +0100 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 2E2413920B for ; Tue, 22 Feb 2022 10:38:02 +0100 (CET) Received: from localhost ([::1]:33986 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nMRcO-000693-OO for larch@yhetil.org; Tue, 22 Feb 2022 04:38:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44708) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMRYx-0004KF-NO for guix-devel@gnu.org; Tue, 22 Feb 2022 04:34:29 -0500 Received: from mout02.posteo.de ([185.67.36.66]:45675) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMRYu-00065X-P2 for guix-devel@gnu.org; Tue, 22 Feb 2022 04:34:27 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id D0A3A240104 for ; Tue, 22 Feb 2022 10:34:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1645522462; bh=Q+w0EpCoU2UUtQufntjpbwhy7ie0BJhxIwUr4H0umLA=; h=Date:From:Subject:To:Cc:From; b=espOdnhB106eaISPKRwER/dt8UMrCTZSTCCXFRUCk0doQ+XQtrr5xxj8fvoJRwB5p 6cjKmMt5P8CqY/i8pMB0M8yTwVW0+DMGWeTAUkor0cIUIe6VCCcroNjojGhEzYJpH6 u40cTvsQlwW6Z4+PTWndXo7SZYjPJJVNgIuZjWGTtCFFh16UF+hTn3XDXrYZJzQc9B dwSAX+TYno9oKBeTKPqzJShpPw7IpcLuHvRQ0DGXT2Q3IkwOY7+IwMaE+W6gjHvb4L STPIWg+vTZy/1UEYpZjjpwsexAs6tiu1avDNgElotcR1pmb+g5Rr2SdlRq7uwfNmrh gNjxvT4YNfH4w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4K2vBj0V26z9rxV; Tue, 22 Feb 2022 10:34:20 +0100 (CET) Content-Type: multipart/alternative; boundary="------------iLDXLcvmU83Om9szcGekzC9f" Message-ID: <984e38b3-4bb5-87b0-e0c8-f7801c26d35c@posteo.de> Date: Tue, 22 Feb 2022 09:34:20 +0000 MIME-Version: 1.0 From: Zelphir Kaltstahl Subject: Re: Missing dependency for emacs-magit To: Liliana Marie Prikler References: <397c06b8-d16c-7c1f-05ba-31750de415d8@posteo.de> <87tud2maa6.fsf@rohleder.de> <779abb46-d5af-1312-84d0-a9339e456674@posteo.de> <58bffd3e-cd4d-ed22-93f7-2be34df216ad@posteo.de> <810db4e2-e9d1-be29-03b4-f60792463b16@posteo.de> <809ccde21f551136c3632ab6c13c27e08e8684ce.camel@gmail.com> <32058b309b3742abf844283d3b49827815279f65.camel@gmail.com> <8b148d03-c1e4-a865-c259-a3bbdf58e351@posteo.de> <4b646eec73cdb531b85c168e503cbd776e428b08.camel@gmail.com> Content-Language: en-US In-Reply-To: <4b646eec73cdb531b85c168e503cbd776e428b08.camel@gmail.com> Received-SPF: pass client-ip=185.67.36.66; envelope-from=zelphirkaltstahl@posteo.de; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" 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=1645522682; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=oyAm7p4PBeGc7ljrtQaI7S8uzdPn/HoPF2yuqcfNhxo=; b=JgAxBaarAky8ANb7hyMwntvaFlZba0iQa68w/4oZET0k7CvOdYmfHfVv8w/6iURK+21/Yg cnoSDcBCP7aj8YrfzLeXj2SO3QRC3OdHtkNizj3y9JKikNZvCvZotZCuzpkEnY4RA93bX7 ShdwVSxIISFURNqb0BrQdAUGP3GvmRocG+NChfbOrIOzUESzlWEZuhyG57bBW4XA/VB7RA KwgHftP1xvpgblSFvJ5bXnTKUfOuZpO/3M5D5iVjWA8CWD7L9rxcZsI+exr89xrDN0WCBm CKTmuShOLvyzemnrXxogDbymTekGXbHhcjR3N/ZP1y3trdff7pvX4w2Duu2GiQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645522682; a=rsa-sha256; cv=none; b=NiEE5J6c+AQ6KX5qAD9r1YEij1365VC+A4oLZKVFnRUEon8MBG4DTBwZC0SBcDzgecLniL IIMj4Xb9/16wHttno3bEBOspN8hAlPa45vgQi7b4B0eAg58yyfIOC84E5USS4IM/s4vASr nqBxdFoXxihY3qTuqztPzI+sT1lnRGz1+9sy2M7h4gqqXSZ2ax22rH6cNs/ciuVq8hWluq zDOXEJF2FSP+xwEoOuDGGE4c04xikUa5k7XScv7/E5K84wi2bFokJDXh6za4asyKN1Ybk4 Y7EdjvnX3E9q/aVd5d03l3Ik3ak+3i+h105kg6pwTG6reMpnwkJx4KPTlGmg+Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=espOdnhB; dmarc=pass (policy=none) header.from=posteo.de; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.53 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=espOdnhB; dmarc=pass (policy=none) header.from=posteo.de; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 2E2413920B X-Spam-Score: -4.53 X-Migadu-Scanner: scn0.migadu.com X-TUID: A5uG7N+xWpKp This is a multi-part message in MIME format. --------------iLDXLcvmU83Om9szcGekzC9f Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hello! On 2/19/22 08:30, Liliana Marie Prikler wrote: > Hi, > > Am Samstag, dem 19.02.2022 um 02:34 +0000 schrieb Zelphir Kaltstahl: >> So I deleted and built the emacs profile again using `guix package -- >> manifest="${GUIX_EXTRA_PROFILES}"/emacs-profile-manifest.scm -- >> profile="${GUIX_EXTRA_PROFILES}"/emacs-profile`. >> >> However, no luck. Still magit cannot be loaded. Still saying that: >> >> ~~~~ >> Unable to activate package ‘magit’. >> Required package ‘git-commit-3.3.0’ is unavailable >> ~~~~ >> >> Not sure what else I can try. >> Best regards, >> Zelphir > I think there might be something fundamentally wrong here. On a pretty > recent git checkout (using pre-inst-env) I can `guix shell -C emacs > emacs-magit -E TERM -- emacs' and inside the spawned emacs (require > 'magit) works without any issues. > > Cheers I have now tried again with `guix environment` instead of using profiles. I faced the same issue as with the profile. As soon as emacs-magit is installed via guix, I get the error in the `*Messages*` buffer. Then I read about `guix shell` and learned, that it is to replace `guix environment`. Didn't know that. Guess I should change my usage. So that is what I did next. Changed the `guix environment` command in my script to `guix shell`. It should be reproducible using the following steps, unless guix itself has an issue and creates non-reproducible environments: `channels.scm` file at `~/.guix-extra-profiles/emacs-env/channels.scm`: ~~~~ (list (channel (name 'guix) (url"https://git.savannah.gnu.org/git/guix.git") (branch "master") (commit "b731d34ed796ad3ca1cfba6e08369ffd6dcb57bf") (introduction (make-channel-introduction "9edb3f66fd807b096b48283debdcddccfea34bad" (openpgp-fingerprint "BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA"))))) ~~~~ `manifest.scm` file at `~/.guix-extra-profiles/emacs-env/manifest.scm`: ~~~~ (specifications->manifest '("emacs" "emacs-auto-complete" "emacs-company" "emacs-dockerfile-mode" "emacs-editorconfig" "emacs-erlang" "emacs-exec-path-from-shell" "emacs-flycheck" "emacs-geiser" "emacs-geiser-guile" "emacs-geiser-racket" "emacs-goto-chg" "emacs-jinja2-mode" "emacs-json-mode" "emacs-magit" "emacs-markdown-mode" "emacs-moe-theme-el" "emacs-monokai-theme" "emacs-multiple-cursors" "emacs-neotree" "emacs-ob-async" "emacs-org" "emacs-ox-gfm" "emacs-pkg-info" "emacs-project" ;; "emacs-python-environment" "emacs-racket-mode" "emacs-sml-mode" "emacs-toml-mode" ;; "emacs-typescript-mode" "emacs-undo-tree" "emacs-web-mode" "emacs-yaml-mode" "emacs-yasnippet" "guile" "guile-colorized" "guile-fslib" "guile-json" "guile-readline" "racket")) ~~~~ `env.sh` script to run Emacs at `~/.guix-extra-profiles/emacs-env/env.sh`: ~~~~ #!/usr/bin/env bash set -Eeuxo pipefail DIR="~/.guix-extra-profiles/emacs-env/" guix time-machine \ --channels="${DIR}/channels.scm" -- \ shell \ --cores=4 \ --manifest="${DIR}/manifest.scm" -- \ emacs ~~~~ With those in place run: ~~~~ bash ~/.guix-extra-profiles/emacs-env/env.sh ~~~~ However, I have now found out, that the `-C` flag is `--container`, which I am not using! So I tried to use `--container` with the `guix shell` command and, what a surprise, the error in Emacs disappeared! Now of course the question is, how does `--container` affect the `emacs-magit` package? What is Emacs reading, that affects Magit and even prevents it from loading the dependency `git-commit`? If I find out more, I'll let you know. Best regards and thanks for the patience, Zelphir -- repositories:https://notabug.org/ZelphirKaltstahl --------------iLDXLcvmU83Om9szcGekzC9f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Hello!

On 2/19/22 08:30, Liliana Marie Prikler wrote:
Hi,

Am Samstag, dem 19.02.2022 um 02:34 +0000 schrieb Zelphir Kaltstahl:
So I deleted and built the emacs profile again using `guix package --
manifest="${GUIX_EXTRA_PROFILES}"/emacs-profile-manifest.scm --
profile="${GUIX_EXTRA_PROFILES}"/emacs-profile`.

However, no luck. Still magit cannot be loaded. Still saying that:

~~~~
Unable to activate package ‘magit’.
Required package ‘git-commit-3.3.0’ is unavailable
~~~~

Not sure what else I can try.
Best regards,
Zelphir
I think there might be something fundamentally wrong here.  On a pretty
recent git checkout (using pre-inst-env) I can `guix shell -C emacs
emacs-magit -E TERM -- emacs' and inside the spawned emacs (require
'magit) works without any issues.

Cheers

I have now tried again with `guix environment` instead of using profiles. I faced the same issue as with the profile. As soon as emacs-magit is installed via guix, I get the error in the `*Messages*` buffer. Then I read about `guix shell` and learned, that it is to replace `guix environment`. Didn't know that. Guess I should change my usage. So that is what I did next. Changed the `guix environment` command in my script to `guix shell`.

It should be reproducible using the following steps, unless guix itself has an issue and creates non-reproducible environments:

`channels.scm` file at `~/.guix-extra-profiles/emacs-env/channels.scm`:

~~~~
(list (channel
        (name 'guix)
        (url "https://git.savannah.gnu.org/git/guix.git")
        (branch "master")
        (commit
          "b731d34ed796ad3ca1cfba6e08369ffd6dcb57bf")
        (introduction
          (make-channel-introduction
            "9edb3f66fd807b096b48283debdcddccfea34bad"
            (openpgp-fingerprint
              "BBB0 2DDF 2CEA F6A8 0D1D  E643 A2A0 6DF2 A33A 54FA")))))
~~~~

`manifest.scm` file at `~/.guix-extra-profiles/emacs-env/manifest.scm`:

~~~~
(specifications->manifest
 '("emacs"
   "emacs-auto-complete"
   "emacs-company"
   "emacs-dockerfile-mode"
   "emacs-editorconfig"
   "emacs-erlang"
   "emacs-exec-path-from-shell"
   "emacs-flycheck"
   "emacs-geiser"
   "emacs-geiser-guile"
   "emacs-geiser-racket"
   "emacs-goto-chg"
   "emacs-jinja2-mode"
   "emacs-json-mode"
   "emacs-magit"
   "emacs-markdown-mode"
   "emacs-moe-theme-el"
   "emacs-monokai-theme"
   "emacs-multiple-cursors"
   "emacs-neotree"
   "emacs-ob-async"
   "emacs-org"
   "emacs-ox-gfm"
   "emacs-pkg-info"
   "emacs-project"
   ;; "emacs-python-environment"
   "emacs-racket-mode"
   "emacs-sml-mode"
   "emacs-toml-mode"
   ;; "emacs-typescript-mode"
   "emacs-undo-tree"
   "emacs-web-mode"
   "emacs-yaml-mode"
   "emacs-yasnippet"
   "guile"
   "guile-colorized"
   "guile-fslib"
   "guile-json"
   "guile-readline"
   "racket"))
~~~~

`env.sh` script to run Emacs at `~/.guix-extra-profiles/emacs-env/env.sh`:

~~~~
#!/usr/bin/env bash

set -Eeuxo pipefail

DIR="~/.guix-extra-profiles/emacs-env/"

guix time-machine \
     --channels="${DIR}/channels.scm" -- \
     shell \
     --cores=4 \
     --manifest="${DIR}/manifest.scm" -- \
     emacs
~~~~

With those in place run:

~~~~
bash ~/.guix-extra-profiles/emacs-env/env.sh
~~~~

However, I have now found out, that the `-C` flag is `--container`, which I am not using! So I tried to use `--container` with the `guix shell` command and, what a surprise, the error in Emacs disappeared!

Now of course the question is, how does `--container` affect the `emacs-magit` package? What is Emacs reading, that affects Magit and even prevents it from loading the dependency `git-commit`?

If I find out more, I'll let you know.

Best regards and thanks for the patience,
Zelphir

-- 
repositories: https://notabug.org/ZelphirKaltstahl
--------------iLDXLcvmU83Om9szcGekzC9f--