[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#34859] [PATCH] pack: "-RR" produces PRoot-enabled relocatable binar
From: |
Ricardo Wurmus |
Subject: |
[bug#34859] [PATCH] pack: "-RR" produces PRoot-enabled relocatable binaries. |
Date: |
Fri, 15 Mar 2019 17:04:51 +0100 |
User-agent: |
mu4e 1.0; emacs 26.1 |
Ludovic Courtès <address@hidden> 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 “-RR” is that it’s 1MB heavier than “-R”
due to the included proot-static? Neat!
--
Ricardo