From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14209 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Adapting binaries easily to musl, or database with binaries (musl) Date: Fri, 7 Jun 2019 11:22:46 -0400 Message-ID: <20190607152246.GU1506@brightrain.aerifal.cx> References: Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="227461"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.5.21 (2010-09-15) Cc: musl@lists.openwall.com To: Brian Peregrine Original-X-From: musl-return-14225-gllmg-musl=m.gmane.org@lists.openwall.com Fri Jun 07 17:23:03 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1hZGhr-000x4V-6j for gllmg-musl@m.gmane.org; Fri, 07 Jun 2019 17:23:03 +0200 Original-Received: (qmail 9254 invoked by uid 550); 7 Jun 2019 15:23:00 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 9232 invoked from network); 7 Jun 2019 15:23:00 -0000 Content-Disposition: inline In-Reply-To: Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:14209 Archived-At: On Fri, Jun 07, 2019 at 01:53:50PM +0000, Brian Peregrine wrote: > I'm looking for an easy way on how people can either: > * adapt their downloaded binaries to be able to run on musl > * or simply download prepared musl binaries from a database > > I doubt that second option exists, as such a database would need to > cover a large amounts of programs, for various cpu classes, and be > often updated with new versions of those programs. The best way is to use binaries packaged by your distribution rather than by the software authors. This is true whether you're using a musl-based or glibc-based distribution. There's usually a better chain of trust/responsibility, and you know they're built to work with the library ecosystem you'll have rather than one that's just "sufficiently similar" (often not). With that said, there's also an *intent* that projects that want to ship binaries should be able to ship *static-linked* musl binaries that run on any system, glibc or musl or something else, possibly not even Linux, as long as it supports the Linux syscall ABI. However, this is currently difficult for graphics applications due to the current OpenGL architecture of dlopen'ing a userspace driver (linked against a particular libc/library ecosystem) into your program. Solving this problem is a major long-term goal. > I'm particularly looking for the most recent (stable, musl) version of > chromium browser and/or firefox, I'm running gentoo linux (musl), on a > 32-bit (i686) machine. Did you roll your own "distro" from scratch, or are you using one of the musl-based distros? > For firefox, glibc binaries are available from > https://www.mozilla.org/en-US/firefox/linux/ > For chromium I couldn't really find a glibc binary; > there's https://www.chromium.org/getting-involved/download-chromium > but that redirects to an unstable version > (https://download-chromium.appspot.com ) and to > http://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html > (but those are old binaries). > > Anyway, can someone describe how the binaries can be easily altered to > run on a musl distro , and tell me a download link for chromium for > the latest stable release ? > With the binaries, I want to avoid to need to compile the gentoo > package (this can be problematic as live distro's are not updated that > often). Isn't building from source kinda the point of Gentoo? I can understand not wanting to do that for everything, but that's the reason I prefer other distros. If Bedrock Linux is still around, it might make it easy to use packages from other musl-based distros like Alpine, Void, or Adelie, but I think they'd use their own library ecosystems rather than the main host one, which would be less efficient and kinda defeat the purpose. I may be wrong about that, though. There should also be ways to manually extract/integrate their packages into your Gentoo host. Rich