From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: Re: Include Proot-static with binary releases Date: Sat, 23 Mar 2019 17:53:42 +0100 Message-ID: <20190323175342.7a238f95@scratchpost.org> References: <87lggva1l8.fsf@gnu.org> <20180118142153.GA31617@thebird.nl> <20180122174552.GB5175@macbook41> <87vafs4oll.fsf@inria.fr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/UtKg_OOQYBPRFWr/jUHSRa/"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:58358) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7ju4-0002BE-9l for guix-devel@gnu.org; Sat, 23 Mar 2019 12:53:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h7ju3-0007WS-Ce for guix-devel@gnu.org; Sat, 23 Mar 2019 12:53:52 -0400 Received: from dd26836.kasserver.com ([85.13.145.193]:53502) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h7ju3-0007Ul-4s for guix-devel@gnu.org; Sat, 23 Mar 2019 12:53:51 -0400 In-Reply-To: <87vafs4oll.fsf@inria.fr> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?ISO-8859-1?Q?Court=E8s?= Cc: "guix-devel@gnu.org" , YOANN P --Sig_/UtKg_OOQYBPRFWr/jUHSRa/ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Tue, 23 Jan 2018 15:49:26 +0100 ludovic.courtes@inria.fr (Ludovic Court=C3=A8s) wrote: > > Currently proot only build successfully on x86_64 and i686, so that is > > something we would need to fix first. =20 Are you sure that is not just a limitation of the qemu transparent emulatio= n? I examined the test failures in proot-static and it's clear that qemu will = have some trouble finding out what one wants to happen: >#include /* execve(2), */ >#include /* exit(3), */ >#include /* strcmp(3), */ > >int main(int argc, char *argv[]) >{ > if (argc =3D=3D 0) > exit(EXIT_SUCCESS); > > execve("/proc/self/exe", NULL, NULL); > exit(EXIT_FAILURE); >} Now, qemu transparent emulation still picks up, but then the missing argv[0] will be a problem. And indeed, $ guix environment -s armhf-linux proot-static [...] [env]$ ./test-25069c12 qemu: no user program specified --Sig_/UtKg_OOQYBPRFWr/jUHSRa/ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlyWZJYACgkQ5xo1VCww uqWLuQf/Y0qGdGf8NE5fRBDze1DicPiiYwAr1gDEyejg3Sx2o1FZnHm//Pkf/HuW OecrGyUZaDQu2prSMoYWA+ArLH/kzzvjFX54Tlgi47QPMRyuDyCIg3VVyQYVqqzt LZ1UQkcYZabmKCCNRCeuq1BcQ1zsfmnGxlQQObwwTJbNXR+u6uru+y6/ny2zTf9E x1JmuXEQz/1zEB2dAEpaOLVQmgwiwdvKhhgyqiV+ughkpzjHv8WxBohRI+PKnN1n 6V/OQwX9EViOoZCXV4JtO/WV8fE+kKX8NZFeIUoKDXP/sUfsHHRRwWOXSJiQ0kPZ WSaXTmGuQRZq3H7FF0lwY4NZJ89QdQ== =7DJE -----END PGP SIGNATURE----- --Sig_/UtKg_OOQYBPRFWr/jUHSRa/--