ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] can’t make a format with LMTX (Docker/linuxmusl)
@ 2024-12-13 10:42 Henning Hraban Ramm
  2024-12-17 22:39 ` [NTG-context] " Bruce Horrocks
  0 siblings, 1 reply; 2+ messages in thread
From: Henning Hraban Ramm @ 2024-12-13 10:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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?

Hraban
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [NTG-context] Re: can’t make a format with LMTX (Docker/linuxmusl)
  2024-12-13 10:42 [NTG-context] can’t make a format with LMTX (Docker/linuxmusl) Henning Hraban Ramm
@ 2024-12-17 22:39 ` Bruce Horrocks
  0 siblings, 0 replies; 2+ messages in thread
From: Bruce Horrocks @ 2024-12-17 22:39 UTC (permalink / raw)
  To: ntg-context mailing list



> On 13 Dec 2024, at 10:42, Henning Hraban Ramm <texml@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-12-17 22:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-13 10:42 [NTG-context] can’t make a format with LMTX (Docker/linuxmusl) Henning Hraban Ramm
2024-12-17 22:39 ` [NTG-context] " Bruce Horrocks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).