Ludovic Courtès c6c0d5a22c
pack: "fakechroot" execution engine can load its audit module.
Fixes <https://bugs.gnu.org/42558>.

Until now, loading 'pack-audit.so' in a truly non-Guix environment would
usually fail because 'pack-audit.so' depends on 'libgcc_s.so' and
'libc.so', none of which could be found.

Furthermore, the test was not working as expected: the trick

  unshare -mrf sh -c 'mount -t tmpfs none /gnu ; ...'

would allow the fakechroot engine to make its store available as
/gnu/store as a result of another bug.

* gnu/packages/aux-files/run-in-namespace.c (relocated_search_path): New
function.
(exec_with_loader): Pass "--library-path" to the loader.
* guix/scripts/pack.scm (wrapped-package)[build](runpath): New procedure.
(elf-loader-compile-flags): Pass "-DLOADER_AUDIT_RUNPATH".
* tests/guix-pack-relocatable.sh: Remove 'STORE_PARENT'.
(run_without_store): New function.  Erase $NIX_STORE_DIR instead of
$STORE_PARENT.
Use 'run_without_store' throughout.
2020-07-28 14:41:04 +02:00
..
2020-07-17 04:21:22 +02:00
2017-07-21 17:03:24 +02:00
2019-12-15 00:34:05 +01:00
2020-07-05 03:15:08 +05:30
2019-05-06 23:21:33 +02:00
2020-07-05 16:07:59 +05:30
2020-07-20 23:25:10 +02:00
2020-04-17 23:36:47 +02:00
2020-05-11 23:30:55 +02:00
2017-11-08 22:31:58 +01:00
2018-06-01 15:21:28 +02:00
2019-03-13 23:12:43 +01:00
2020-06-18 14:48:17 +02:00
2018-09-04 17:25:11 +02:00
2020-07-12 10:07:59 +02:00
2020-06-26 16:19:53 +02:00