<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection">
<div dir="auto">Hi,<br />
<br />
I am maintaining a docker image for TeXLive using alpine OS at <a href="https://github.com/xu-cheng/latex-docker" target="_blank">https://github.com/xu-cheng/latex-docker</a>. Recently, I found that the installer fails to run certain post install scripts, which results to broken image (<a href="https://github.com/xu-cheng/latex-action/issues/41" target="_blank">https://github.com/xu-cheng/latex-action/issues/41</a>).<br />
<br />
The relevant log of the installer can be found at <a href="https://github.com/xu-cheng/latex-docker/runs/1338848932?check_suite_focus=true#step:4:4257" target="_blank">https://github.com/xu-cheng/latex-docker/runs/1338848932?check_suite_focus=true#step:4:4257</a> <br />
<br />
It shows:<br /></div>
<pre>running mktexlsr /opt/texlive/texdir/texmf-dist ...
not a tty
tty: ignoring all arguments
writing fmtutil.cnf to /opt/texlive/texdir/texmf-dist/web2c/fmtutil.cnf
writing updmap.cfg to /opt/texlive/texdir/texmf-dist/web2c/updmap.cfg
writing language.dat to /opt/texlive/texdir/texmf-var/tex/generic/config/language.dat
writing language.def to /opt/texlive/texdir/texmf-var/tex/generic/config/language.def
writing language.dat.lua to /opt/texlive/texdir/texmf-var/tex/generic/config/language.dat.lua
running mktexlsr /opt/texlive/texdir/texmf-var /opt/texlive/texdir/texmf-config /opt/texlive/texdir/texmf-dist ...
not a tty
tty: ignoring all arguments
not running updmap-sys (not installed)
re-running mktexlsr /opt/texlive/texdir/texmf-var /opt/texlive/texdir/texmf-config ...
not a tty
tty: ignoring all arguments
not running fmtutil-sys (not installed)
running package-specific postactions
finished with package-specific postactions</pre>
<div dir="auto"><br />
Noted that certain postinstall tools are not run (i.e., not running updmap-sys (not installed) and not running fmtutil-sys (not installed) in the log).<br />
<br />
After some debug, I found that the issue comes from this recent change: <a href="https://github.com/TeX-Live/installer/commit/ff98be775bf48aa576cbc25aa337dd5626af6550" target="_blank">https://github.com/TeX-Live/installer/commit/ff98be775bf48aa576cbc25aa337dd5626af6550</a><br />
<br />
It causes the install script failing to detect the platform for Linux OS using musl, which results to incorrect binary path in the install script and leads to my issue.<br />
<br />
You can reproduce this issue by running `tlpkg/installer/config.guess` in an alpine docker image.<br />
<br />
$ ./tlpkg/installer/config.guess<br />
x86_64-pc-linux-gnu<br />
<br />
It should report `x86_64-pc-linux-musl`.</div>
</div>
<div name="messageSignatureSection"><br />
Best Regards,<br />
<br />
Cheng</div>
</body>
</html>