﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
17843	luametatex	ken@…	ken@…	"With TL2023, the context files have been altered to use luametatext, and the old stub scripts have been removed.

A source tarball (unversioned directory name) can currently be downloaded in firefox from [ https://tug.org/svn/texlive/trunk/Master/source/] (click on it, click on download - currently on rev 66577, it might change under us.) See #17823 for more about available trees - it looks an order of magnitude easier to just take this years pretarred source.

Getting it to work was an order of magnitude worse than for any of the other tex 'extensions' and caused a shed-load of swearing. In the end I managed to get a binary copy of 2023 install_tl_unx and only install the 'context' scheme. I was still none the wiser, but using strace I eventually got it to work, at least for MKIV. Documentation for this is generally old and unreliable.

The following appears to be what is needed (I had a few mis-steps along the way, need to retest this on a fresh system):

{{{
cmake -DCMAKE_INSTALL_PREFIX=${TEXLIVE_PREFIX}/bin/${TEXARCH} \
      -DCMAKE_BUILD_TYPE=Release   \
      -GNinja ..

ninja

install -v -m755 luametatex ${TEXLIVE_PREFIX}/bin/${TEXARCH}/
ln -svf luametatex ${TEXLIVE_PREFIX}/bin/${TEXARCH}/context
ln -svf luametatex ${TEXLIVE_PREFIX}/bin/${TEXARCH}/mtxrun

for F in context.lua mtxrun.lua ; do
ln -sfv /$TEXLIVE_PREFIX/texmf-dist/scripts/context/lua/$F \
        /$TEXLIVE_PREFIX/bin/$TEXARCH/$F
done

mtxrun --generate
}}}

Please note:
1. There are no tests
2. ninja install will install luametatex, but the source (developed on windoze) assumes it will be in a regular prefix and installs luametatex in a /bin/ directory so that would be /opt/texlive/2023/bin/x86_64-linux/bin/luametatex which is of course not on $PATH.
3. It doesn't create symlinks for context and mtxrun.
4. It doesn't create symlinks for the context.lua and mtxrun.lua scripts.

"	enhancement	closed	normal	12.0	BOOK	git	medium	wontfix		
