Closed probonopd closed 2 years ago
Tradeoff: Using musl libc may result in us being unable to use mDNS/Zeroconf.
So possibly we may not want to use it for appimaged
.
mDNS and alternate hostname database backends The inability to use mDNS (a multicast-DNS-based zero config system) with musl has been raised as an issue by users in the past. On glibc, using mDNS is accomplished with NSS; obviously musl does not have (or want) NSS.
In principle, however, musl is fully extensible to use alternate hostname database backends in place of normal DNS. All that’s needed is a daemon that runs on localhost, speaks DNS, and translates the requests to whatever backend is needed. However it’s unclear whether there are any existing tools of this form. Developing one, adapting an existing DNS proxy program, or documenting how to setup an existing program that’s already capable could be a nice future project.
Continued in https://github.com/probonopd/go-appimage/pull/207
Statically compile Go programs, even with cgo, using musl libc, like this:
Credits: https://honnef.co/posts/2015/06/statically_compiled_go_programs__always__even_with_cgo__using_musl/
We can probably get around compiling musl libc by using an Alpine Linux container rather than an Ubuntu one in the first place.