1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-05-22 00:55:56 +02:00
Files
guix/nix/libstore
Ludovic Courtès 9556ac498f daemon: Try to execute derivation builders only for matching OS kernels.
Fixes <https://bugs.gnu.org/43668>.

Previously, guix-daemon would try to run GNU/Hurd executables on
GNU/Linux.  execve(2) would succeed, but the executable would
immediately crash.

This change prevents it from attempting to execute "i586-gnu" code on
"*-linux", while preserving the binfmt_misc-friendly behavior
implemented in commit 7bf2a70a4f.

* nix/libstore/build.cc (sameOperatingSystemKernel): New function.
(DerivationGoal::runChild): Call 'execve' only when
'sameOperatingSystemKernel' returns true.
2020-10-01 12:45:38 +02:00
..
2020-06-24 19:55:22 +01:00
2015-07-03 00:30:55 +02:00
2015-07-03 00:30:55 +02:00
2019-09-08 11:49:24 +02:00
2019-09-08 11:49:24 +02:00
2018-03-30 23:42:07 +02:00
2018-03-30 23:42:07 +02:00
2014-12-19 22:47:37 +01:00