Debian Patches

Status for crosvm/0.1.0~git20261117.a116b6ccd+ds-1

Patch Description Author Forwarded Bugs Origin Last update
debian-trim-workspace.patch Trim the cargo workspace to what the Debian build uses
Cargo resolves the lockfile over every workspace member and every optional
and target-specific dependency, whatever features are selected. crosvm's
workspace reaches Windows, Android, GPU, fuzzing and tooling crates that are
not in Debian and are not needed for the Linux/KVM build with
--no-default-features --features qcow,balloon,net,usb,audio.

This removes those dependency edges (and the feature entries naming them)
and the workspace members that nothing in that build depends on.
Generated by debian/trim-workspace.py; see debian/README.source.

diff --git a/Cargo.toml b/Cargo.toml
index 0c0fb0b..aa14a49 100644
Yunseong Kim <ysk@kzalloc.com> not-needed 2026-11-17
debian-relax-dependencies.patch Use the crate versions packaged in Debian
- libc 0.2.188 -> 0.2.186: the only newer symbol crosvm uses,
RWF_DONTCACHE, is already in 0.2.186.
- rand 0.9 -> 0.10, lz4_flex 0.11 -> 0.13, indexmap 1 -> 2, which 4 -> 8:
no source changes needed.
- env_filter 1 -> 2: 2.0 only adds no_std support behind a new default
"std" feature, which Builder::parse needs, so enable it.

diff --git a/Cargo.toml b/Cargo.toml
index aa14a49..3707a8e 100644
Yunseong Kim <ysk@kzalloc.com> not-needed 2026-11-10
debian-use-system-minijail.patch Use the minijail crate from the system registry
Upstream points the minijail crate at the third_party/minijail git
submodule, the way the ChromeOS ebuild supplies it out of band. In Debian
it comes from librust-minijail-dev (src:minijail), so drop the
[patch.crates-io] override and let cargo take it from the registry.

diff --git a/Cargo.toml b/Cargo.toml
index 3707a8e..cd9567b 100644
Yunseong Kim <ysk@kzalloc.com> not-needed 2026-10-20
reproducible-seccomp-policy-order.patch Sort seccomp policy directory entries for reproducible builds
jail/build.rs compiles every policy in the seccomp directory and emits a
HashMap literal of them into the generated source, in fs::read_dir order.
That order depends on the filesystem, so the generated code, and with it
the binary, differ between builds. Sort the entries by file name first.

diff --git a/jail/build.rs b/jail/build.rs
index b87080804..10e2b1f3b 100644
Ying-Chun Liu (PaulLiu) <paulliu@debian.org> no debian 2026-11-17

All known versions for source package 'crosvm'

Links