pack: Wrapper honors 'GUIX_EXECUTION_ENGINE' environment variable.
authorLudovic Courtès <ludo@gnu.org>
Mon, 11 May 2020 14:32:24 +0000 (16:32 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 14 May 2020 15:21:27 +0000 (17:21 +0200)
commitfde2aec3f498d5ec6db2121d72068e2b203e86cd
treed0d3c9b723c3e694ca107cff9315075e8267ebf4
parent80963744a242257921917df5a901dc343d3a93db
pack: Wrapper honors 'GUIX_EXECUTION_ENGINE' environment variable.

* gnu/packages/aux-files/run-in-namespace.c (struct engine): New type.
(exec_default): New function.
(engines): New variable.
(execution_engine): New function.
(main): Use it instead of calling 'exec_in_user_namespace' and
'exec_with_proot' directly.
* tests/guix-pack-relocatable.sh: Add test with 'GUIX_EXECUTION_ENGINE'.
* doc/guix.texi (Invoking guix pack): Document 'GUIX_EXECUTION_ENGINE'.
doc/guix.texi
gnu/packages/aux-files/run-in-namespace.c
tests/guix-pack-relocatable.sh