Skip to content

Temporary fix for ConTeXt (#30)

Max Chernoff requested to merge gucci-on-fleek/texlive:issue-30 into master

Fixes #30 (closed). When upstream ConTeXt is fixed, we'll want to remove the code below # Temporary fix for ConTeXt (#30) (but keep the code below # test the installation).

What I've done to test

$ podman run --pull always --rm -it registry.gitlab.com/islandoftex/images/texlive:latest-medium
# sed -i '/package.loaded\["data-ini"\]/a if os.selfpath then environment.ownbin=lfs.symlinktarget(os.selfpath..io.fileseparator..os.selfname);environment.ownpath=environment.ownbin:match("^.*"..io.fileseparator) else environment.ownpath=kpse.new("luatex"):var_value("SELFAUTOLOC");environment.ownbin=environment.ownpath..io.fileseparator..(arg[-2] or arg[-1] or arg[0] or "luatex"):match("[^"..io.fileseparator.."]*$") end' /usr/bin/mtxrun.lua
# mtxrun --generate
# texlua /usr/bin/mtxrun.lua --luatex --generate
# context --make
# context --luatex --make

# context --version
mtx-context     | ConTeXt Process Management 1.04
mtx-context     |
mtx-context     | main context file: /usr/local/texlive/2023/texmf-dist/tex/context/base/mkiv/context.mkiv
mtx-context     | current version: 2023.03.10 12:15
mtx-context     | main context file: /usr/local/texlive/2023/texmf-dist/tex/context/base/mkxl/context.mkxl
mtx-context     | current version: 2023.03.10 12:15

# context --luatex --version
mtx-context     | redirect luametatex -> luatex: luatex --luaonly "/usr/bin/mtxrun.lua" --script mtx-context --luatex --version --redirected
mtx-context     | ConTeXt Process Management 1.04
mtx-context     |
mtx-context     | main context file: /usr/local/texlive/2023/texmf-dist/tex/context/base/mkiv/context.mkiv
mtx-context     | current version: 2023.03.10 12:15
mtx-context     | main context file: /usr/local/texlive/2023/texmf-dist/tex/context/base/mkxl/context.mkxl
mtx-context     | current version: 2023.03.10 12:15

What I haven't done to test

Actually build the images. My internet is far too slow to do that in a reasonable amount of time.

Since I haven't built the images, this may need a few changes to work properly. Please let me know if anything doesn't work, or just make the changes yourself if you prefer.

Merge request reports