Package: rust-ruma-common Version: 0.14.1+ds-8 We are in the process of preparing an update to the rust random stack, due to the number of packages involved, we plan to handle this in multiple phases.
In the first phase we plan to update getrandom, rand-core, rand-chacha and rand, while introducing semver-suffix packages for rand-core-0.6 rand-chacha-0.2 and rand-0.8. We do not plan to introduce a semver-suffix package for getrandom. ruma-common will need to be patched to use the new version of getrandom, but stay on rand-0.8 for now, since it uses rand-related functionality in ed25519-dalek . The Debian (build-)dependencies also need to be ajusted to ensure the correct versions of getrandom and rand are used.
diff -Nru rust-ruma-common-0.14.1+ds/debian/changelog rust-ruma-common-0.14.1+ds/debian/changelog --- rust-ruma-common-0.14.1+ds/debian/changelog 2026-02-26 15:44:14.000000000 +0000 +++ rust-ruma-common-0.14.1+ds/debian/changelog 2026-03-07 11:05:52.000000000 +0000 @@ -1,3 +1,12 @@ +rust-ruma-common (0.14.1+ds-8.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Add patch to support getrandom 0.4 + * Tighten (build-)dependencies to explicitly specify getrandom + 0.4 and rand 0.8. + + -- Peter Michael Green <[email protected]> Sat, 07 Mar 2026 11:05:52 +0000 + rust-ruma-common (0.14.1+ds-8) unstable; urgency=medium * update copyright info: diff -Nru rust-ruma-common-0.14.1+ds/debian/control rust-ruma-common-0.14.1+ds/debian/control --- rust-ruma-common-0.14.1+ds/debian/control 2026-02-15 20:35:07.000000000 +0000 +++ rust-ruma-common-0.14.1+ds/debian/control 2026-03-07 11:05:52.000000000 +0000 @@ -11,7 +11,7 @@ librust-cfg-if-dev, librust-ed25519-dalek-dev, librust-form-urlencoded-dev, - librust-getrandom-dev, + librust-getrandom-0.4-dev, librust-headers-dev, librust-html5ever-dev, librust-http-auth-dev, @@ -34,7 +34,7 @@ librust-proc-macro2-dev, librust-pulldown-cmark-dev, librust-quote-dev, - librust-rand-dev, + librust-rand-0.8-dev, librust-regex-dev, librust-serde-dev, librust-serde-html-form-dev, @@ -72,7 +72,7 @@ librust-cfg-if-dev, librust-ed25519-dalek-dev, librust-form-urlencoded-dev, - librust-getrandom-dev, + librust-getrandom-0.4-dev, librust-headers-dev, librust-html5ever-dev, librust-http-auth-dev, @@ -93,7 +93,7 @@ librust-proc-macro2-dev, librust-pulldown-cmark-dev, librust-quote-dev, - librust-rand-dev, + librust-rand-0.8-dev, librust-regex-dev, librust-serde-dev, librust-serde-html-form-dev, diff -Nru rust-ruma-common-0.14.1+ds/debian/patches/2003_getrandom.patch rust-ruma-common-0.14.1+ds/debian/patches/2003_getrandom.patch --- rust-ruma-common-0.14.1+ds/debian/patches/2003_getrandom.patch 1970-01-01 00:00:00.000000000 +0000 +++ rust-ruma-common-0.14.1+ds/debian/patches/2003_getrandom.patch 2026-03-07 11:05:52.000000000 +0000 @@ -0,0 +1,30 @@ +Description: use getrandom 0.4. +Author: Peter Michael Green <[email protected]> +Forwarded: no +Last-Update: 2026-03-07 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ + + +Index: rust-ruma-common-0.14.1+ds/crates/ruma-common/Cargo.toml +=================================================================== +--- rust-ruma-common-0.14.1+ds.orig/crates/ruma-common/Cargo.toml ++++ rust-ruma-common-0.14.1+ds/crates/ruma-common/Cargo.toml +@@ -22,7 +22,7 @@ server = [] + + api = ["dep:http", "dep:konst"] + canonical-json = [] +-js = ["dep:js-sys", "getrandom?/js", "uuid?/js"] ++js = ["dep:js-sys", "getrandom?/wasm_js", "uuid?/js"] + rand = ["dep:rand", "dep:getrandom", "dep:uuid"] + + unstable-msc2666 = [] +@@ -61,7 +61,7 @@ as_variant = { workspace = true } + base64 = { workspace = true } + bytes = { workspace = true } + form_urlencoded = "1.0.0" +-getrandom = { version = "0.2.6", optional = true } ++getrandom = { version = "0.4", optional = true } + http = { workspace = true, optional = true } + indexmap = { version = "2.0.0", features = ["serde"] } + js_int = { workspace = true, features = ["serde"] } diff -Nru rust-ruma-common-0.14.1+ds/debian/patches/series rust-ruma-common-0.14.1+ds/debian/patches/series --- rust-ruma-common-0.14.1+ds/debian/patches/series 2026-02-15 20:34:04.000000000 +0000 +++ rust-ruma-common-0.14.1+ds/debian/patches/series 2026-03-07 11:05:52.000000000 +0000 @@ -3,3 +3,4 @@ 2002_limit_workspace.patch 2002_no_bench.patch 2002_no_broken_test.patch +2003_getrandom.patch

