I think this means either needs dev-texlive/texlive-luatex test dep, or REQUIRED_USE="test? ( latex )" FAILED tests/test_backend_pgf.py::test_minus_signs_with_tex[lualatex-pdf] - matplotlib.backends.backend_pgf.LatexError: LaTeX errored (probably missing font or error in preamble) while processing the following input: \documentclass{article} % !TeX program = lualatex \usepackage{graphicx} \def\mathdefault#1{#1} \everymath=\expandafter{\the\everymath\displaystyle} \usepackage{fontspec} \setmainfont{DejaVuSerif.ttf}[Path=\detokenize{/var/tmp/portage/dev-python/matplotlib-3.8.2-r1/work/matplotlib-3.8.2-python3_11/test-lib/matplotlib/mpl-data/fonts/ttf/}] \setsansfont{DejaVuSans.ttf}[Path=\detokenize{/var/tmp/portage/dev-python/matplotlib-3.8.2-r1/work/matplotlib-3.8.2-python3_11/test-lib/matplotlib/mpl-data/fonts/ttf/}] \setmonofont{DejaVuSansMono.ttf}[Path=\detokenize{/var/tmp/portage/dev-python/matplotlib-3.8.2-r1/work/matplotlib-3.8.2-python3_11/test-lib/matplotlib/mpl-data/fonts/ttf/}] \makeatletter\@ifpackageloaded{underscore}{}{\usepackage[strings]{underscore}}\makeatother \begin{document} \typeout{pgf_backend_query_start} This is LuaHBTeX, Version 1.13.0 (TeX Live 2021 Gentoo Linux) restricted system commands enabled. **LaTeX2e <2020-10-01> patch level 4 [\directlua]:1: module 'luaotfload-main' not found: no field package.preload['luaotfload-main'] [kpse lua searcher] file not found: 'luaotfload-main' Error in luaotfload: reverting to OT1L3 programming layer <2021-02-18> * *(/usr/share/texmf-dist/tex/latex/base/article.cls Document Class: article 2020/04/10 v1.4m Standard LaTeX document class (/usr/share/texmf-dist/tex/latex/base/size10.clo (/usr/share/texmf-dist/tex/latex/lm/ot1lmr.fd))) *(/usr/share/texmf-dist/tex/latex/graphics/graphicx.sty (/usr/share/texmf-dist/tex/latex/graphics/keyval.sty) (/usr/share/texmf-dist/tex/latex/graphics/graphics.sty (/usr/share/texmf-dist/tex/latex/graphics/trig.sty) (/usr/share/texmf-dist/tex/latex/graphics-cfg/graphics.cfg) (/usr/share/texmf-dist/tex/latex/graphics-def/luatex.def))) * *(Please type a command or say `\end') * *(/usr/share/texmf-dist/tex/latex/fontspec/fontspec.sty (/usr/share/texmf-dist/tex/latex/l3packages/xparse/xparse.sty (/usr/share/texmf-dist/tex/latex/l3kernel/expl3.sty (/usr/share/texmf-dist/tex/latex/l3backend/l3backend-luatex.def)) (/usr/share/texmf-dist/tex/latex/l3packages/xparse/xparse-2020-10-01.sty (/usr/share/texmf-dist/tex/latex/l3packages/xparse/xparse-generic.tex))) (/usr/share/texmf-dist/tex/latex/fontspec/fontspec-luatex.sty (/usr/share/texmf-dist/tex/latex/base/fontenc.sty ! Font \TU/lmr/m/n/10=[lmroman10-regular]:+tlig; at 10pt not loadable: metric d ata not found or bad. <to be read again> relax l.112 ...lt\familydefault\seriesdefault\shapedefault 351 words of node memory still in use: 2 hlist, 1 rule, 1 dir, 48 glue_spec, 5 if_stack, 1 write nodes avail lists: 2:8,3:2,4:1,5:1,7:2,9:3 ! ==> Fatal error occurred, no output PDF file produced! Transcript written on texput.log. Reproducible: Always
Created attachment 881375 [details] build.log and emerge --info
It actually tries to handle no LaTeX gracefully, it's just that you seem to have some parts installed so it thinks you have enough.