From mboxrd@z Thu Jan 1 00:00:00 1970 From: YOANN P Subject: Include Proot-static with binary releases Date: Wed, 17 Jan 2018 21:52:39 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_DB6P18901MB002294F4927B235F0556C0EFDBE90DB6P18901MB0022_" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebvdV-0005D2-NS for guix-devel@gnu.org; Wed, 17 Jan 2018 16:52:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebvdR-0005Vn-R5 for guix-devel@gnu.org; Wed, 17 Jan 2018 16:52:45 -0500 Received: from mail-oln040092071032.outbound.protection.outlook.com ([40.92.71.32]:33408 helo=EUR03-DB5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ebvdR-0005TD-DL for guix-devel@gnu.org; Wed, 17 Jan 2018 16:52:41 -0500 Content-Language: fr-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: "guix-devel@gnu.org" --_000_DB6P18901MB002294F4927B235F0556C0EFDBE90DB6P18901MB0022_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Guix Team, Is there any plan to include "proot-static" with Guix Binary releases ? My request is motivated by the fact i'm looking for a way to use/install Gu= ix only with the bin release on a non-privileged environnement (HPC, non ro= ot user) without the need to use guix pack on another computer to create a = "pack" only for this package for every architecture i would like to install= Guix on. This way, if namespaces are not available, we could use Guix with Proot wit= hout any more efforts. Best regards, --_000_DB6P18901MB002294F4927B235F0556C0EFDBE90DB6P18901MB0022_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi Guix Team,

Is there any plan to include "proot-static" with Guix Binary= releases ?

My request is motivated by the fact i'm looking for a way to use/insta= ll Guix only with the bin release on a non-privileged environnement (HPC, n= on root user) without the need to use guix pack on another computer to crea= te a "pack" only for this package for every architecture i would like to install Guix on.

This way, if namespaces are not available, we could use Guix with Proo= t without any more efforts.

Best regards,

