From: Maxime Devos <maximedevos@telenet.be>
To: Giovanni Biscuolo <g@xelera.eu>, 54546@debbugs.gnu.org
Subject: bug#54546: failed to compute the derivation for (very old) Guix
Date: Sat, 26 Mar 2022 19:09:29 +0100 [thread overview]
Message-ID: <21c0ce52d10e118957e6e32d895aeb94531050be.camel@telenet.be> (raw)
In-Reply-To: <87sfr7idco.fsf@xelera.eu>
[-- Attachment #1.1: Type: text/plain, Size: 1490 bytes --]
Giovanni Biscuolo schreef op do 24-03-2022 om 16:23 [+0100]:
> Hi Maxime,
>
> Maxime Devos <maximedevos@telenet.be> writes:
>
> > Giovanni Biscuolo schreef op do 24-03-2022 om 15:51 [+0100]:
> > > --8<---------------cut here---------------end--------------->8---
> > > [(ice-9 exceptions) stuff]
> > > Please is there any workaround for this?
> >
> > build-aux/build-self.scm stubs (gcrypt hash) and (git).
> > Likewise, it could be modified to stub (ice-9 exceptions) when
> > 'guile-version' refers to a pre-(ice-9 exceptions) Guile.
>
> I get the meaning of "stubbing" but I don't know how to code in Guile,
> sorry ? cannot help here
Ok, I've tried something in the attached patch (completely untested).
> [...]
>
> > Additionally, I'm looking into reducing the number of imports and
> > cycles, so possibly the situation will resolve itself eventually.
>
> Meanwhile is there anything I can do to upgrade my guix-damon (on
> foreign distro)
What guix is the guix service using? If it's /usr/bin/guix installed
with the foreign distro's package manager, you can do, in case of
Debian, "sudo apt-get update && sudo apt-get upgrade"
> , I never upgraded my root default profile since I first
> installed Guix on this machine so now I'm stuck at [...]
Suggestion: use your regular user's guix to upgrade root's guix:
$ sudo -i "`which guix`" pull
(this assumes the non-root user has a vaguely up-to-date guix)
Greetings,
Maxime.
[-- Attachment #1.2: Type: text/x-patch, Size: 1619 bytes --]
diff --git a/build-aux/build-self.scm b/build-aux/build-self.scm
index 25a7b1e618..64257bd54c 100644
--- a/build-aux/build-self.scm
+++ b/build-aux/build-self.scm
@@ -1,6 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014, 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
-;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
+;;; Copyright © 2021, 2022 Maxime Devos <maximedevos@telenet.be>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -265,6 +265,9 @@ interface (FFI) of Guile.")
(define fake-git
(scheme-file "git.scm" #~(define-module (git))))
+ (define fake-ice-9-exceptions
+ (scheme-file "exceptions.scm" #~(define-module (ice-9 exceptions))))
+
(with-imported-modules `(((guix config)
=> ,(make-config.scm))
@@ -279,6 +282,13 @@ interface (FFI) of Guile.")
;; (git) to placate it.
((git) => ,fake-git)
+ ;; Pre-3.0 versions of Guile don't have (ice-9
+ ;; exceptions) but (gnu packages racket) imports
+ ;; it. Provide a ‘good enough’ (ice-9 exceptions).
+ ,@(if (string=? "2" (major-version guile-version))
+ `(((ice-9 exceptions) ,fake-ice-9-exceptions))
+ '())
+
,@(source-module-closure `((guix store)
(guix self)
(guix ui)
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
next prev parent reply other threads:[~2022-03-26 18:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-24 14:51 bug#54546: failed to compute the derivation for (very old) Guix Giovanni Biscuolo
2022-03-24 15:01 ` Maxime Devos
2022-03-24 15:23 ` Giovanni Biscuolo
2022-03-26 18:09 ` Maxime Devos [this message]
2022-04-07 9:28 ` Giovanni Biscuolo
2022-06-13 10:30 ` bug#54750: (gnu packages racket) assumes that (ice-9 exceptions) exist, breaks pulling from old Guix Ludovic Courtès
2022-06-13 10:52 ` bug#54546: " Maxime Devos
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=21c0ce52d10e118957e6e32d895aeb94531050be.camel@telenet.be \
--to=maximedevos@telenet.be \
--cc=54546@debbugs.gnu.org \
--cc=g@xelera.eu \
/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).