deb: cross-compilation, ephemeral contexts, local builds #1

Merged
vhaudiquet merged 41 commits from experimental-cross into main 2025-12-25 17:10:47 +00:00
Showing only changes of commit 239597ffca - Show all commits

View File

@@ -38,7 +38,6 @@ impl EphemeralContextGuard {
return Err(format!("mmdebstrap failed for series {}", series).into());
}
// Switch to an ephemeral context to build the package in the chroot
context::manager().set_current_ephemeral(Context::new(ContextConfig::Unshare {
path: chroot_path.to_string_lossy().to_string(),
@@ -60,7 +59,6 @@ impl Drop for EphemeralContextGuard {
log::error!("Failed to restore context {}: {}", self.previous_context, e);
}
// Remove chroot directory
// We use the restored context to execute the cleanup command
let result = context::current()