GNU bug report logs - #28303
“guix import texlive keyval” fails

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: ludo@HIDDEN (Ludovic Courtès); Owned by: Ricardo Wurmus <rekado@HIDDEN>; dated Thu, 31 Aug 2017 10:12:02 UTC; Maintainer for guix is bug-guix@HIDDEN.
Owner recorded as Ricardo Wurmus <rekado@HIDDEN>. Request was from Ricardo Wurmus <rekado@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 28303 <at> debbugs.gnu.org:


Received: (at 28303) by debbugs.gnu.org; 9 Oct 2017 21:12:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 09 17:12:50 2017
Received: from localhost ([127.0.0.1]:58727 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1e1fM1-0000a7-Um
	for submit <at> debbugs.gnu.org; Mon, 09 Oct 2017 17:12:50 -0400
Received: from sender-of-o51.zoho.com ([135.84.80.216]:21096)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rekado@HIDDEN>) id 1e1fLz-0000Zx-FB
 for 28303 <at> debbugs.gnu.org; Mon, 09 Oct 2017 17:12:48 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1507583537; 
 s=zoho; d=elephly.net; i=rekado@HIDDEN;
 h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding;
 l=5849; bh=+9wb66a0R4Sp0WqGEu2e/EwymbGUSz5uzxbO8TcBKew=;
 b=KkI8FfM5meGYdRdOUVjNn7uUxIuC/E9HfolQLYrdZlpruKaGg/mzXPzaD82409Fg
 ke852sphul6QEIEDN8fWsKbJq2ZSgMPCeQnK96ZYph3SNf3czzS3TovPTOlvqB1gvMF
 ZebZ7lSDz7vkhXAWynhD+LuXF0PdWtcrgk733cIU=
Received: from localhost (port-92-200-49-16.dynamic.qsc.de [92.200.49.16]) by
 mx.zohomail.com with SMTPS id 1507583537127941.7166539366458;
 Mon, 9 Oct 2017 14:12:17 -0700 (PDT)
References: <8760d4vyh0.fsf@HIDDEN>
User-agent: mu4e 0.9.18; emacs 25.3.1
From: Ricardo Wurmus <rekado@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: bug#28303: =?utf-8?Q?=E2=80=9Cguix?= import texlive
 =?utf-8?Q?keyval=E2=80=9D?= fails
In-reply-to: <8760d4vyh0.fsf@HIDDEN>
X-URL: https://elephly.net
X-PGP-Key: https://elephly.net/rekado.pubkey
X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
Date: Mon, 09 Oct 2017 23:12:14 +0200
Message-ID: <87mv50m3f5.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-ZohoMailClient: External
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 28303
Cc: 28303 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)


Hi Ludo,

