bug#62253: Fakechroot execution engine doesn’t outlive ‘exec’ calls

2023-04-18 Thread Ludovic Courtès
Ludovic Courtès skribis: > In this case, adding ‘coreutils’ to the profile (on the ‘guix pack’ > command line) would give us wrapped binaries, and the problem is solved. > But in other cases, it’s not that simple. For instance, libmpi.so from > Open MPI tries to exec one its programs, using its

bug#62253: Fakechroot execution engine doesn’t outlive ‘exec’ calls

2023-03-20 Thread Ludovic Courtès
Hi, Josselin Poiret skribis: > I would like to be proven wrong, but I don't think anyone has run into > this, and there are other possible engines (that do require more > privileges, sure). It seems quite non-trivial to fix, so this can > probably go on the back-burner until someone actually

bug#62253: Fakechroot execution engine doesn’t outlive ‘exec’ calls

2023-03-18 Thread Josselin Poiret via Bug reports for GNU Guix
Hi Ludo, Ludovic Courtès writes: > I can think of several ways to address that: > > 1. Change the exec* wrappers in libfakechroot such that, on ENOENT, > they try a direct ld.so invocation to run program, like > ‘run-in-namespace.c’ does. > > Problem is that for this to work

bug#62253: Fakechroot execution engine doesn’t outlive ‘exec’ calls

2023-03-18 Thread Ludovic Courtès
For ‘guix pack -RR’ packs, unlike the “userns” and “proot” execution engines, the “fakechroot” execution engine doesn’t survive ‘exec’ calls: --8<---cut here---start->8--- $ mkdir -p /tmp/fakechroot-test && cd /tmp/fakechroot-test/ && tar xf $(guix pack -RR