From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14218 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "A. Wilcox" Newsgroups: gmane.linux.lib.musl.general Subject: Re: Re: Adapting binaries easily to musl, or database with binaries (musl) Date: Sun, 9 Jun 2019 10:01:12 -0500 Organization: =?UTF-8?Q?Ad=c3=a9lie_Linux?= Message-ID: <558d41bf-5d1a-aacd-9185-d15fefdf1d85@adelielinux.org> References: <20190608105133.GX16415@port70.net> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="bvqBL9Js0V6P0y52lwpDnNiJB7qXteHSd" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="58437"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux ppc64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 To: musl@lists.openwall.com Original-X-From: musl-return-14234-gllmg-musl=m.gmane.org@lists.openwall.com Sun Jun 09 17:01:35 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 1hZzKA-000F71-JF for gllmg-musl@m.gmane.org; Sun, 09 Jun 2019 17:01:34 +0200 Original-Received: (qmail 32352 invoked by uid 550); 9 Jun 2019 15:01:31 -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 32328 invoked from network); 9 Jun 2019 15:01:31 -0000 Openpgp: preference=signencrypt In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:14218 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --bvqBL9Js0V6P0y52lwpDnNiJB7qXteHSd Content-Type: multipart/mixed; boundary="utnBmEdfnP5rArZACNEdPeX3y3PUIlWYO"; protected-headers="v1" From: "A. Wilcox" To: musl@lists.openwall.com Message-ID: <558d41bf-5d1a-aacd-9185-d15fefdf1d85@adelielinux.org> Subject: Re: [musl] Re: Adapting binaries easily to musl, or database with binaries (musl) References: <20190608105133.GX16415@port70.net> In-Reply-To: --utnBmEdfnP5rArZACNEdPeX3y3PUIlWYO Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 06/09/19 09:10, Brian Peregrine wrote: > I've been trying to get firefox musl (from > https://distfiles.adelielinux.org/adelie/1.0-beta3/user/pmmx/ ) > started (haven't gotten much further then a XPCOMGlueLoad error so > far). Regardless of this, I did notice that the firefox version is > 52.9.0-r4 whereas we're currently at version 67, so not sure whether > that's recent enough for github. It's still recent enough for GitHub so far. We won't be bumping to 60 due to CPU incompatibilities ( https://bugzilla.mozilla.org/1499121 ). We hope to have 68 available soon after it is released. > I'm also thinking whether this is really the best approach or not. >=20 > One alternative could be to just download the ebuild from portage, and > then compile it for musl i686 to a usb stick (main reason for putting > the files to a usb stick is that TAZ is a livecd so you can only store > files for a limited duration -any files not stored on removable media > are erased at reboot). After saving the files to the usb stick, the > user would start the program from the usb stick (so not copying the > files manually to the system; reason is that it's easier to not copy > the files every time and the system itself is read-only, no copying to > the system is permitted) >=20 > I don't know however whether > * ebuilds from portage can be compiled under musl at all Ad=C3=A9lie started life four years ago as a Gentoo fork with binpkgs. T= here are a few overlays: https://gitweb.gentoo.org/proj/musl.git/ https://github.com/smaeul/portage-overlay/ The second one actually has a pretty good Chromium patchset, much higher quality than the others I've seen. (I still wouldn't advise running Chromium on low-end hardware, or anywhere that security or privacy matter, but at least it won't wreck itself over musl with these patches.)= > * whether the files saved this way can actually be started from usb > stick (I doubt the files thus obtained by this method qualify as a > "binary") As long as the compilation flags are generic enough, it is exactly how binaries are generated in any other project. > * whether compiling programs using portage is leaner (less cpu/ram > intensive) then compiling the programs from (github) source (assuming > there is a difference at all). This is important as since it's a live > cd, it is already ram-intensive and we also focus on low-spec machines > (starting from i686) There isn't a large difference, but using the musl overlays and the Gentoo tree, you at least have a semi-decent chance of building without any errors, as you will have the patches already put in. Do note that Firefox requires at least 4 GB RAM with "lots of swap", and at least 6 GB disk space: https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_In= structions/Linux_Prerequisites Now that it uses Rust (since version 58, IIRC), if you are on a source distribution like Gentoo you will have to build Rust as well. Rust is very hard to build on musl (you *need* to use the overlays above), and needs a lot of time and RAM/CPU. For a specific example, the Ad=C3=A9lie= builder for x86 is a 12-core Xeon system with 24 GB RAM. It takes about three hours to build Rust. > Another possible way is to use anbox on gentoo and run the android > versions of the programs (which can be found easily at the app store) > directly (so not through installation with APK Tools). I don't know > however whether this would run at all under gentoo musl and it's > probably also overkill (as anbox, adb, ... need to be installed and > the android programs might also not be stable even if they do run) In addition to those issues, Firefox for Android takes a lot more RAM than desktop Firefox (which is already a large amount; it barely runs in 512 MB here). I wouldn't recommend that, though if you wanted to try porting anbox to musl, I'm sure that'd be appreciated by the community. --=20 A. Wilcox (awilfox) Project Lead, Ad=C3=A9lie Linux https://www.adelielinux.org --utnBmEdfnP5rArZACNEdPeX3y3PUIlWYO-- --bvqBL9Js0V6P0y52lwpDnNiJB7qXteHSd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEjNyWOYPU1SaTSMHHyynLUZIrnRQFAlz9HzsACgkQyynLUZIr nRTqJBAAoOb02EqbGcAofsvDdtK3hJydUBCwuzmXdDQPTfUHi5bxlKy9tBg13xv6 xbAB/Y2KLQ6kjKfMsHuHTbKkr209nNwqapANkpkhHBLrR1fyMYZl6l0TZUut4+9A DH620Zo1VEJ+rNmdGCh3GhvvXokh7iqAhTxdPYud/jajTUo4PIGgXthNwJS+HAOk CCJICyZDAoayNsHNqcHptZESKv+IKx4Hd/f3i+QNWNbegubRpd4sbdTacVboWq+O 53YEs4Tq5/tZzrKSEMZgTX9vAgIilPkkY+U+vZgPIWWJjKaEGgZsDqaMD8HumKO6 LmC0a44fUmShq/2rQ7u4/o5O/S0NsmTSJhJwgEwCUTYgB/gGLHHY29lr91T4xSEx 7iVnR1Nyg8Ug7Q8muR+nPYAQHhKT1+fp01u98zqx6FtTn4gMmMKvf3q9bRJOKd9M aYsCki4FWS/DhtLp6C2GZOsctAaYQ91YvEi8N9sfO+W6VANJqdwq8CDTCAvUnaeg xCxU1rC7LeaXGWQ4m611a0cbiuGNQd/LkTFtH5GtImTX2MO3yD6ygfk/Ta9zITEm Jol2+tBR9DetesKnDMdyj/bn2ID7DNY0aQs+R8MClEviF/VaKn8HgpEaFZIC/+KD q2yNGvhoIBNNSMBqAK1jsSLmgXD+SppXuryTW9jnCbJ2IPwKp+Y= =qD7g -----END PGP SIGNATURE----- --bvqBL9Js0V6P0y52lwpDnNiJB7qXteHSd--