> On 13 Dec 2024, at 10:42, Henning Hraban Ramm <te...@fiee.net> wrote:
> 
> Hi,
> I tried to install LMTX/linuxmusl in a Docker container, installation seems 
> to work ("context --version" looks good), but making the format fails with 
> some Lua errors, e.g.
> 
> loading > ConTeXt Token support / helpers
> … toks-aux.lmt:273: … operation on a nil value (field 'glyph')
> 
> I don’t know if that’s musl or Docker related, I’ve no clue about these.
> Should I provide a full log?

Me too.

I followed the instructions on the garden
<https://wiki.contextgarden.net/Installing_ConTeXt_LMTX_into_a_Docker_container>

except for:
- changing "FROM debian:latest" to "FROM alpine:latest"
- commenting out the install of the unzip utility
- replacing "context-linux-64" with "context-linuxmusl-64" throughout

The container build completes okay and context --version runs okay (using sh 
instead of bash)

But compiling a 3 line context source fails. I've attached the relevant lines 
from the log but I'm guessing there is a "glibc-ism" left in Lua that is 
causing the problem.

Regards,

----
lua error       > lua error on line 18 in file file-mod.mklx:

token call, execute: 
...ext/tex/texmf-context/tex/context/base/mkxl/file-mod.lmt:78: attempt to call 
a nil value (field 'getrunstate')
stack traceback:
        ...ext/tex/texmf-context/tex/context/base/mkxl/file-mod.lmt:78: in 
local 'code'
        ...ext/tex/texmf-context/tex/context/base/mkiv/util-lua.lua:97: in 
field 'loadedluacode'
        ...ext/tex/texmf-context/tex/context/base/mkiv/luat-env.lua:108: in 
field 'luafilechunk'
        ...ext/tex/texmf-context/tex/context/base/mkxl/luat-cod.lmt:82: in 
function 'lua.registercode'
        [ctxlua]:1: in main chunk
<empty file>
You injected something that confused the parser, maybe by using some Lua call.
----

—
Bruce Horrocks
Hampshire, UK

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to