From: Bruce Horrocks <ntg@scorecrow.com>
To: ntg-context mailing list <ntg-context@ntg.nl>
Subject: [NTG-context] Re: can’t make a format with LMTX (Docker/linuxmusl)
Date: Tue, 17 Dec 2024 22:39:01 +0000 [thread overview]
Message-ID: <DEC4E0E7-DB7E-49CD-8548-C798224817DA@scorecrow.com> (raw)
In-Reply-To: <1b17f699-1860-4032-94a9-82eae5d8f5ec@fiee.net>
> 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
___________________________________________________________________________________
prev parent reply other threads:[~2024-12-17 22:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-13 10:42 [NTG-context] " Henning Hraban Ramm
2024-12-17 22:39 ` Bruce Horrocks [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DEC4E0E7-DB7E-49CD-8548-C798224817DA@scorecrow.com \
--to=ntg@scorecrow.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).