> --8<---------------cut here---------------start------------->8---
> $ guix import texlive keyval
> ni sekvas la redirektigon al 'https://ctan.org/xml/1.2/pkg/keyval'...
> Backtrace:
>            8 (primitive-load "/gnu/store/xjwq4aprrrb43lvsgbydd0m7pxj5758b-guix-0.13.0-5.…")
> In guix/ui.scm:
>   1331:12  7 (run-guix-command _ . _)
> In guix/scripts/import.scm:
>    114:11  6 (guix-import . _)
> In guix/scripts/import/texlive.scm:
>     91:19  5 (guix-import-texlive . _)
> In guix/memoization.scm:
>      56:0  4 (_ #<hash-table 207b420 0/31> ("keyval" "latex") _)
> In unknown file:
>            3 (_ #<procedure 20a2ba0 at guix/memoization.scm:70:17 ()> #<procedure list _> …)
> In guix/import/texlive.scm:
>    157:25  2 (sxml->package (*TOP* (entry (@ (id "keyval")) (name "keyval") (# "…") …)) _)
> In guix/serialization.scm:
>    270:25  1 (write-file #f #<output: string 24c5310> #:select? _)
> In unknown file:
>            0 (lstat #f)
>
> ERROR: In procedure lstat:
> ERROR: Wrong type (expecting string): #f
> $ guix import texlive latex-graphics
> ni sekvas la redirektigon al 'https://ctan.org/xml/1.2/pkg/latex-graphics'...
> Backtrace:
>            8 (primitive-load "/gnu/store/xjwq4aprrrb43lvsgbydd0m7pxj5758b-guix-0.13.0-5.…")
> In guix/ui.scm:
>   1331:12  7 (run-guix-command _ . _)
> In guix/scripts/import.scm:
>    114:11  6 (guix-import . _)
> In guix/scripts/import/texlive.scm:
>     91:19  5 (guix-import-texlive . _)
> In guix/memoization.scm:
>      56:0  4 (_ #<hash-table 10366c0 0/31> ("latex-graphics" "latex") _)
> In unknown file:
>            3 (_ #<procedure 105e980 at guix/memoization.scm:70:17 ()> #<procedure list _> …)
> In guix/import/texlive.scm:
>    157:25  2 (sxml->package (*TOP* (entry (@ (id "latex-graphics")) (name "latex…") …)) _)
> In guix/serialization.scm:
>    270:25  1 (write-file #f #<output: string 1464310> #:select? _)
> In unknown file:
>            0 (lstat #f)
>
> ERROR: In procedure lstat:
> ERROR: Wrong type (expecting string): #f
> --8<---------------cut here---------------end--------------->8---

In the case of “keyval” I don’t know exactly what is wrong, but in
general it looks like the importer doesn’t use subversion from the store
but expects it to be available in the environment.

If you don’t have subversion in the environment this will fail:

--8<---------------cut here---------------start------------->8---
guix import texlive multirow
following redirection to `https://ctan.org/xml/1.2/pkg/multirow'...
Backtrace:
          17 (primitive-load "/gnu/store/zh0lb2g15hirq7zw2477w7s5ww7dxkv0-guix-0.13.0-6.a9468b4/bin/.guix-real")
In guix/ui.scm:
  1375:12 16 (run-guix-command _ . _)
In guix/scripts/import.scm:
   114:11 15 (guix-import . _)
In guix/scripts/import/texlive.scm:
    91:19 14 (guix-import-texlive . _)
In guix/memoization.scm:
     56:0 13 (_ #<hash-table 2dcdbe0 0/31> ("multirow" "latex") _)
In unknown file:
          12 (_ #<procedure 2deff80 at guix/memoization.scm:70:17 ()> #<procedure list _> #<undefined>)
In ice-9/boot-9.scm:
    142:2 11 (dynamic-wind #<procedure 2e225a0 at ice-9/boot-9.scm:1057:2 _> #<procedure 2e22580 at ice-9/eval.scm:330:1…> …)
In ice-9/eval.scm:
   174:20 10 (_ #(#(#(#(#(#(#(#(#(#<directory (guix import texlive) 268e280> #<variable 2f4f7a0 …> …)) …) …) …) …) …) …) …))
   177:32  9 (lp (#<procedure 2e38a00 at ice-9/eval.scm:182:7 (env)> #<procedure 2e389e0 at ice-9/eval.scm:282:4 (env)> …))
    159:9  8 (_ #(#(#(#(#(#(#(#(#(#<directory (guix import texlive) 268e280> #<variable 2f4f7a0 …> …)) …) …) …) …) …) …) …))
   174:20  7 (_ #(#(#(#(#(#(#(#(#(#<directory (guix import texlive) 268e280> #<variable 2f4f7a0 …> …)) …) …) …) …) …) …) …))
   177:32  6 (lp (#<procedure 2e42980 at ice-9/eval.scm:182:7 (env)>))
    159:9  5 (_ #(#(#(#(#(#(#(#(#(#<directory (guix import texlive) 268e280> #<variable 2f4f7a0 …> …)) …) …) …) …) …) …) …))
    159:9  4 (_ #(#(#(#(#(#(#(#(#(#<directory (guix import texlive) 268e280> #<variable 2f4f7a0 …> …)) …) …) …) …) …) …) …))
    155:9  3 (_ #(#(#(#(#(#(#(#(#(#<directory (guix import texlive) 268e280> #<variable 2f4f7a0 …> …)) …) …) …) …) …) …) …))
    619:8  2 (_ #(#(#<directory (guix import texlive) 268e280> #f) #<output: string 2dd7380> #<procedure 2e42680 at gui…>))
In guix/serialization.scm:
   270:25  1 (write-file #f #<output: string 2dd7380> #:select? _)
In unknown file:
           0 (lstat #f)

ERROR: In procedure lstat:
ERROR: Wrong type (expecting string): #f
--8<---------------cut here---------------end--------------->8---

But it’s fine when run inside “guix environment --ad-hoc subversion”.

“keyval” is different, though, as it fails no matter if subversion is
available or not.

For packages like that I had a simple workaround to avoid computing the
hash when the SVN download failed:

--8<---------------cut here---------------start------------->8---
diff --git a/guix/import/texlive.scm b/guix/import/texlive.scm
index d4c371436..b554f47d2 100644
--- a/guix/import/texlive.scm
+++ b/guix/import/texlive.scm
@@ -152,11 +152,12 @@ expression describing it."
                    (uri (texlive-ref ,component ,id))
                    (sha256
                     (base32
-                     ,(bytevector->nix-base32-string
-                       (let-values (((port get-hash) (open-sha256-port)))
-                         (write-file checkout port)
-                         (force-output port)
-                         (get-hash)))))))
+                     ,(if checkout (bytevector->nix-base32-string
+                                    (let-values (((port get-hash) (open-sha256-port)))
+                                      (write-file checkout port)
+                                      (force-output port)
+                                      (get-hash)))
+                          "COULD-NOT-DOWNLOAD-SVN-REPO")))))
          (build-system texlive-build-system)
          (arguments ,`(,'quote (#:tex-directory ,(string-join (list component id) "/"))))
          (home-page ,home-page)
--8<---------------cut here---------------end--------------->8---

The real problem here that should be fixed first, however, is that the
subversion package isn’t used automatically.

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net





Information forwarded to bug-guix@HIDDEN:
bug#28303; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 31 Aug 2017 10:11:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 31 06:11:25 2017
Received: from localhost ([127.0.0.1]:36210 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dnMRZ-0007EB-LC
	for submit <at> debbugs.gnu.org; Thu, 31 Aug 2017 06:11:25 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44246)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1dnMRX-0007Dw-FA
 for submit <at> debbugs.gnu.org; Thu, 31 Aug 2017 06:11:23 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1dnMRR-00038P-3u
 for submit <at> debbugs.gnu.org; Thu, 31 Aug 2017 06:11:18 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:46752)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <ludo@HIDDEN>) id 1dnMRR-00038J-0Q
 for submit <at> debbugs.gnu.org; Thu, 31 Aug 2017 06:11:17 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35217)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1dnMRP-0003eO-JV
 for bug-guix@HIDDEN; Thu, 31 Aug 2017 06:11:16 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1dnMRK-00037W-Ll
 for bug-guix@HIDDEN; Thu, 31 Aug 2017 06:11:15 -0400
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59539)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1dnMRK-00037S-Hw
 for bug-guix@HIDDEN; Thu, 31 Aug 2017 06:11:10 -0400
Received: from [193.50.110.184] (port=45362 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>) id 1dnMRK-0004Vp-2c
 for bug-guix@HIDDEN; Thu, 31 Aug 2017 06:11:10 -0400
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: bug-guix@HIDDEN
Subject: =?utf-8?Q?=E2=80=9Cguix?= import texlive =?utf-8?Q?keyval?=
 =?utf-8?Q?=E2=80=9D?= fails
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 14 Fructidor an 225 de la =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-unknown-linux-gnu
Date: Thu, 31 Aug 2017 12:11:07 +0200
Message-ID: <8760d4vyh0.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

Hello!

Here=E2=80=99s a couple of failures:

--8<---------------cut here---------------start------------->8---
$ guix import texlive keyval
ni sekvas la redirektigon al 'https://ctan.org/xml/1.2/pkg/keyval'...
Backtrace:
           8 (primitive-load "/gnu/store/xjwq4aprrrb43lvsgbydd0m7pxj5758b-g=
uix-0.13.0-5.=E2=80=A6")
In guix/ui.scm:
  1331:12  7 (run-guix-command _ . _)
In guix/scripts/import.scm:
   114:11  6 (guix-import . _)
In guix/scripts/import/texlive.scm:
    91:19  5 (guix-import-texlive . _)
In guix/memoization.scm:
     56:0  4 (_ #<hash-table 207b420 0/31> ("keyval" "latex") _)
In unknown file:
           3 (_ #<procedure 20a2ba0 at guix/memoization.scm:70:17 ()> #<pro=
cedure list _> =E2=80=A6)
In guix/import/texlive.scm:
   157:25  2 (sxml->package (*TOP* (entry (@ (id "keyval")) (name "keyval")=
 (# "=E2=80=A6") =E2=80=A6)) _)
In guix/serialization.scm:
   270:25  1 (write-file #f #<output: string 24c5310> #:select? _)
In unknown file:
           0 (lstat #f)

ERROR: In procedure lstat:
ERROR: Wrong type (expecting string): #f
$ guix import texlive latex-graphics
ni sekvas la redirektigon al 'https://ctan.org/xml/1.2/pkg/latex-graphics'.=
..
Backtrace:
           8 (primitive-load "/gnu/store/xjwq4aprrrb43lvsgbydd0m7pxj5758b-g=
uix-0.13.0-5.=E2=80=A6")
In guix/ui.scm:
  1331:12  7 (run-guix-command _ . _)
In guix/scripts/import.scm:
   114:11  6 (guix-import . _)
In guix/scripts/import/texlive.scm:
    91:19  5 (guix-import-texlive . _)
In guix/memoization.scm:
     56:0  4 (_ #<hash-table 10366c0 0/31> ("latex-graphics" "latex") _)
In unknown file:
           3 (_ #<procedure 105e980 at guix/memoization.scm:70:17 ()> #<pro=
cedure list _> =E2=80=A6)
In guix/import/texlive.scm:
   157:25  2 (sxml->package (*TOP* (entry (@ (id "latex-graphics")) (name "=
latex=E2=80=A6") =E2=80=A6)) _)
In guix/serialization.scm:
   270:25  1 (write-file #f #<output: string 1464310> #:select? _)
In unknown file:
           0 (lstat #f)

ERROR: In procedure lstat:
ERROR: Wrong type (expecting string): #f
--8<---------------cut here---------------end--------------->8---

Ludo=E2=80=99.




Acknowledgement sent to ludo@HIDDEN (Ludovic Courtès):
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#28303; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 9 Oct 2017 21:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.