Re: [NTG-context] Build for Alpine Linux

2018-04-17 Thread Thomas A. Schmitz
On 04/17/2018 05:25 PM, Arthur Reutenauer wrote: I can’t test musl support, but the new code should avoid the problem Thomas experienced. Best, Arthur I haven't had any trouble so far but need to test with another computer, tonight. Thomas ___

Re: [NTG-context] Build for Alpine Linux

2018-04-13 Thread Aditya Mahajan
On Fri, 13 Apr 2018, Henning Hraban Ramm wrote: Am 2018-04-13 um 13:42 schrieb Henri Menke : Exactly. We have that. And most bits and pieces are in place to allow that, except for the problem with mtxrun not being able to determine the platform correctly. Actually, the musl detection only ha

Re: [NTG-context] Build for Alpine Linux

2018-04-13 Thread Henning Hraban Ramm
Am 2018-04-13 um 13:42 schrieb Henri Menke : >> Exactly. We have that. And most bits and pieces are in place to allow >> that, except for the problem with mtxrun not being able to determine >> the platform correctly. > > Actually, the musl detection only has to be peformed for downloading > binar

Re: [NTG-context] Build for Alpine Linux

2018-04-13 Thread Hans Hagen
On 4/13/2018 1:14 PM, Mojca Miklavec wrote: On 11 April 2018 at 22:37, Hans Hagen wrote: On 4/11/2018 10:08 PM, Brian Hunt wrote: 3. Add texlua (and texluac?) to a. the setup rsync bin/ directories b. the tex/texmf-linuxmusl(|-ppc|-64) we don't use texluac, don't need texlua on windo

Re: [NTG-context] Build for Alpine Linux

2018-04-13 Thread Henri Menke
On 04/13/2018 11:14 PM, Mojca Miklavec wrote: > On 11 April 2018 at 22:37, Hans Hagen wrote: >> On 4/11/2018 10:08 PM, Brian Hunt wrote: >> >>> 3. Add texlua (and texluac?) to >>>a. the setup rsync bin/ directories >>>b. the tex/texmf-linuxmusl(|-ppc|-64) >> >> we don't use texluac, don't n

Re: [NTG-context] Build for Alpine Linux

2018-04-13 Thread Mojca Miklavec
On 11 April 2018 at 22:37, Hans Hagen wrote: > On 4/11/2018 10:08 PM, Brian Hunt wrote: > >> 3. Add texlua (and texluac?) to >>a. the setup rsync bin/ directories >>b. the tex/texmf-linuxmusl(|-ppc|-64) > > we don't use texluac, don't need texlua on windows and on linux texlua is > just a s

Re: [NTG-context] Build for Alpine Linux

2018-04-13 Thread Brian Hunt
For those interested in reproducing the issues experienced on Alpine, I've published an image that you should be able to start with: $ docker run -ti brianmhunt/context-alpine:demo (You can see the Dockerfile etc here: https://hub.docker.com/r/brianmhunt/context-alpine/) That image applies the T

Re: [NTG-context] Build for Alpine Linux

2018-04-11 Thread Henri Menke
On Wed, 2018-04-11 at 20:08 +, Brian Hunt wrote: > 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

Re: [NTG-context] Build for Alpine Linux

2018-04-11 Thread Brian Hunt
Aditya: I did indeed; it fails with `mtxrun | unknown script 'base.lua' or 'mtx-base.lua'` (sorry I didn't report this). Hans: > if musl needs different bin then there should be a different initial > download i think because basically we're now talking of: windows, osx, > linux, linuxmus

Re: [NTG-context] Build for Alpine Linux

2018-04-11 Thread Hans Hagen
On 4/11/2018 10:08 PM, Brian Hunt wrote: 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 no problem adding a robu

Re: [NTG-context] Build for Alpine Linux

2018-04-11 Thread Aditya Mahajan
On Wed, 11 Apr 2018, Brian Hunt wrote: 6. `context` is unable to locate `mtx-context.lua`. Some tracker output sheds some light: Have you run luatools --generate Aditya ___ If your question is of interest to oth

Re: [NTG-context] Build for Alpine Linux

2018-04-11 Thread Brian Hunt
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

Re: [NTG-context] Build for Alpine Linux

2018-04-11 Thread Brian Hunt
> That’s what I was saying. But you seemed to imply that grep -F 'musl' > was preferable to grep -E '^musl' from a portability and robustness > point of view. Sorry if I was unclear; `grep -F` is preferable to `fgrep` since the latter is less portable, and `grep -F` may be preferable to `-E` beca

Re: [NTG-context] Build for Alpine Linux

2018-04-10 Thread Arthur Reutenauer
On Tue, Apr 10, 2018 at 11:05:12AM +, Brian Hunt wrote: >> The caret in itself was not the problem, only that it was not escaped >> for the shell. Testing a regexp, with -E of course, is just as robust, >> and allows us to be more specific about what we test. > > Either is fine I am sure

Re: [NTG-context] Build for Alpine Linux

2018-04-10 Thread Alan Braslau
On Tue, 10 Apr 2018 11:05:12 + Brian Hunt wrote: > from a code maintenance and testing > perspective I'd be more concerned about a regression or > misinterpretation to an unescaped carat that breaks the detection on > zsh Doesn't *everybody* use zsh? ;-)

