all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Maxime Devos <maximedevos@telenet.be>
To: 53496@debbugs.gnu.org
Cc: Peter Kois <kangus@gmail.com>
Subject: bug#53496: guix pull from 1.1.0 --> 29091731a0c6cb649cdfd72297575fe2bb2a9591 fails
Date: Sat, 19 Mar 2022 23:58:13 +0100	[thread overview]
Message-ID: <8a7f6754a266ee4f1c91cac87b96a877de0fb2af.camel@telenet.be> (raw)
In-Reply-To: <63a594ce58660df56b8a9437f4be00e438ceb295.camel@telenet.be>


[-- Attachment #1.1: Type: text/plain, Size: 989 bytes --]

Maxime Devos schreef op za 19-03-2022 om 23:33 [+0100]:
> Maxime Devos schreef op za 19-03-2022 om 23:28 [+0100]:
> > The only use of 'module-re-export!' in current Guix is
> > 
> >   (module-re-export! (current-module) '(delete) #:replace? #t)
> > 
> > from (guix packages).
> > 
> > Probably the issue is that 'module-re-export!' did not always support
> > #:replace?, and that 1.1.0 uses an old version of Guile with the old
> > calling convention when computing the derivation ... (I don't know
> > if these details are actually true, it's a bit of a guess.)
> 
> The extra argument of module-re-export! was introduced with commit
> cf08dbdc189f0005cab6f2ec7b23ed9d150ec43d in Guile.  It seems like the
> first Guile version after this commit is v2.2.7.  Let's try
> making the '#:replace? ...' conditional upon Guile>2.2 ...

I think I have a fix, see attached patch.  Currently it's at ‘building
...-module-import-compiled.drv’ (97%).

Greetings,
Maxime.

[-- Attachment #1.2: 0001-packages-Fix-time-travel-from-Guix-1.1.0-Guile-2.2.7.patch --]
[-- Type: text/x-patch, Size: 1826 bytes --]

From f9a53bb4bccb55bb6d0f55daed778ee86eb50f5e Mon Sep 17 00:00:00 2001
From: Maxime Devos <maximedevos@telenet.be>
Date: Sat, 19 Mar 2022 22:39:33 +0000
Subject: [PATCH] packages: Fix time-travel from Guix 1.1.0 / Guile < 2.2.7.

* guix/packages.scm: Only set #:replace? #true when Guile is >= 2.2.7.

Fixes: <https://issues.guix.gnu.org/53765>
Reported-By: Peter Kois <kangus@gmail.com>
---
 guix/packages.scm | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/guix/packages.scm b/guix/packages.scm
index 9d5b23eb8a..37f5a6aa5f 100644
--- a/guix/packages.scm
+++ b/guix/packages.scm
@@ -7,6 +7,7 @@
 ;;; Copyright © 2019 Marius Bakke <mbakke@fastmail.com>
 ;;; Copyright © 2020, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
 ;;; Copyright © 2021 Chris Marusich <cmmarusich@gmail.com>
+;;; Copyright © 2022 Maxime Devos <maximedevos@telenet.be>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -182,8 +183,16 @@
 
 ;; The 'source-module-closure' procedure ca. 1.2.0 did not recognize
 ;; #:re-export-and-replace: <https://issues.guix.gnu.org/52694>.
-;; Work around it.
-(module-re-export! (current-module) '(delete) #:replace? #t)
+;; Work around it.  The #:replace? argument is only supported by
+;; Guile 2.2.7 and later, work-around it if necessary to allow
+;; time-travel from 1.1.0, see <https://issues.guix.gnu.org/53765>.
+(let ((major (string->number (major-version))))
+  (if (or (>= major 3)
+          (and (= major 2)
+               (= (string->number (minor-version)) 2) ; there is no Guile 2.3.X
+               (>= (string->number (micro-version)) 7)))
+      (module-re-export! (current-module) '(delete) #:replace? #t)
+      (module-re-export! (current-module) '(delete))))
 
 ;;; Commentary:
 ;;;

base-commit: 29091731a0c6cb649cdfd72297575fe2bb2a9591
-- 
2.30.2


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

  reply	other threads:[~2022-03-19 22:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-24  6:24 bug#53496: guix pull: error: build of `/gnu/store/njrsv4nw8v750zn6ajdcn8495592q6jb-compute-guix-derivation.drv' failed Peter Kois
2022-03-19 22:20 ` bug#53496: guix pull from 1.1.0 --> 29091731a0c6cb649cdfd72297575fe2bb2a9591 fails Maxime Devos
2022-03-19 22:28   ` Maxime Devos
2022-03-19 22:33     ` Maxime Devos
2022-03-19 22:58       ` Maxime Devos [this message]
2022-03-20  9:03         ` Maxime Devos
2022-03-21 15:19         ` Ludovic Courtès
2022-03-21 18:33           ` 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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8a7f6754a266ee4f1c91cac87b96a877de0fb2af.camel@telenet.be \
    --to=maximedevos@telenet.be \
    --cc=53496@debbugs.gnu.org \
    --cc=kangus@gmail.com \
    /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 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.