I'm currently working on getting TeXLive usable in Linux Flatpaks, however LuaLaTeX "silently" fails and I have no idea what might be wrong or where to start. The output and symptoms are not unlike Lualatex produces no output (MiKTeX), however I'm neither on Windows with UCS/ANSI encoding, nor are my files or
$HOME in a non-ASCII path, nor am I using MikTeX.
I'm reusing the mwe from the linked question:
luatex works but if I load the otf package:
\input luaotfload.sty abc \bye
$ luatex mwe.tex This is LuaTeX, Version 1.12.0 (TeX Live 2020) restricted system commands enabled. (./mwe.tex (/usr/lib/sdk/texlive/texmf-dist/tex/luatex/luaotfload/luaotfload.sty (/usr/lib/sdk/texlive/texmf-dist/tex/latex/base/ltluatex.tex)
It may be notable that the last line of the output/log is missing a newline which may indicate a crash of the engine(?).
luaotfload-tool -u even with highest verbosity doesn't give any output at all. However, for what it's worth, ConTeXt MkIV (i.e. using LuaTeX as backend) works fine.
My first assumption was that the Flatpak being based on the DVD release of TeXLive 2020 without any updates since (including two minor releases of luaotfload) was too old. I'm currently working on being able to use more recent daily-snapshots of TeXLive in Flatpak (https://github.com/flathub/org.freedesktop.Sdk.Extension.texlive/pull/28), however this didn't change any of the above behavior (I've confirmed that I'm indeed running luaotfload 3.14 in the Flatpak).
Steps to reproduce:
Configure the flathub remote and your distro to have flatpaks in your path, then install TeXLive:
$ flatpak install org.freedesktop.Sdk.Extension.texlive
Run a shell within the Sandbox and put the TeXLive SDK into the PATH:
$ flatpak run --command=/usr/bin/sh --devel org.freedesktop.Sdk [ org.freedesktop.Sdk ~ ]$ source /usr/lib/sdk/texlive/enable.sh
Create a MWE and build:
[ org.freedesktop.Sdk ~ ]$ cat > mwe.tex \input luaotfload.sty abc \bye [ org.freedesktop.Sdk ~ ]$ luatex mwe.tex