fedora-cloud / docker-brew-fedora

MIT License
176 stars 46 forks source link

texlive broken in fedora:rawhide #83

Closed junghans closed 3 years ago

junghans commented 3 years ago

Read the full story here: https://bugzilla.redhat.com/show_bug.cgi?id=1897839

In short a Dockerfile like this:

FROM registry.fedoraproject.org/fedora:rawhide
RUN dnf -y update
RUN dnf -y install texlive
RUN printf '\\documentclass{article}\n\\begin{document}\ntest\n\\end{document}' > test.tex
RUN latex test.tex

will fail with:

This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020) (preloaded format=latex)
 restricted \write18 enabled.

kpathsea: Running mktexfmt latex.fmt
mktexfmt: mktexfmt is using the following fmtutil.cnf files (in precedence order):
mktexfmt: mktexfmt is using the following fmtutil.cnf file for writing changes:
mktexfmt:   /root/.texlive2020/texmf-config/web2c/fmtutil.cnf
mktexfmt [INFO]: writing formats under /root/.texlive2020/texmf-var/web2c
mktexfmt [INFO]: did not find entry for byfmt=latex, skipped
mktexfmt [INFO]: total formats: 0
mktexfmt [INFO]: exiting with status 0
I can't find the format file `latex.fmt'!

After some research @spotrh, figure out that "Docker has /usr mounted read-only or otherwise restricts writes outside of the dnf transaction" (see https://bugzilla.redhat.com/show_bug.cgi?id=1897839#c11)

Sidenote, registry.fedoraproject.org/fedora:33 work fine.