mailing list of musl libc
 help / color / mirror / code / Atom feed
* Tor Browser Bundle on musl libc systems
@ 2016-04-25 16:24 Daniel Simon
  2016-04-25 23:35 ` Rich Felker
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Simon @ 2016-04-25 16:24 UTC (permalink / raw)
  To: tor-dev, musl

Hi,

the Tor Browser Bundle binaries available at
https://dist.torproject.org/torbrowser/5.5.4/ do not run on
musl-libc-based systems, like Void Linux, Alpine Linux, and other
Linux distributions.
I believe that's the case because the Tor Browser Bundle binaries are
compiled dynamically to glibc, making them fail when ran on systems
that any other libc.
I'm sending this message to the Tor mailing list and to the Musl
mailing list, so we can together find a solution.

I think there are 4 possible solutions:
- the tor developers can provide binaries built with musl libc
- the tor developers can provided statically compiled binaries (with
any libc, but musl is especially good for this). These statically
compiled binaries would run on any system independently of the libc.
- the musl libc developers could identify why the binaries fail on
musl and try to add compatibility
- Linux distributions that use musl libc could figure out how to
compile the Tor Browser Bundle from source and provide binaries
themselves

What does everyone think about these possible solutions? Which one is
the best? Are there any others you can think about?

Thanks for everyone's time,
D. Simon


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Tor Browser Bundle on musl libc systems
  2016-04-25 16:24 Tor Browser Bundle on musl libc systems Daniel Simon
@ 2016-04-25 23:35 ` Rich Felker
  0 siblings, 0 replies; 2+ messages in thread
From: Rich Felker @ 2016-04-25 23:35 UTC (permalink / raw)
  To: Daniel Simon; +Cc: tor-dev, musl

On Mon, Apr 25, 2016 at 01:24:22PM -0300, Daniel Simon wrote:
> Hi,
> 
> the Tor Browser Bundle binaries available at
> https://dist.torproject.org/torbrowser/5.5.4/ do not run on
> musl-libc-based systems, like Void Linux, Alpine Linux, and other
> Linux distributions.
> I believe that's the case because the Tor Browser Bundle binaries are
> compiled dynamically to glibc, making them fail when ran on systems
> that any other libc.
> I'm sending this message to the Tor mailing list and to the Musl
> mailing list, so we can together find a solution.
> 
> I think there are 4 possible solutions:
> - the tor developers can provide binaries built with musl libc
> - the tor developers can provided statically compiled binaries (with
> any libc, but musl is especially good for this). These statically
> compiled binaries would run on any system independently of the libc.
> - the musl libc developers could identify why the binaries fail on
> musl and try to add compatibility
> - Linux distributions that use musl libc could figure out how to
> compile the Tor Browser Bundle from source and provide binaries
> themselves
> 
> What does everyone think about these possible solutions? Which one is
> the best? Are there any others you can think about?

Running entire giant programs that were dynamically linked against
glibc on musl is usually beyond the capability of the limited
binary-compat, and not something we would want to try to guarantee
works; the binary-compat is mainly intended for isolated binary blobs
like flash player (eew) and some simple proprietary programs.

IMO static linking with musl would be a great fit for Tor Browser,
reducing risks of information about the host system's library
ecosystem leaking out onto the network and possibly even making the
same binaries usable on BSDs with a Linux-compat syscall layer.
I thought getting it to build on musl might take significant initial
work, but Daniel seems to have already had good luck with that.

If the Tor project is interested in this and needs any assistance from
the musl side, just let us know.

Rich


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-04-25 23:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-25 16:24 Tor Browser Bundle on musl libc systems Daniel Simon
2016-04-25 23:35 ` Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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).