From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43002) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dL2xH-0007gV-Ek for guix-patches@gnu.org; Wed, 14 Jun 2017 03:43:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dL2xC-0003Cb-JN for guix-patches@gnu.org; Wed, 14 Jun 2017 03:43:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:43952) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dL2xC-0003Bo-4G for guix-patches@gnu.org; Wed, 14 Jun 2017 03:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dL2xB-0006Oq-Ng for guix-patches@gnu.org; Wed, 14 Jun 2017 03:43:01 -0400 Subject: [bug#27296] [PATCH 14/35] build-system: Add 'texlive-build-system'. Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20170609104559.17416-1-rekado@elephly.net> <20170609104559.17416-14-rekado@elephly.net> <87o9txjjvj.fsf@gnu.org> <871sqnqbf9.fsf@elephly.net> Date: Wed, 14 Jun 2017 09:41:55 +0200 In-Reply-To: <871sqnqbf9.fsf@elephly.net> (Ricardo Wurmus's message of "Wed, 14 Jun 2017 09:24:26 +0200") Message-ID: <8760fzt3r0.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ricardo Wurmus Cc: 27296@debbugs.gnu.org Ricardo Wurmus skribis: > Ludovic Court=C3=A8s writes: > >> Ricardo Wurmus 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 variab= les. >>> (texlife-ref): Remove procedure. >> >> [...] >> > [=E2=80=A6] >>> +(define* (build #:key inputs build-targets tex-format #:allow-other-ke= ys) >>> + ;; 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 st= at))) >>> + #: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=E2=80=99t think they should. There are many more environment varia= bles > needed by a usual TeX Live installation, but they are usually configured > in =E2=80=9Ctexmf.cnf=E2=80=9D and with special syntax e.g. to permit rec= ursive > traversal (ending on =E2=80=9C//=E2=80=9D). These three variables are ju= st the bare > minimum I needed to run =E2=80=9Clatex=E2=80=9D or =E2=80=9Cluatex=E2=80= =9D on the packages up to this > point. > > If we really do need more in the future it might be better to create a > custom =E2=80=9Ctexmf.cnf=E2=80=9D and set the TEXMFCNF variable to use i= t. OK, makes sense. Ludo=E2=80=99.