From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14211 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Brian Peregrine Newsgroups: gmane.linux.lib.musl.general Subject: Re: Adapting binaries easily to musl, or database with binaries (musl) Date: Fri, 7 Jun 2019 16:02:49 +0000 Message-ID: References: <20190607152246.GU1506@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="151486"; mail-complaints-to="usenet@blaine.gmane.org" To: musl@lists.openwall.com Original-X-From: musl-return-14227-gllmg-musl=m.gmane.org@lists.openwall.com Fri Jun 07 18:03:06 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 1hZHKc-000dIm-Hs for gllmg-musl@m.gmane.org; Fri, 07 Jun 2019 18:03:06 +0200 Original-Received: (qmail 13942 invoked by uid 550); 7 Jun 2019 16:03:03 -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 13918 invoked from network); 7 Jun 2019 16:03:03 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=aG40jPlCSbnCRX+3KweFkCUE7WtnzFon9/LodWljKiM=; b=oiPRjMT2EURuh+vZCeJGkzUIRYz3c5ziO3B1olUSeMOzWT1EXDqitjjsxbFuq4Tv6d 7ZCEHFRtL18UCFcJPbU0ZNNGmdcIAkD2Z7hbjjSYvRbYsw74tgzxZEWCpv58Qo3V4MyZ KPvlpH3LBUY6Z5hHRCkvKx1cHSndsCHqoPIY9KaKJNiXrh/hrdBAaXO7Prv5dMcosN6U URdaEKI28T8EWad9wshyfCBpkzo7QnxYjTlUx73dA3th+c5osxke+LfepY5N1HhuOad4 id/echbPJP9dtJnNONwDGSgNR5nGvOuRdN+sVYcr/L7e+wBFx3aIBpo17kt8hF1FU5XO 1aPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=aG40jPlCSbnCRX+3KweFkCUE7WtnzFon9/LodWljKiM=; b=soTipcMwR1K46+0X4bx4B8tkER1kwM7b52knRglpDuTui0EVgpJQeiUKo/36XjOshq ZLa2Uzujq4Jg1wOjnBkkGylrh0PAOSfn/l9zw0f0HREDnd0ww07SsO133c3O3Jl37Cam 6je8GWEqmkZbYfb4zmpBGuQTIHUUn2vXVR3nW0IHDOJ5BW+imCDAMDMtDaSDN4yddoIS EeTgDEWPPT8stx9xBn+H6i49jPetXnO9kzSdplqLTUHteuIXniQBcPhqeg9nvn973VP0 Vvb7yNYHgmyxz+gd0JQkq5GLwlMLoP9nZ6vFMhXUxAkMiyXOFOuNxEw7+S7ZFWAvOfWL iwVw== X-Gm-Message-State: APjAAAXyHUMq43XiB3ajoH/4Bwvw9TAog/TaOjJgHh59L0O0UzyMHb8e LTa8jY617n3CbYrCUpbFV+joyaHtgrV916ZUCEKj9UYr X-Google-Smtp-Source: APXvYqwri5GJBv0XxfF0r8Nm9b8N5XxzD1ZIzmYHypVBjjIXRyM2hkJ42bwXZfCg59/jRu6/TPO4cIxVbN8sSf2gyoo= X-Received: by 2002:a67:d089:: with SMTP id s9mr8101959vsi.226.1559923370242; Fri, 07 Jun 2019 09:02:50 -0700 (PDT) In-Reply-To: <20190607152246.GU1506@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:14211 Archived-At: Hey Rich, Replied in-line: Did you roll your own "distro" from scratch, or are you using one of the musl-based distros? We rolled our own (and by "we", I mean VCT Labs did). The distro is called "TAZ" and we'll release the first beta within the next months (we're currently still in alpha-stage, no official release yet). For the (glibc) binaries: yes using binaries posted on the website of the distribution (in our case, Gentoo) is best, but as far as I know, Gentoo doesn't release binaries, only ebuilds. It refers to binhosts for binaries but there is no list of those, and even if there was, I wouldn't trust them. For firefox, not a problem as there are binaries from the official website, for chromium it does seem to be a bit of an issue (but I might be wrong here). Most Gentoo users indeed prefer building from source, but we are compiling it for specific machines (e.g. i686) so we are taking advantage of the compilation-features gentoo has to offer. I looked at Bedrock Linux, Alpine, Void, Adelie, ... but I don't see them having binaries downloads either. Only package downloads are avilable at Alpine and Void (see https://pkgs.alpinelinux.org/packages , https://voidlinux.org/packages/?arch=x86_64&q=firefox ), Adelie and Bedrock don't offer any downloads from the website at all. Let me know how the glibc binaries can be directly edited (i.e. using an IDE editor as Geany) to work on musl, and if someone finds the download URL for the latest stable chromium binary, that would also be very welcome. On 6/7/19, Rich Felker wrote: > 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 >