![](https://secure.gravatar.com/avatar/3aefe160da30caa0d7ea0f922f94c257.jpg?s=120&d=mm&r=g)
So here's what I've got for a TODO so far to get ConTeXt working on Alpine
Linux with musl (subject to item #6, mtx-context.lua not being found):
1. Add the musl test to first-setup.sh
2. Add the same musl test to tex/setuptex
3. Add texlua (and texluac?) to
a. the setup rsync bin/ directories
b. the tex/texmf-linuxmusl(|-ppc|-64)
4. Update mtxrun
Here's code that ought to work for detecting musl in mtxrun. Around line
3721 of the mtxrun add:
if find(architecture,"x86_64",1,true) then
platform="linux-64"
elseif find(architecture,"ppc",1,true) then
platform="linux-ppc"
else
platform="linux"
end
+ if resultof("ldd --version 2>&1"):find("musl") ~= nil then
+ platform = platform:gsub("linux", "linuxmusl")
+ end
5. Note that in tex/setuptex, there's evidently no way to get the current
script so one has to explicitly provide the TeX directory (appears to be a
BusyBox bug).
6. `context` is unable to locate `mtx-context.lua`. Some tracker output
sheds some light:
i. context --trackers=resolvers.expansions is identical
ii. context --trackers=resolvers.details,resolvers.details differs, with
the output attached. Note that to keep the comparison short I removed
lines that differed only because `linux` had been changed to `linuxmusl`.
Will keep plugging away to see if I can determine why `mtx-context.lua`
cannot be found on Alpine Linux.
Thanks for reading.
Brian
--
*from the personal account of:*
*Brian M Hunt *