bug#54546: failed to compute the derivation for (very old) Guix

2022-04-07 Thread Giovanni Biscuolo
Hi Maxime,

sorry for this late reply!

I solved my problem with an ugly workaround: installing the Debian
provided guix package and temporarily using that updated daemon in the
systemd service, so I was able to upgrade to an updated Guix (since the
package in Debian is not up to date with upstream)

Maxime Devos  writes:

> Giovanni Biscuolo schreef op do 24-03-2022 om 16:23 [+0100]:

[...]

>> 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).

Meanwhile I applied the above workaround, I did not test your patch

[...]

>> Meanwhile is there anything I can do to upgrade my guix-damon (on
>> foreign distro)
>
> What guix is the guix service using?

It was version 1.0.0

> 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"

No, I was not using the Debian provided package, I installed from the
upstream Guix binary

>> , 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)

Wow!  I did not get it before your suggestion! :-O

IMHO this should be the default way to upgrade root's (or any othe user
with an out of date Guix) guix-daemon installation

[...]

Bug closed, thanks! Gio'

-- 
Giovanni Biscuolo

Xelera IT Infrastructures


signature.asc
Description: PGP signature


bug#54546: failed to compute the derivation for (very old) Guix

2022-03-26 Thread Maxime Devos
Giovanni Biscuolo schreef op do 24-03-2022 om 16:23 [+0100]:
> Hi Maxime,
> 
> Maxime Devos  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.

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 
-;;; Copyright © 2021 Maxime Devos 
+;;; Copyright © 2021, 2022 Maxime Devos 
 ;;;
 ;;; 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)


signature.asc
Description: This is a digitally signed message part


bug#54546: failed to compute the derivation for (very old) Guix

2022-03-24 Thread Giovanni Biscuolo
Hi Maxime,

Maxime Devos  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

[...]

> 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), I never upgraded my root default profile since I first
installed Guix on this machine so now I'm stuck at

--8<---cut here---start->8---

g@renaissance:~$ guix describe -p /var/guix/profiles/per-user/root/current-guix
Generation 1Jul 20 2020 02:08:33(current)
g@renaissance:~$ /var/guix/profiles/per-user/root/current-guix/bin/guix-daemon 
--version
guix-daemon (GNU Guix) 1.0.0

--8<---cut here---end--->8---

This machine is trying to build ungoogled-chromium even if I'm pretty
sure there is a substitute available (installed on another machine with
the very same Guix channel) and I suspect it depends on "something"
related to the guix-daemon


Thanks! Gio'

-- 
Giovanni Biscuolo

Xelera IT Infrastructures


signature.asc
Description: PGP signature


bug#54546: failed to compute the derivation for (very old) Guix

2022-03-24 Thread Maxime Devos
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.

According to Guile's NEWS, (ice-9 exceptions) is new in 3.0.0,
so the stubbing needs to be made conditional on guile-version<3.0.0.

Additionally, I'm looking into reducing the number of imports and
cycles, so possibly the situation will resolve itself eventually.

Greetings,
Maxime.


signature.asc
Description: This is a digitally signed message part


bug#54546: failed to compute the derivation for (very old) Guix

2022-03-24 Thread Giovanni Biscuolo
Hello,

I'm trying to update a (very) old guix installation in my root default
profile

when pulling I'm getting this error:

--8<---cut here---start->8---

$ sudo -i guix pull --url=http://git.savannah.gnu.org/git/guix.git
[sudo] password for g: 
Updating channel 'guix' from Git repository at 
'http://git.savannah.gnu.org/git/guix.git'...
Building from this channel:
  guix  http://git.savannah.gnu.org/git/guix.gitab98b51
Computing Guix derivation for 'x86_64-linux'... \Backtrace:
In ice-9/eval.scm:
   721:20 19 (primitive-eval (define-module (gnu packages racket) #:use-module 
(guix packages) #:use-module (# #) # ?))
In ice-9/psyntax.scm:
  1235:36 18 (expand-top-sequence ((define-module (gnu packages racket) 
#:use-module (guix packages) #:use-module ?)) ?)
  1182:24 17 (parse _ (("placeholder" placeholder)) ((top) #(ribcage () () ())) 
_ e (eval) (hygiene #{ g317}#))
   285:10 16 (parse _ (("placeholder" placeholder)) (()) _ c (eval) (hygiene 
#{ g317}#))
In ice-9/eval.scm:
   293:34 15 (_ #)
In ice-9/boot-9.scm:
   2874:4 14 (define-module* _ #:filename _ #:pure _ #:version _ #:imports _ 
#:exports _ #:replacements _ # _ # _ # _ ?)
  2887:24 13 (_)
   222:29 12 (map1 (((guix packages)) ((guix download)) ((guix git-download)) 
((guix utils)) ((guix gexp)) ((# ?)) ?))
   222:29 11 (map1 (((guix download)) ((guix git-download)) ((guix utils)) 
((guix gexp)) ((guix build-system #)) # ?))
   222:29 10 (map1 (((guix git-download)) ((guix utils)) ((guix gexp)) ((guix 
build-system copy)) ((guix # gnu)) # ?))
   222:29  9 (map1 (((guix utils)) ((guix gexp)) ((guix build-system copy)) 
((guix build-system gnu)) ((srfi #)) # ?))
   222:29  8 (map1 (((guix gexp)) ((guix build-system copy)) ((guix 
build-system gnu)) ((srfi srfi-1)) ((srfi #)) # ?))
   222:29  7 (map1 (((guix build-system copy)) ((guix build-system gnu)) ((srfi 
srfi-1)) ((srfi srfi-26)) ((# #)) # ?))
   222:29  6 (map1 (((guix build-system gnu)) ((srfi srfi-1)) ((srfi srfi-26)) 
((ice-9 match)) ((ice-9 #)) ((# #)) ?))
   222:29  5 (map1 (((srfi srfi-1)) ((srfi srfi-26)) ((ice-9 match)) ((ice-9 
exceptions)) ((gnu packages)) ((# ?)) ?))
   222:29  4 (map1 (((srfi srfi-26)) ((ice-9 match)) ((ice-9 exceptions)) ((gnu 
packages)) ((gnu packages #)) ((?)) ?))
   222:29  3 (map1 (((ice-9 match)) ((ice-9 exceptions)) ((gnu packages)) ((gnu 
packages autotools)) ((gnu # #)) # ?))
   222:17  2 (map1 (((ice-9 exceptions)) ((gnu packages)) ((gnu packages 
autotools)) ((gnu packages bash)) ((# ?)) ?))
   2803:6  1 (resolve-interface _ #:select _ #:hide _ #:prefix _ #:renamer _ 
#:version _)
In unknown file:
   0 (scm-error misc-error #f "~A ~S" ("no code for module" (ice-9 
exceptions)) #f)

ERROR: In procedure scm-error:
no code for module (ice-9 exceptions)
guix pull: error: You found a bug: the program 
'/gnu/store/7n5xpd211950xyn39sxwqm6jmgishhnv-compute-guix-derivation'
failed to compute the derivation for Guix (version: 
"ab98b51ef1304e975da127e3092d01dcc7f02657"; system: "x86_64-linux";
host version: "1.0.0"; pull-version: 1).
Please report the COMPLETE output above by email to .

--8<---cut here---end--->8---

Please is there any workaround for this?

Thanks! Gio'

-- 
Giovanni Biscuolo

Xelera IT Infrastructures


signature.asc
Description: PGP signature