From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:36563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4pLb-0002kD-3x for guix-patches@gnu.org; Fri, 15 Mar 2019 12:06:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h4pLT-00039V-Jq for guix-patches@gnu.org; Fri, 15 Mar 2019 12:06:11 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60093) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h4pLO-00034s-C6 for guix-patches@gnu.org; Fri, 15 Mar 2019 12:06:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h4pLO-0007Ch-5p for guix-patches@gnu.org; Fri, 15 Mar 2019 12:06:02 -0400 Subject: [bug#34859] [PATCH] pack: "-RR" produces PRoot-enabled relocatable binaries. Resent-Message-ID: References: <20190314161026.15696-1-ludo@gnu.org> From: Ricardo Wurmus In-reply-to: <20190314161026.15696-1-ludo@gnu.org> Date: Fri, 15 Mar 2019 17:04:51 +0100 Message-ID: <87wol015uk.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 34859@debbugs.gnu.org Ludovic Court=C3=A8s writes: > * gnu/packages/aux-files/run-in-namespace.c (exec_with_proot): New > function. > (main): When 'clone' fails, call 'rm_rf'. > [PROOT_PROGRAM]: When 'clone' fails, call 'exec_with_proot'. > * guix/scripts/pack.scm (wrapped-package): Add #:proot?. > [proot]: New procedure. > [build]: Compile with -DPROOT_PROGRAM when PROOT? is true. > * guix/scripts/pack.scm (%options): Set the 'relocatable?' value to > 'proot when "-R" is passed several times. > (guix-pack): Pass #:proot? to 'wrapped-package'. > * tests/guix-pack-relocatable.sh: Use "-RR" on Intel systems that lack > user namespace support. > * doc/guix.texi (Invoking guix pack): Document -RR. This is great! So, the only downside to using =E2=80=9C-RR=E2=80=9D is that it=E2=80=99s 1= MB heavier than =E2=80=9C-R=E2=80=9D due to the included proot-static? Neat! -- Ricardo