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 10f343f92f - Show all commits

View File

@@ -149,6 +149,7 @@ pub fn setup_environment(
env: &mut HashMap<String, String>, env: &mut HashMap<String, String>,
arch: &str, arch: &str,
) -> Result<(), Box<dyn Error>> { ) -> Result<(), Box<dyn Error>> {
log::debug!("Running 'dpkg-architecture -a{}'", arch);
let dpkg_architecture = String::from_utf8( let dpkg_architecture = String::from_utf8(
context::current() context::current()
.command("dpkg-architecture") .command("dpkg-architecture")
@@ -156,6 +157,7 @@ pub fn setup_environment(
.output()? .output()?
.stdout, .stdout,
)?; )?;
log::debug!("dpkg-architecture done");
let env_var_regex = regex::Regex::new(r"(?<key>.*)=(?<value>.*)").unwrap(); let env_var_regex = regex::Regex::new(r"(?<key>.*)=(?<value>.*)").unwrap();
for l in dpkg_architecture.lines() { for l in dpkg_architecture.lines() {
let capture = env_var_regex.captures(l).unwrap(); let capture = env_var_regex.captures(l).unwrap();