GNU bug report logs - #27296
Modular Texlive

Previous Next

Package: guix-patches;

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


View this message in rfc822 format

From: ludo <at> gnu.org (Ludovic Courtès)
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: 27296 <at> debbugs.gnu.org
Subject: [bug#27296] [PATCH 14/35] build-system: Add 'texlive-build-system'.
Date: Wed, 14 Jun 2017 09:41:55 +0200
Ricardo Wurmus <rekado <at> elephly.net> skribis:

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

OK, makes sense.

Ludo’.




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.