Package: newsboat Tags: bookworm, sid An increasing number of packages in Debian are using rand 0.8 upstream, while it's generally possible to patch them to use 0.7 I think we should prefer patching stuff to use newer versions over packaging stuff to use older versions where possible. So I started investigating an upgrade to rand 0.8.
Most of the packages involved are maintained by the rust team and I will upload them after I upload rand 0.8 to unstable newsboat however is maintained outside the rust team. The only changes needed to make the package build were changing the dependencies (both in the Debian packaging and in Cargo.toml). A debdiff is attatched, do you want to handle the upload after rand is updated in unstable or would you like me to NMU it? rand 0.8 and sufficient related packages to build newsboat have been uploaded to experimental if you want to test things in advance of the update in unstable.
diff -Nru newsboat-2.21/debian/changelog newsboat-2.21/debian/changelog --- newsboat-2.21/debian/changelog 2020-10-15 13:45:56.000000000 +0000 +++ newsboat-2.21/debian/changelog 2022-01-23 14:28:08.000000000 +0000 @@ -1,3 +1,10 @@ +newsboat (2.21-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Switch to rand 0.8. + + -- Peter Michael Green <plugw...@debian.org> Sun, 23 Jan 2022 14:28:08 +0000 + newsboat (2.21-1) unstable; urgency=medium * New upstream version 2.21 diff -Nru newsboat-2.21/debian/control newsboat-2.21/debian/control --- newsboat-2.21/debian/control 2020-10-15 13:39:30.000000000 +0000 +++ newsboat-2.21/debian/control 2022-01-23 14:28:04.000000000 +0000 @@ -15,7 +15,7 @@ cargo, librust-chrono-0.4-dev, librust-time-0.1-dev, - librust-rand-0.7-dev, + librust-rand-0.8-dev, librust-once-cell-1+parking-lot-dev, librust-regex-1-dev, librust-url-2-dev, diff -Nru newsboat-2.21/debian/patches/relax-deps.diff newsboat-2.21/debian/patches/relax-deps.diff --- newsboat-2.21/debian/patches/relax-deps.diff 2020-10-15 13:34:07.000000000 +0000 +++ newsboat-2.21/debian/patches/relax-deps.diff 2022-01-23 14:28:08.000000000 +0000 @@ -1,15 +1,19 @@ ---- a/rust/libnewsboat/Cargo.toml -+++ b/rust/libnewsboat/Cargo.toml -@@ -10,7 +10,7 @@ +Index: newsboat-2.21/rust/libnewsboat/Cargo.toml +=================================================================== +--- newsboat-2.21.orig/rust/libnewsboat/Cargo.toml ++++ newsboat-2.21/rust/libnewsboat/Cargo.toml +@@ -9,8 +9,8 @@ strprintf = { path="../strprintf" } + regex-rs = { path="../regex-rs" } chrono = "0.4" - rand = "0.7" +-rand = "0.7" -once_cell = "1.4.1" ++rand = "0.8" +once_cell = "1.3.1" url = "2.0.0" percent-encoding = "2.0.0" xdg = "2.2.0" -@@ -19,7 +19,7 @@ +@@ -19,7 +19,7 @@ unicode-width = "0.1.8" nom = "5" curl-sys = "0.4.5" libc = "0.2" @@ -18,7 +22,7 @@ natord = "1.0.9" lazy_static = "1.4.0" -@@ -35,13 +35,12 @@ +@@ -35,13 +35,12 @@ version = "2.33" default-features = false [dependencies.gettext-sys] @@ -34,9 +38,11 @@ -proptest = ">=0.9.6" +proptest = "0.9" section_testing = "0.0.4" ---- a/rust/regex-rs/Cargo.toml -+++ b/rust/regex-rs/Cargo.toml -@@ -12,4 +12,4 @@ +Index: newsboat-2.21/rust/regex-rs/Cargo.toml +=================================================================== +--- newsboat-2.21.orig/rust/regex-rs/Cargo.toml ++++ newsboat-2.21/rust/regex-rs/Cargo.toml +@@ -12,4 +12,4 @@ strprintf = { path="../strprintf" } bitflags = "1.2" libc = ">=0.2.69"