TeXLive installer fails to run certain postinstall scripts

Cheng XU xucheng at me.com
Mon Nov 2 13:13:30 CET 2020


I am maintaining a docker image for TeXLive using alpine OS at https://github.com/xu-cheng/latex-docker. Recently, I found that the installer fails to run certain post install scripts, which results to broken image (https://github.com/xu-cheng/latex-action/issues/41).

The relevant log of the installer can be found at https://github.com/xu-cheng/latex-docker/runs/1338848932?check_suite_focus=true#step:4:4257

It shows:
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

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).

After some debug, I found that the issue comes from this recent change: https://github.com/TeX-Live/installer/commit/ff98be775bf48aa576cbc25aa337dd5626af6550

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.

You can reproduce this issue by running `tlpkg/installer/config.guess` in an alpine docker image.

$ ./tlpkg/installer/config.guess

It should report `x86_64-pc-linux-musl`.

Best Regards,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tex-live/attachments/20201102/f3c71f05/attachment.html>

More information about the tex-live mailing list.