Le 26/02/2017 à 23:37, Vincent Danjean a écrit :
> I eventually succeeded in reproducing the bug: lualatex needs a
> writable HOME directory. On my plain (sid) system:
> $ cat lualatex-example.tex
> \documentclass{article}
> \usepackage{luacode}
> \begin{document}
> A random number:
> \begin{luacode}
> tex.print(math.random())
> \end{luacode}
> \end{document}
> $ lualatex lualatex-example.tex
> This is LuaTeX, Version 0.95.0 (TeX Live 2016/Debian)
> [...]
> Transcript written on lualatex-example.log.
> $ HOME=/non-existatn lualatex lualatex-example.tex
> This is LuaTeX, Version 0.95.0 (TeX Live 2016/Debian)
>  restricted system commands enabled.
> (./lualatex-example.tex
> LaTeX2e <2017/01/01> patch level 1
> 
> quiting: fix your writable cache path

And, for more info:
$ mkdir p
$ HOME=p lualatex lualatex-example.tex
This is LuaTeX, Version 0.95.0 (TeX Live 2016/Debian)
[...]
luaotfload | db : Font names database not found, generating new one.
luaotfload | db : This can take several minutes; please be patient.(compiling 
luc: /var/li
b/texmf/luatex-cache/generic/fonts/otl/lmroman10-regular.luc)(compiling luc: p/
.texlive2016/texmf-var/luatex-cache/generic/fonts/otl/lmroman10-regular.luc)(sa
ve: p/.texlive2016/texmf-var/luatex-cache/generic/fonts/otl/lmroman10-regular.l
ua)(save: p/.texlive2016/texmf-var/luatex-cache/generic/fonts/otl/lmroman10-reg
ular.luc)))
[...]
$ find p
p
p/.texlive2016
p/.texlive2016/texmf-var
p/.texlive2016/texmf-var/luatex-cache
p/.texlive2016/texmf-var/luatex-cache/generic
p/.texlive2016/texmf-var/luatex-cache/generic/names
p/.texlive2016/texmf-var/luatex-cache/generic/names/luaotfload-lookup-cache.luc
p/.texlive2016/texmf-var/luatex-cache/generic/names/luaotfload-names.lua.gz
p/.texlive2016/texmf-var/luatex-cache/generic/names/luaotfload-names.luc
p/.texlive2016/texmf-var/luatex-cache/generic/names/luaotfload-lookup-cache.lua
p/.texlive2016/texmf-var/luatex-cache/generic/fonts
p/.texlive2016/texmf-var/luatex-cache/generic/fonts/otl
p/.texlive2016/texmf-var/luatex-cache/generic/fonts/otl/lmroman10-regular.luc
p/.texlive2016/texmf-var/luatex-cache/generic/fonts/otl/lmroman10-regular.lua
$

So lulaatex seems to really use the HOME directory.

  Regards,
    Vincent

-- 
Vincent Danjean       GPG key ID 0xD17897FA         vdanj...@debian.org
GPG key fingerprint: 621E 3509 654D D77C 43F5  CA4A F6AE F2AF D178 97FA
Unofficial pkgs: http://moais.imag.fr/membres/vincent.danjean/deb.html
APT repo:  deb http://people.debian.org/~vdanjean/debian unstable main

Reply via email to