Subject: bug#27217: texlive is too big

From: Ricardo Wurmus <[email-masked]>
Date: Thu, 10 Jan 2019 12:27:59 +0100

Ludovic Courtès <[email-masked]> writes:

> Hello!
>
> I was also looking at the remaining dependencies on ‘texlive’.  For
> ‘teximpatient’, it looks like we’d need
> <https://ctan.org/pkg/mflogo-font> but:
>
> --8<---------------cut here---------------start------------->8---
> $ guix import texlive mflogo-font
> ni sekvas la redirektigon al 'https://ctan.org/xml/1.2/pkg/mflogo-font'...
> Backtrace:
>           10 (primitive-load "/home/ludo/.config/guix/current/bin/guix")
> In guix/ui.scm:
>   1644:12  9 (run-guix-command _ . _)
> In guix/scripts/import.scm:
>    115:11  8 (guix-import . _)
> In guix/scripts/import/texlive.scm:
>     91:19  7 (guix-import-texlive . _)
> In guix/memoization.scm:
>      98:0  6 (_ #<hash-table 20cd220 0/31> ("mflogo-font" "latex") _)
> In unknown file:
>            5 (_ #<procedure 20e66e0 at guix/memoization.scm:179:32 ()> #<procedure list _> #<undefined>)
> In guix/import/texlive.scm:
>    146:23  4 (sxml->package (*TOP* (entry (@ (id "mflogo-font")) (name "mflogo-font") (caption "Metafont…") …)) _)
> In guix/utils.scm:
>     632:8  3 (call-with-temporary-directory #<procedure 2291180 at guix/svn-download.scm:92:3 (temp)>)
> In guix/svn-download.scm:
>     95:14  2 (_ "/tmp/guix-directory.lVf6gO")
> In guix/build/svn.scm:
>      38:2  1 (svn-fetch "svn://www.tug.org/texlive/tags/texlive-2017.1/Master/texmf-dist/source/latex/mflogo-fo…" …)
> In guix/build/utils.scm:
>     616:6  0 (invoke _ . _)
>
> guix/build/utils.scm:616:6: In procedure invoke:
> Throw to key `srfi-34' with args `(#<condition &invoke-error [program: "svn" arguments: ("checkout" "--non-interactive" "--trust-server-cert" "-r" "44591" "svn://mwww.tug.org/texlive/tags/texlive-2017.1/Master/texmf-dist/source/latex/mflogo-font" "/tmp/guix-directory.lVf6gO") exit-status: 1 term-signal: #f stop-signal: #f] 2219000>)'.

So it fetches the description from ctan.org just fine, but then cannot
download the directory from the SVN repository.

That’s because there is no such directory in the SVN repository; see:

  https://www.tug.org/svn/texlive/tags/texlive-2017.1/Master/texmf-dist/source/latex/

There’s “mflogo”, but no “mflogo-font”.

That said, this kind of common error should be caught by the importer.

--
Ricardo