[luatex] luatex-0.95.0 on Debian: fmtutil problem

Eduardo Ochs eduardoochs at gmail.com
Thu Mar 23 07:14:23 CET 2017


Hi Norbert,

On Tue, Mar 21, 2017 at 11:26 PM, Norbert Preining
<norbert at preining.info> wrote:
> On Tue, 21 Mar 2017, Eduardo Ochs wrote:
>> foundry.supelec.fr/frs/download.php/latestfile/6/0.95.0.tar.xz
>> ./build.sh
>> sudo mv -iv /usr/bin/luatex /usr/bin/luatex-orig
>> sudo rm -v  /usr/bin/luatex
>
> That does not work...
>
>> # warning: kpathsea: configuration file texmf.cnf not found in these
>> directories:
>> #   /home/edrx/usrc/luatex/0.95.0/build/texk/web2c:
>> #   /home/edrx/usrc/luatex/0.95.0/build/texk/web2c/share/texmf-local/web2c:
>> #   /home/edrx/usrc/luatex/0.95.0/build/texk/web2c/share/texmf-dist/web2c:
>> #   /home/edrx/usrc/luatex/0.95.0/build/texk/web2c/share/texmf/web2c:
>> #   /home/edrx/usrc/luatex/0.95.0/build/texk/web2c/texmf-local/web2c:
>> #   /home/edrx/usrc/luatex/0.95.0/build/texk/web2c/texmf-dist/web2c:
>> #   /home/edrx/usrc/luatex/0.95.0/build/texk/web2c/texmf/web2c:
>> #   /home/edrx/usrc/luatex/0.95.0/build/texk:
>> #   /home/edrx/usrc/luatex/0.95.0/build/texk/share/texmf-local/web2c:
>> #   /home/edrx/usrc/luatex/0.95.0/build/texk/share/texmf-dist/web2c:
>> #   /home/edrx/usrc/luatex/0.95.0/build/texk/share/texmf/web2c:
>> #   /home/edrx/usrc/luatex/0.95.0/build/texk/texmf-local/web2c:
>> #   /home/edrx/usrc/luatex/0.95.0/build/texk/texmf-dist/web2c:
>> #   /home/edrx/usrc/luatex/0.95.0/build/texk/texmf/web2c:
>> #   /home/edrx/usrc/luatex/0.95.0/texmf-local/web2c:
>> #   /home/edrx/usrc/luatex/0.95.0/build:
>> #   /home/edrx/usrc/luatex/0.95.0/build/share/texmf-local/web2c:
>> #   /home/edrx/usrc/luatex/0.95.0/build/share/texmf-dist/web2c:
>> #   /home/edrx/usrc/luatex/0.95.0/build/share/texmf/web2c:
>> #   /home/edrx/usrc/luatex/0.95.0/build/texmf-local/web2c:
>> #   /home/edrx/usrc/luatex/0.95.0/build/texmf-dist/web2c:
>> #   /home/edrx/usrc/luatex/0.95.0/build/texmf/web2c.
>
> To set up the whol kpathsea library, any program using kpathsea first
> needs to find an *initial* texmf.cnf.
>
> The program code hard codes several paths, as you see above, but none
> of them coincides with the path in Debian/TeX Live.
>
> Because binaries and the respective share/texlive dirs are not laid out
> as expected by kpathsea (which practically expects an installation of
> TeX Live  ROOT/bin ROOT/texmf-dist ..), I apply the following patch
> during building of the binaries, including luatex:
> https://anonscm.debian.org/cgit/debian-tex/texlive-bin.git/tree/debian/patches/debian-builtin-searchpath
>
> If you want to do it without patching, you need to add a
> texmf.cnf *in* /usr/bin (link to the one in texmf-dist/web2c/ should
> suffice).

This - a slight modification of your first suggestion - made
the luatex-0.95.0 binary in /usr/bin/ able to access texmf.cnf:

  cp -s /usr/share/texlive/texmf-dist/web2c/texmf.cnf \
        ~/usrc/luatex/0.95.0/build/

However, when I run

  fmtutil --byengine luatex

it says this, and aborts:

  fmtutil: running `luatex -ini   -jobname=dviluatex
-progname=dviluatex dviluatex.ini' ...
  (...)
  fmtutil: /home/edrx/.texmf-var/web2c/luatex/dviluatex.fmt installed.
  fmtutil: running `luatex -ini   -jobname=luatex -progname=luatex
luatex.ini' ...
  This is LuaTeX, Version 0.95.0 (TeX Live 2016)  (INITEX)
   restricted system commands enabled.
  (/usr/share/texlive/texmf-dist/tex/plain/config/luatex.ini
  (/usr/share/texlive/texmf-dist/tex/generic/config/luatexiniconfig.tex)
  (/usr/share/texlive/texmf-dist/tex/generic/config/luatex-unicode-letters.tex
  loading Unicode properties)
  (/usr/share/texlive/texmf-dist/tex/plain/config/pdfetex.ini
  (/usr/share/texlive/texmf-dist/tex/generic/config/pdftexconfig.tex
  ! Undefined control sequence.
  l.3 \pdfoutput
              =1
  ?
  ! Emergency stop.
  l.3 \pdfoutput
              =1
  !  ==> Fatal error occurred, bad output DVI file produced!
  No pages of output.
  Transcript written on luatex.log.


It seems that I need to change luatex.ini, or one of the files it
"\input"s, to make it run something like the compatibility code in the
section "2.1.7 The backend primitives \pdf *" of the manual, because
recent luatexes have fewer "\pdf*" primitives that the luatex in
Debian...

Is there a standard way to do that? Where can I find the ".ini"s for
recent luatexes?

  Cheers & thanks,
    Eduardo Ochs
    eduardoochs at gmail.com
    http://angg.twu.net/
    http://angg.twu.net/LATEX/2017planar-has.pdf


More information about the luatex mailing list