Capturing stdout/stderr for the derivations that ask
Dependencies
- [2]
BQ4E3XLAForwarding stdout/stderr - [3]
VWVW5VOICopying the sources in /src instead of / - [4]
BDEVQIAUHandle cyclic Ubuntu dependencies - [5]
ODUDDQRYAdding the OCaml interface - [6]
HX4TXY2DFixed-output derivations enable the network
Change contents
- replacement in src/container.rs at line 36
/// Success, with the result path.Ok(PathBuf),/// Success, with the potential result path.Ok(Option<PathBuf>), - replacement in src/container.rs at line 228
) -> Result<PathBuf, Error> {) -> Result<Option<PathBuf>, Error> { - replacement in src/container.rs at line 257
return Ok(store.join(&format!(return Ok(Some(store.join(&format!( - replacement in src/container.rs at line 261
)));)))); - replacement in src/container.rs at line 327
std::fs::remove_dir(&entry?.path()).unwrap_or(());if let Ok(entry) = entry {std::fs::remove_dir(&entry.path()).unwrap_or(());} - replacement in src/container.rs at line 338
return Err(Error::NoDestDir);return Ok(None); - replacement in src/container.rs at line 364
Ok(out)Ok(Some(out)) - replacement in src/container.rs at line 577
debug!("execve {:?}", c);let this_stdout = std::io::stdout().as_raw_fd();let this_stderr = std::io::stderr().as_raw_fd(); - replacement in src/container.rs at line 581
libc::dup2(stdout, 1);if libc::dup2(stdout, this_stdout) < 0 {return Err(std::io::Error::last_os_error().into());}if libc::dup2(stderr, this_stderr) < 0 {return Err(std::io::Error::last_os_error().into());}// libc::dup2(stdout, 1); - edit in src/container.rs at line 589
}unsafe { - replacement in src/container.rs at line 609
libc::chroot(c.as_ptr());if libc::chroot(c.as_ptr()) != 0 {return Err(std::io::Error::last_os_error().into());}