[NTG-context] Support for musl
henrimenke at gmail.com
Mon Jan 22 21:42:02 CET 2018
On Mon, 2018-01-22 at 20:09 +0100, Andreas Schneider wrote:
> Am Freitag, den 19.01.2018, 12:22 +0100 schrieb Mojca Miklavec:
> > On 19 January 2018 at 11:40, Henri Menke wrote:
> > >
> > > Dear list,
> > >
> > > I'd like to support Linux platforms which use musl (https://www.mus
> > > l-libc.org/) instead of glibc, like for instance Alpine Linux.
> > >
> > > How would I go about this? Can you share existing build scripts
> > > for, e.g. Linux-64? Do I have to provide build infrastructure?
> > Can you please raise that question on the TeX Live mailing list?
> > If TL team is not willing to support it, we can still do it
> > ourselves,
> > but let's first see if there's an "official" way to support it, also
> > with respect to naming.
> You can link musl statically which makes these binaries run basically
> everywhere, so it's actually a win for everybody.
You cannot link musl statically if you use the dynamic linker (dlopen) which is needed for the FFI
in LuaTeX and LuaJITTeX. Just search online for "musl dlopen", e.g. with Google
> The only downsides of musl against libc that I am aware of are some
> restrictions in DNS lookups (it doesn't use NSS) and that it may not
> link easily against C++ ... but that should be a one-time-fix at source
> code level and full fledged DNS support shouldn't matter for TeX
> Anyway: IMHO it's worth it and I'm also all for it since I prefer
> Alpine as well :D
> (I compile my projects using Alpine as well and statically link it
> against musl to have binaries that run on all possible linux
> distributions independant of their underlying libc.)
> Best regards
> If your question is of interest to others as well, please add an entry to the Wiki!
> maillist : ntg-context at ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : http://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
More information about the ntg-context