GNU bug report logs -
#27296
Modular Texlive
Previous Next
Reported by: Ricardo Wurmus <rekado <at> elephly.net>
Date: Fri, 9 Jun 2017 10:44:01 UTC
Severity: important
Done: Ricardo Wurmus <rekado <at> elephly.net>
Bug is archived. No further changes may be made.
Full log
Message #148 received at 27296 <at> debbugs.gnu.org (full text, mbox):
Ludovic Courtès <ludo <at> gnu.org> writes:
> Ricardo Wurmus <rekado <at> elephly.net> skribis:
>
>> * guix/build-system/texlive.scm: New file.
>> * guix/build/texlive-build-system.scm: New file.
>> * Makefile.am (MODULES): Add them.
>> * doc/guix.texi (Build Systems): Document it.
>> * gnu/packages/tex.scm (%texlive-tag, %texlive-revision): Remove variables.
>> (texlife-ref): Remove procedure.
>
> [...]
>
[…]
>> +(define* (build #:key inputs build-targets tex-format #:allow-other-keys)
>> + ;; Find additional tex and sty files
>> + (setenv "TEXINPUTS"
>> + (string-append
>> + (getcwd) ":" (getcwd) "/build:"
>> + (string-join
>> + (append-map (match-lambda
>> + ((_ . dir)
>> + (find-files dir
>> + (lambda (_ stat)
>> + (eq? 'directory (stat:type stat)))
>> + #:directories? #t
>> + #:stat stat)))
>> + inputs)
>> + ":")))
>> + (setenv "TEXFORMATS"
>> + (string-append (assoc-ref inputs "texlive-latex-base")
>> + "/share/texmf-dist/web2c/"))
>> + (setenv "LUAINPUTS"
>> + (string-append (assoc-ref inputs "texlive-latex-base")
>> + "/share/texmf-dist/tex/latex/base/"))
>
> Should these variables be declared as search paths somewhere?
I don’t think they should. There are many more environment variables
needed by a usual TeX Live installation, but they are usually configured
in “texmf.cnf” and with special syntax e.g. to permit recursive
traversal (ending on “//”). These three variables are just the bare
minimum I needed to run “latex” or “luatex” on the packages up to this
point.
If we really do need more in the future it might be better to create a
custom “texmf.cnf” and set the TEXMFCNF variable to use it.
--
Ricardo
GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
https://elephly.net
This bug report was last modified 8 years and 32 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.