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

Previous Next

Package: guix;

Reported by: ludo <at> gnu.org (Ludovic Courtès)

Date: Thu, 31 Aug 2017 10:12:02 UTC

Owned by: Ricardo Wurmus <rekado <at> elephly.net>

Severity: normal

Done: zimoun <zimon.toutoune <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 28303 in the body.
You can then email your comments to 28303 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#28303; Package guix. (Thu, 31 Aug 2017 10:12:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to ludo <at> gnu.org (Ludovic Courtès):
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 31 Aug 2017 10:12:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: bug-guix <at> gnu.org
Subject: “guix import texlive keyval” fails
Date: Thu, 31 Aug 2017 12:11:07 +0200
Hello!

Here’s 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-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---

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#28303; Package guix. (Mon, 09 Oct 2017 21:13:02 GMT) Full text and rfc822 format available.

Message #8 received at 28303 <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 28303 <at> debbugs.gnu.org
Subject: Re: bug#28303: “guix import texlive
 keyval” fails
Date: Mon, 09 Oct 2017 23:12:14 +0200
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





Owner recorded as Ricardo Wurmus <rekado <at> elephly.net>. Request was from Ricardo Wurmus <rekado <at> elephly.net> to control <at> debbugs.gnu.org. (Mon, 09 Oct 2017 21:36:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org, Ricardo Wurmus <rekado <at> elephly.net>:
bug#28303; Package guix. (Tue, 10 Oct 2017 06:52:01 GMT) Full text and rfc822 format available.

Message #13 received at 28303 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: 28303 <at> debbugs.gnu.org
Subject: Re: bug#28303: “guix import texlive
 keyval” fails
Date: Tue, 10 Oct 2017 08:51:44 +0200
Ricardo Wurmus <rekado <at> elephly.net> skribis:

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

For now, we could always return an error like “svn command not found” or
similar?

Ludo’.




Information forwarded to bug-guix <at> gnu.org, Ricardo Wurmus <rekado <at> elephly.net>:
bug#28303; Package guix. (Thu, 16 Sep 2021 07:19:01 GMT) Full text and rfc822 format available.

Message #16 received at 28303 <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: Ricardo Wurmus <rekado <at> elephly.net>, 28303 <at> debbugs.gnu.org
Subject: Re: bug#28303: “guix import texlive
 keyval” fails
Date: Thu, 16 Sep 2021 08:51:13 +0200
Hi,

On Tue, 10 Oct 2017 at 08:51, ludo <at> gnu.org (Ludovic Courtès) wrote:
> Ricardo Wurmus <rekado <at> elephly.net> skribis:
>
>> 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.
>
> For now, we could always return an error like “svn command not found” or
> similar?

I think this old bug [1] is fixed now.  The 2 examples works now and
from my understanding, I do not have SVN in my profiles as user.

Closing?

Cheers,
simon


--8<---------------cut here---------------start------------->8---
$ guix import texlive keyval
following redirection to `https://ctan.org/xml/1.2/pkg/keyval'...
command "svn" "export" "--non-interactive" "--trust-server-cert" "-r" "51265" "svn://www.tug.org/texlive/tags/texlive-2019.3/Master/texmf-dist/source/latex/keyval" "/tmp/guix-directory.lqE1vR/svn" failed with signal 11
guix import: warning: Could not determine source location.  Please manually specify the source field.
(package
  (name "texlive-latex-keyval")
  (version "1.15")
  (source #f)
  (build-system texlive-build-system)
  (arguments '(#:tex-directory "latex/keyval"))
  (home-page "http://www.ctan.org/pkg/keyval")
  (synopsis "Process 'key=value' schemes")
  (description
    "The package offered the first key-value decoder for LaTeX 2e; its original user was the graphicxgraphicx package, but it is widely used elsewhere in common LaTeX packages.  The package is part of the latex-graphicslatex-graphics bundle, which is one of the collections in the requiredLaTeX â\x80\x98requiredâ\x80\x99 set of packages.")
  (license lppl1.3c))

$ guix import texlive multirow
following redirection to `https://ctan.org/xml/1.2/pkg/multirow'...
command "svn" "export" "--non-interactive" "--trust-server-cert" "-r" "51265" "svn://www.tug.org/texlive/tags/texlive-2019.3/Master/texmf-dist/source/latex/multirow" "/tmp/guix-directory.UUm4ha/svn" failed with signal 11
guix import: warning: Could not determine source location.  Please manually specify the source field.
(package
  (name "texlive-latex-multirow")
  (version "2.8")
  (source #f)
  (build-system texlive-build-system)
  (arguments '(#:tex-directory "latex/multirow"))
  (home-page "http://www.ctan.org/pkg/multirow")
  (synopsis
    "Create tabular cells spanning multiple rows")
  (description
    "The package has a lot of flexibility, including an option for specifying an entry at the â\x80\x9cnaturalâ\x80\x9d width of its text.  The package is distributed with the bigdelimbigdelim and bigstrutbigstrut packages, which can be used to advantage with \\multirow cells.")
  (license lppl1.3+))
--8<---------------cut here---------------end--------------->8---




Information forwarded to bug-guix <at> gnu.org:
bug#28303; Package guix. (Thu, 16 Sep 2021 10:59:02 GMT) Full text and rfc822 format available.

Message #19 received at 28303 <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: zimoun <zimon.toutoune <at> gmail.com>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 28303 <at> debbugs.gnu.org
Subject: Re: bug#28303: “guix import texlive
 keyval” fails
Date: Thu, 16 Sep 2021 12:57:44 +0200
zimoun <zimon.toutoune <at> gmail.com> writes:

> Hi,
>
> On Tue, 10 Oct 2017 at 08:51, ludo <at> gnu.org (Ludovic Courtès) 
> wrote:
>> Ricardo Wurmus <rekado <at> elephly.net> skribis:
>>
>>> 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.
>>
>> For now, we could always return an error like “svn command not 
>> found” or
>> similar?
>
> I think this old bug [1] is fixed now.  The 2 examples works now 
> and
> from my understanding, I do not have SVN in my profiles as user.

The SVN parts still fail, but at least the rest of the import 
works fine.

> Closing?

Yes, please.

I’d like to note that this importer should eventually be replaced. 
I have some WIP for a new importer.

-- 
Ricardo




Reply sent to zimoun <zimon.toutoune <at> gmail.com>:
You have taken responsibility. (Tue, 21 Sep 2021 06:53:02 GMT) Full text and rfc822 format available.

Notification sent to ludo <at> gnu.org (Ludovic Courtès):
bug acknowledged by developer. (Tue, 21 Sep 2021 06:53:02 GMT) Full text and rfc822 format available.

Message #24 received at 28303-done <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 28303-done <at> debbugs.gnu.org
Subject: Re: bug#28303: “guix import texlive
 keyval” fails
Date: Tue, 21 Sep 2021 08:42:36 +0200
Hi,

On Thu, 16 Sep 2021 at 12:57, Ricardo Wurmus <rekado <at> elephly.net> wrote:
> zimoun <zimon.toutoune <at> gmail.com> writes:
>> On Tue, 10 Oct 2017 at 08:51, ludo <at> gnu.org (Ludovic Courtès) wrote:
>>> Ricardo Wurmus <rekado <at> elephly.net> skribis:
>>>
>>>> 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.
>>>
>>> For now, we could always return an error like “svn command not
>>> found” or similar?
>>
>> I think this old bug [1] is fixed now.  The 2 examples works now and
>> from my understanding, I do not have SVN in my profiles as user.
>
> The SVN parts still fail, but at least the rest of the import works
> fine.
>
>> Closing?
>
> Yes, please.

Done.

> I’d like to note that this importer should eventually be replaced. 
> I have some WIP for a new importer.

Cool!

Cheers,
simon




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 19 Oct 2021 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 189 days ago.

Previous Next


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