Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

latexmk with lualatex cannot stabilize #51

Open
polgab opened this issue Jul 30, 2023 · 1 comment
Open

latexmk with lualatex cannot stabilize #51

polgab opened this issue Jul 30, 2023 · 1 comment

Comments

@polgab
Copy link

polgab commented Jul 30, 2023

With this simple document (lualatex-simple.tex):

\documentclass{article}
\usepackage{fontspec}
\setmainfont{QTGraphLite}
\begin{document}
Essai
\end{document}

the following command:

docker run --rm -it -v $(pwd):/workdir danteev/texlive latexmk -pdflua lualatex-simple.tex

reruns lualatex at each run !

As /usr/local/texlive is writeable, the following files are (re)created at each run:

Rule 'lualatex':  Reasons for rerun
Changed files or newly in use/created:
  /usr/local/texlive/2023/texmf-var/luatex-cache/generic/names/luaotfload-lookup-cache.luc
Rule 'lualatex':  Reasons for rerun
Changed files or newly in use/created:
  /usr/local/texlive/2023/texmf-var/luatex-cache/generic/fonts/otl/lmroman10-bold.lua
  /usr/local/texlive/2023/texmf-var/luatex-cache/generic/fonts/otl/lmroman10-regular.lua
  /usr/local/texlive/2023/texmf-var/luatex-cache/generic/fonts/otl/qtgraphlite.lua
  /usr/local/texlive/2023/texmf-var/luatex-cache/generic/names/luaotfload-lookup-cache.luc
@polgab
Copy link
Author

polgab commented Aug 2, 2023

We can also consider that it is a defect of latexmk.

A first workaround is to tell latexmk to ignore .luc files via the following line in a latexmkrc file:

$hash_calc_ignore_pattern{'luc'}='^';

A second workaround is to define the TEXMFCACHE environment variable in the container:

ENV TEXMFCACHE=/workdir/.texlive2023/texmf-var

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant