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 · 4 comments · May be fixed by #56
Open

latexmk with lualatex cannot stabilize #51

polgab opened this issue Jul 30, 2023 · 4 comments · May be fixed by #56

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

@koppor
Copy link
Member

koppor commented Feb 12, 2025

I think, there is no easy way.

With just using luaotfload-tool --update --force -p -vvvv, I get:

luaotfload | db : Text: /usr/local/texlive/2024/texmf-var/luatex-cache/generic/names/luaotfload-names.lua.gz
luaotfload | db : Byte: /usr/local/texlive/2024/texmf-var/luatex-cache/generic/names/luaotfload-names.luc.gz
luaotfload | cache : Lookup cache saved.
luaotfload | cache : Lookup cache emptied.

Folder fonts still empty.

@koppor
Copy link
Member

koppor commented Feb 12, 2025

This was referenced Feb 12, 2025
@koppor
Copy link
Member

koppor commented Feb 14, 2025

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

Also given at latex3/luaotfload#157 (comment)

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

Successfully merging a pull request may close this issue.

2 participants