Re: [NTG-context] Build for Alpine Linux

2018-04-10 Thread Brian Hunt
A few more notes: 1. Missing texlua - found The missing `texlua` from `bin/` and `tex/texmf-linuxmusl-64/bin` appears to be a problem originating at the rsync source, notably it appears that `texlua` is missing from these paths: http://standalone.contextgarden.net/setup/linuxmusl-64/ http://stand

Re: [NTG-context] Build for Alpine Linux

2018-04-10 Thread Brian Hunt
> The caret in itself was not the problem, only that it was not escaped > for the shell. Testing a regexp, with -E of course, is just as robust, > and allows us to be more specific about what we test. Either is fine I am sure, but from a code maintenance and testing perspective I'd be more conce

Re: [NTG-context] Build for Alpine Linux

2018-04-09 Thread Arthur Reutenauer
> A few notes: > a.) On some platforms fgrep has been deprecated (in favour of `grep -F`) so > it's not future-proof I don’t think the aliases fgrep and egrep have ever been supposed to be portable. POSIX has grep -F and grep -E, and that’s what we should use. > b.) The caret (^) passed to `gr

Re: [NTG-context] Build for Alpine Linux

2018-04-09 Thread Brian Hunt
Here are a couple experimental observations. 1. Detecting musl. -- Alpine Linux/sh -- $ ldd --version 2>&1 | grep -F musl musl libc (x86_64) $? = 0 -- Debian/bash -- $ ldd --version 2>&1 | grep -F musl (nothing; $? = 1) -- Debian/zsh -- $ ldd --version 2>&1 | grep -F musl (nothing; $? = 1) A

Re: [NTG-context] Build for Alpine Linux

2018-04-08 Thread Henri Menke
On Sun, 2018-04-08 at 22:50 +0200, Mojca Miklavec wrote: > Dear Brian, > > On 8 April 2018 at 16:56, Brian Hunt wrote: > > > > Hello everyone, > > > > Per this question on tex.StackOverflow, I am having trouble getting ConTeXt > > (LuaTeX specifically) to run on Alpine Linux: > > > > https://te

Re: [NTG-context] Build for Alpine Linux

2018-04-08 Thread Arthur Reutenauer
On Mon, Apr 09, 2018 at 09:26:35AM +1200, Henri Menke wrote: > This only blows up on Zsh.  I will contact the "config.guess" maintainer (from > where I stole that snippet). The unescaped caret is only a problem on zsh with EXTENDED_GLOB activated, but the effect of grep -q is problematic, and no

Re: [NTG-context] Build for Alpine Linux

2018-04-08 Thread Henri Menke
On Sun, 2018-04-08 at 22:50 +0200, Mojca Miklavec wrote: > Dear Brian, > > On 8 April 2018 at 16:56, Brian Hunt wrote: > > > > Hello everyone, > > > > Per this question on tex.StackOverflow, I am having trouble getting ConTeXt > > (LuaTeX specifically) to run on Alpine Linux: > > > > https://te

Re: [NTG-context] Build for Alpine Linux

2018-04-08 Thread Arthur Reutenauer
On Sun, Apr 08, 2018 at 10:50:16PM +0200, Mojca Miklavec wrote: > I need to finish "parsing" > https://mailman.ntg.nl/pipermail/ntg-context/2018/091123.html I was wondering if anyone had paid attention to that :-) I realise the explanation is a bit long, but there were many details and I th

Re: [NTG-context] Build for Alpine Linux

2018-04-08 Thread Mojca Miklavec
Dear Brian, On 8 April 2018 at 16:56, Brian Hunt wrote: > Hello everyone, > > Per this question on tex.StackOverflow, I am having trouble getting ConTeXt > (LuaTeX specifically) to run on Alpine Linux: > > https://tex.stackexchange.com/questions/425463 > > Specifically, the build from ConTeXt stan

[NTG-context] Build for Alpine Linux

2018-04-08 Thread Brian Hunt
Hello everyone, Per this question on tex.StackOverflow, I am having trouble getting ConTeXt (LuaTeX specifically) to run on Alpine Linux: https://tex.stackexchange.com/questions/425463 Specifically, the build from ConTeXt standalone has a LuaTeX that seems not to run against the musl libc6 libra