From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Flack Subject: bug#34637: inferiors example yields error from guix package Date: Sat, 23 Feb 2019 16:16:54 -0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000005d2431058298bf7a" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:59934) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxhpx-0005Sl-RA for bug-guix@gnu.org; Sat, 23 Feb 2019 19:40:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gxhpq-0002Rp-Vq for bug-guix@gnu.org; Sat, 23 Feb 2019 19:40:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:36125) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gxhpq-0002RT-MU for bug-guix@gnu.org; Sat, 23 Feb 2019 19:40:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gxhpq-00049e-Cf for bug-guix@gnu.org; Sat, 23 Feb 2019 19:40:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:56233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxhTw-0003Hg-FY for bug-guix@gnu.org; Sat, 23 Feb 2019 19:17:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gxhTv-0005Cy-BM for bug-guix@gnu.org; Sat, 23 Feb 2019 19:17:24 -0500 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:42888) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gxhTv-00056x-0F for bug-guix@gnu.org; Sat, 23 Feb 2019 19:17:23 -0500 Received: by mail-wr1-x435.google.com with SMTP id r5so6103115wrg.9 for ; Sat, 23 Feb 2019 16:17:22 -0800 (PST) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 34637@debbugs.gnu.org --0000000000005d2431058298bf7a Content-Type: text/plain; charset="UTF-8" I'm getting an error trying the example here: https://www.gnu.org/software/guix/manual/en/html_node/Inferiors.html ``` (use-modules (guix inferior) (guix channels) (srfi srfi-1)) ;for 'first' (define channels ;; This is the old revision from which we want to ;; extract guile-json. (list (channel (name 'guix) (url "https://git.savannah.gnu.org/git/guix.git") (commit "65956ad3526ba09e1f7a40722c96c6ef7c0936fe")))) (define inferior ;; An inferior representing the above revision. (inferior-for-channels channels)) ;; Now create a manifest with the current "guile" package ;; and the old "guile-json" package. (packages->manifest (list (first (lookup-inferior-packages inferior "guile-json")) (specification->package "guile"))) ``` ``` $ guix --version guix (GNU Guix) 0964671086fb9e372894e788038aee75098e61a6 Copyright (C) 2019 the Guix authors License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. ``` ``` $ guix package -n -m example-inferior.scm Updating channel 'guix' from Git repository at ' https://git.savannah.gnu.org/git/guix.git'... Computing Guix derivation for 'x86_64-linux'... | substitute: updating substitutes from 'https://bayfront.guixsd.org'... 100.0% The following derivation will be built: /gnu/store/zxrm9a410iywcdm71crjbg2j4ggpvdbv-profile.drv The following profile hook will be built: /gnu/store/gkhfa4z16x4336pbi1ha7njgdpm680yf-guix-package-cache.drv guix package: error: exception thrown: # ``` I'm running guix on ubuntu 18.04.2. I noticed bug 34402 was similar - I think I'm at the latest version of guix today. -- Martin --0000000000005d2431058298bf7a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I&= #39;m getting an error trying the example here:
<= a href=3D"https://www.gnu.org/software/guix/manual/en/html_node/Inferiors.h= tml">https://www.gnu.org/software/guix/manual/en/html_node/Inferiors.html

```
(use-modules (guix inferior) (guix channels)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(srfi srfi-1))= =C2=A0 =C2=A0;for 'first'

(define channels
=C2=A0 ;; This is the old r= evision from which we want to
=C2=A0 ;; extract guile= -json.
=C2=A0 (list (channel
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(name 'guix)
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(url "https://git.savannah.gnu.org/git/guix.git"= )
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(commit
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "65956ad3526ba09e1f7a4= 0722c96c6ef7c0936fe"))))

(define inferior
=C2=A0 ;; An inferior representi= ng the above revision.
=C2=A0 (inferior-for-channels = channels))

;; Now create a= manifest with the current "guile" package
= ;; and the old "guile-json" package.
(packa= ges->manifest
=C2=A0(list (first (lookup-inferior-= packages inferior "guile-json"))
=C2=A0 =C2= =A0 =C2=A0 =C2=A0(specification->package "guile")))
= ```

```
$ guix --version
= guix (GNU Guix) 0964671086fb9e372894e788038aee75098e61a6
Copyrigh= t (C) 2019 the Guix authors
License GPLv3+: GNU GPL version 3 or = later <http://gnu.org/licen= ses/gpl.html>
This is free software: you are free to chang= e and redistribute it.
There is NO WARRANTY, to the extent permit= ted by law.
```

```
$ guix pac= kage -n -m example-inferior.scm
Updating channel 'guix' f= rom Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
Computing Guix derivation for 'x86_64-linux'... |
substi= tute: updating substitutes from 'https://bayfront.guixsd.org'... 100.0%
The following de= rivation will be built:
=C2=A0 =C2=A0/gnu/store/zxrm9a410iywcdm71= crjbg2j4ggpvdbv-profile.drv
The following profile hook will be bu= ilt:
=C2=A0 =C2=A0/gnu/store/gkhfa4z16x4336pbi1ha7njgdpm680yf-gui= x-package-cache.drv
guix package: error: exception thrown: #<c= ondition &store-protocol-error [message: "build of `/gnu/store/zxr= m9a410iywcdm71crjbg2j4ggpvdbv-profile.drv' failed" status: 100] 1f= 80de0>
```

I'm running guix= on=C2=A0ubuntu 18.04.2.

I noticed bug 34402 was s= imilar - I think I'm at the latest version of guix today.
--

Martin
--0000000000005d2431058298bf7a--