--_000_DB6P18901MB002294F4927B235F0556C0EFDBE90DB6P18901MB0022_-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludovic.courtes@inria.fr (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Include Proot-static with binary releases Date: Thu, 18 Jan 2018 11:44:03 +0100 Message-ID: <87lggva1l8.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ec7g2-0007NR-QA for guix-devel@gnu.org; Thu, 18 Jan 2018 05:44:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ec7fz-0002RK-LP for guix-devel@gnu.org; Thu, 18 Jan 2018 05:44:10 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:24390) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ec7fz-0002Nz-AQ for guix-devel@gnu.org; Thu, 18 Jan 2018 05:44:07 -0500 In-Reply-To: (YOANN P.'s message of "Wed, 17 Jan 2018 21:52:39 +0000") 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: YOANN P Cc: "guix-devel@gnu.org" Hello, YOANN P skribis: > Is there any plan to include "proot-static" with Guix Binary releases ? Good question! > My request is motivated by the fact i'm looking for a way to use/install = Guix only with the bin release on a non-privileged environnement (HPC, non = root user) without the need to use guix pack on another computer to create = a "pack" only for this package for every architecture i would like to insta= ll Guix on. > > This way, if namespaces are not available, we could use Guix with Proot w= ithout any more efforts. Indeed. (I assume you read , which is about running software from a pack, rather than running Guix itself. Pjotr has a very good writeup on this topic, which includes running Guix itself under PRoot: .) Including proot-static makes a lot of sense and easily done (it adds 3=C2=A0MiB to the result.) We=E2=80=99d need to document it properly thoug= h, probably with a new section under =E2=80=9CSetting Up the Daemon=E2=80=9D. = We could mention user namespaces as another option for non-root users. Thoughts? Ricardo? Ludo=E2=80=99. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pjotr Prins Subject: Re: Include Proot-static with binary releases Date: Thu, 18 Jan 2018 15:21:53 +0100 Message-ID: <20180118142153.GA31617@thebird.nl> References: <87lggva1l8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44402) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecB84-0003RA-AR for guix-devel@gnu.org; Thu, 18 Jan 2018 09:25:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ecB80-0001bq-NL for guix-devel@gnu.org; Thu, 18 Jan 2018 09:25:20 -0500 Received: from mail.thebird.nl ([95.154.246.10]:39652) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ecB80-0001Sn-AR for guix-devel@gnu.org; Thu, 18 Jan 2018 09:25:16 -0500 Content-Disposition: inline In-Reply-To: <87lggva1l8.fsf@gnu.org> 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 On Thu, Jan 18, 2018 at 11:44:03AM +0100, Ludovic Court=C3=A8s wrote: > Including proot-static makes a lot of sense and easily done (it adds > 3=C2=A0MiB to the result.) We=E2=80=99d need to document it properly t= hough, > probably with a new section under =E2=80=9CSetting Up the Daemon=E2=80=9D= . We could > mention user namespaces as another option for non-root users. I think with 3Mb only we should do it. We also need a channels mechanism. My itch is getting so large I may actually start coding at some point ;) Pj. --=20 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Include Proot-static with binary releases Date: Sun, 21 Jan 2018 15:50:12 +0100 Message-ID: <87po631d23.fsf@elephly.net> References: <87lggva1l8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40629) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edHBs-0002UJ-P5 for guix-devel@gnu.org; Sun, 21 Jan 2018 10:05:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1edHBq-0005vM-3J for guix-devel@gnu.org; Sun, 21 Jan 2018 10:05:48 -0500 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21012) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1edHBp-0005v1-S4 for guix-devel@gnu.org; Sun, 21 Jan 2018 10:05:46 -0500 In-reply-to: <87lggva1l8.fsf@gnu.org> 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 =?utf-8?Q?Court=C3=A8s?= Cc: "guix-devel@gnu.org" , YOANN P Ludovic Court=C3=A8s writes: > Including proot-static makes a lot of sense and easily done (it adds > 3MiB to the result.) We=E2=80=99d need to document it properly though, > probably with a new section under =E2=80=9CSetting Up the Daemon=E2=80=9D= . We could > mention user namespaces as another option for non-root users. > > Thoughts? Ricardo? I think it=E2=80=99s fine to include it. I wouldn=E2=80=99t know how to do= cument its use, though. Is the idea to run the daemon under proot? --=20 Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pjotr Prins Subject: Re: Include Proot-static with binary releases Date: Sun, 21 Jan 2018 22:03:37 +0100 Message-ID: <20180121210337.GA19261@thebird.nl> References: <87lggva1l8.fsf@gnu.org> <87po631d23.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edMpW-0005xD-Nf for guix-devel@gnu.org; Sun, 21 Jan 2018 16:07:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1edMpT-0005uM-J5 for guix-devel@gnu.org; Sun, 21 Jan 2018 16:07:06 -0500 Received: from mail.thebird.nl ([95.154.246.10]:46892) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1edMpT-0005lt-C6 for guix-devel@gnu.org; Sun, 21 Jan 2018 16:07:03 -0500 Content-Disposition: inline In-Reply-To: <87po631d23.fsf@elephly.net> 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: Ricardo Wurmus Cc: "guix-devel@gnu.org" , YOANN P , Ludovic =?iso-8859-1?Q?Court=E8s?= On Sun, Jan 21, 2018 at 03:50:12PM +0100, Ricardo Wurmus wrote: >=20 > Ludovic Court=C3=A8s writes: >=20 > > Including proot-static makes a lot of sense and easily done (it adds > > 3MiB to the result.) We=E2=80=99d need to document it properly thoug= h, > > probably with a new section under =E2=80=9CSetting Up the Daemon=E2=80= =9D. We could > > mention user namespaces as another option for non-root users. > > > > Thoughts? Ricardo? >=20 > I think it=E2=80=99s fine to include it. I wouldn=E2=80=99t know how t= o document its > use, though. Is the idea to run the daemon under proot? Documented on my page guix-no-root. Pj. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: Include Proot-static with binary releases Date: Mon, 22 Jan 2018 19:45:52 +0200 Message-ID: <20180122174552.GB5175@macbook41> References: <87lggva1l8.fsf@gnu.org> <20180118142153.GA31617@thebird.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="oC1+HKm2/end4ao3" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edgAR-0008Nn-Rj for guix-devel@gnu.org; Mon, 22 Jan 2018 12:46:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1edgAN-0000m2-0B for guix-devel@gnu.org; Mon, 22 Jan 2018 12:45:59 -0500 Received: from flashner.co.il ([178.62.234.194]:39780) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edgAM-0000lS-ID for guix-devel@gnu.org; Mon, 22 Jan 2018 12:45:54 -0500 Content-Disposition: inline In-Reply-To: <20180118142153.GA31617@thebird.nl> 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: Pjotr Prins Cc: "guix-devel@gnu.org" , YOANN P , Ludovic =?utf-8?Q?Court=C3=A8s?= --oC1+HKm2/end4ao3 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 18, 2018 at 03:21:53PM +0100, Pjotr Prins wrote: > On Thu, Jan 18, 2018 at 11:44:03AM +0100, Ludovic Court=C3=A8s wrote: > > Including proot-static makes a lot of sense and easily done (it adds > > 3=C2=A0MiB to the result.) We=E2=80=99d need to document it properly t= hough, > > probably with a new section under =E2=80=9CSetting Up the Daemon=E2=80= =9D. We could > > mention user namespaces as another option for non-root users. >=20 > I think with 3Mb only we should do it. >=20 Currently proot only build successfully on x86_64 and i686, so that is something we would need to fix first. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --oC1+HKm2/end4ao3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlpmI00ACgkQQarn3Mo9 g1G1lRAAvVL3O2RZhd4XjpM3UIU7lv1XbdhQzD/5eXUR/oZlSFZX7nPE0qjNc/zq xbpn34A8OiGmhmFoCXfub69SYdrZ2m4zZ+OiyB3ivBVtn4tmgaZE38DpZZ6E8fli xRuRGczaDfzDxctyzIbp6WSIojUOcLMhslt28yjpWM8N/Jok0wlB3vlDiprqgYWQ U8whdlGbKarmB1WBKB2W0B++a1TDlF5o6shMB8mDCsGvd0QYfV8kH5yCIixbrgvH bbUxNLJUAKIciMK2eJZyjCeanoL2OulV1HqI9aREHf+i1oyMnUGBxqdzFLM+sX2M Fb+9srYkbI6THVUzVNovD5dEVOhyIc2A2aC2noHpipfDhdkPOinDZkX1AyB+ARzw 2I2SjnaR+6Dk/PVmlrGUAljbQzk8hAD+ZiztQ2XygrtB84hgQip86MNjC6le23Gl OmttrlV2QjfDEsaNI5zLvi31WNKhc2X6c0Q11MI6Jq1FBJjajzak9kZtondOU2Eq qRYs+cilmC9Hve82EVXyulHPNA3ldbgaWqb4TIx/s/MvGerd46Dw2SlKDYrwCRSK ZWxsAJCYpRWCgZ8A8xyhMB9Zzvgd3/s2JM2IUcx4ByLXjcIXUEFJ65vqP2rhnGWr sUEItJM8yuRU/87iuKW7pexjHESBxd83qXtQehBI7QUpoNW6YGg= =7nTa -----END PGP SIGNATURE----- --oC1+HKm2/end4ao3-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludovic.courtes@inria.fr (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Include Proot-static with binary releases Date: Tue, 23 Jan 2018 15:49:26 +0100 Message-ID: <87vafs4oll.fsf@inria.fr> References: <87lggva1l8.fsf@gnu.org> <20180118142153.GA31617@thebird.nl> <20180122174552.GB5175@macbook41> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edztH-0008GS-50 for guix-devel@gnu.org; Tue, 23 Jan 2018 09:49:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1edztC-0003hG-Ai for guix-devel@gnu.org; Tue, 23 Jan 2018 09:49:35 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:45433) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1edztC-0003fA-0G for guix-devel@gnu.org; Tue, 23 Jan 2018 09:49:30 -0500 In-Reply-To: <20180122174552.GB5175@macbook41> (Efraim Flashner's message of "Mon, 22 Jan 2018 19:45:52 +0200") 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: Efraim Flashner Cc: "guix-devel@gnu.org" , YOANN P Efraim Flashner skribis: > On Thu, Jan 18, 2018 at 03:21:53PM +0100, Pjotr Prins wrote: >> On Thu, Jan 18, 2018 at 11:44:03AM +0100, Ludovic Court=C3=A8s wrote: >> > Including proot-static makes a lot of sense and easily done (it adds >> > 3=C2=A0MiB to the result.) We=E2=80=99d need to document it properly = though, >> > probably with a new section under =E2=80=9CSetting Up the Daemon=E2=80= =9D. We could >> > mention user namespaces as another option for non-root users. >>=20 >> I think with 3Mb only we should do it. >>=20 > > Currently proot only build successfully on x86_64 and i686, so that is > something we would need to fix first. Indeed, that=E2=80=99s a bummer. Ludo=E2=80=99. 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/-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: Include Proot-static with binary releases Date: Mon, 25 Mar 2019 10:16:57 +0100 Message-ID: <87r2avz52u.fsf@inria.fr> References: <87lggva1l8.fsf@gnu.org> <20180118142153.GA31617@thebird.nl> <20180122174552.GB5175@macbook41> <87vafs4oll.fsf@inria.fr> <20190323175342.7a238f95@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:40038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8Lv7-0007F1-Fd for guix-devel@gnu.org; Mon, 25 Mar 2019 05:29:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h8Lj6-00058x-0w for guix-devel@gnu.org; Mon, 25 Mar 2019 05:17:05 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:43996) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h8Lj4-00055e-68 for guix-devel@gnu.org; Mon, 25 Mar 2019 05:17:02 -0400 In-Reply-To: <20190323175342.7a238f95@scratchpost.org> (Danny Milosavljevic's message of "Sat, 23 Mar 2019 17:53:42 +0100") 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: Danny Milosavljevic Cc: "guix-devel@gnu.org" , YOANN P Hi! Danny Milosavljevic skribis: > 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=20 > > Are you sure that is not just a limitation of the qemu transparent emulat= ion? Oh, I hadn=E2=80=99t thought about that. > I examined the test failures in proot-static and it's clear that qemu wil= l 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 Are you saying that /proc/self/exe is incorrect when using binfmt_misc? D=E2=80=99oh! --8<---------------cut here---------------start------------->8--- $ uname -m x86_64 $ guix environment --ad-hoc coreutils -s armhf-linux [env]$ uname -m armv7l [env]$ sleep 100 & [1] 2410 [env]$ ls -l /proc/2410/exe=20 lrwxrwxrwx 1 ludo users 0 Mar 25 09:55 /proc/2410/exe -> /gnu/store/6ar48kh= ay4zd435cvkv4bgf1jih7jimq-qemu-3.1.0/bin/qemu-arm --8<---------------cut here---------------end--------------->8--- So that could well be a problem (potentially in other packages as well; I didn=E2=80=99t expect /proc/self/exe to be =E2=80=9Cwrong=E2=80=9D.) We=E2=80=99ll have to check what happens on berlin though, because there we build on the bare metal. Thanks, Ludo=E2=80=99.