Codebase list rust-libslirp / 3327aaa
time - drop rand 0.7 patch. Peter Michael Green 2 years ago
5 changed file(s) with 12 addition(s) and 93 deletion(s). Raw diff Collapse all Expand all
0 rust-time (0.3.5-3) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
1
2 * Team upload.
3 * Package time 0.3.5 from crates.io using debcargo 2.5.0
4 * Drop rand 0.7 patch.
5
6 -- Peter Michael Green <plugwash@debian.org> Sat, 29 Jan 2022 19:39:07 +0000
7
08 rust-time (0.3.5-2) unstable; urgency=medium
19
210 * Team upload.
33 Source: https://github.com/rust-lang/time
44
55 Files: *
6 Copyright: 2012-2019 The Rust Project Developers
6 Copyright: 2012-2021 The Rust Project Developers
77 License: MIT or Apache-2.0
88
99 Files: debian/*
1010 Copyright:
11 2018-2019 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
11 2018-2021 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
1212 2018-2019 Wolfgang Silbermayr <wolfgang@silbermayr.at>
1313 License: MIT or Apache-2.0
1414
3131
3232 Files: debian/*
3333 Copyright:
34 2018-2021 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
35 2018-2021 Wolfgang Silbermayr <wolfgang@silbermayr.at>
34 2018-2022 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
35 2018-2022 Wolfgang Silbermayr <wolfgang@silbermayr.at>
3636 License: MIT or Apache-2.0
3737
3838 License: Apache-2.0
+0
-88
src/time/debian/patches/rand-0.7.patch less more
0 Patch for rand 0.7 based on a partial revert of upstream commit
1 f54a37cf2a9e109c280688276de672cf1c7d5591
2
3 Index: time/Cargo.toml
4 ===================================================================
5 --- time.orig/Cargo.toml
6 +++ time/Cargo.toml
7 @@ -42,7 +42,7 @@ version = "0.4.7"
8 optional = true
9
10 [dependencies.rand]
11 -version = "0.8.4"
12 +version = "0.7.3"
13 optional = true
14 default-features = false
15
16 @@ -52,7 +52,7 @@ optional = true
17 default-features = false
18
19 [dev-dependencies.rand]
20 -version = "0.8.4"
21 +version = "0.7.3"
22 default-features = false
23
24 [dev-dependencies.serde]
25 Index: time/src/rand.rs
26 ===================================================================
27 --- time.orig/src/rand.rs
28 +++ time/src/rand.rs
29 @@ -8,10 +8,10 @@ use crate::{Date, Duration, Month, Offse
30 impl Distribution<Time> for Standard {
31 fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Time {
32 Time::__from_hms_nanos_unchecked(
33 - rng.gen_range(0..24),
34 - rng.gen_range(0..60),
35 - rng.gen_range(0..60),
36 - rng.gen_range(0..1_000_000_000),
37 + rng.gen_range(0, 24),
38 + rng.gen_range(0, 60),
39 + rng.gen_range(0, 60),
40 + rng.gen_range(0, 1_000_000_000),
41 )
42 }
43 }
44 @@ -19,14 +19,14 @@ impl Distribution<Time> for Standard {
45 impl Distribution<Date> for Standard {
46 fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Date {
47 Date::from_julian_day_unchecked(
48 - rng.gen_range(Date::MIN.to_julian_day()..=Date::MAX.to_julian_day()),
49 + rng.gen_range(Date::MIN.to_julian_day(), Date::MAX.to_julian_day() + 1),
50 )
51 }
52 }
53
54 impl Distribution<UtcOffset> for Standard {
55 fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> UtcOffset {
56 - let seconds = rng.gen_range(-86399..=86399);
57 + let seconds = rng.gen_range(-86399, 86399+1);
58 UtcOffset::__from_hms_unchecked(
59 (seconds / 3600) as _,
60 ((seconds % 3600) / 60) as _,
61 @@ -51,7 +51,7 @@ impl Distribution<OffsetDateTime> for St
62 impl Distribution<Duration> for Standard {
63 fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Duration {
64 Duration::nanoseconds_i128(
65 - rng.gen_range(Duration::MIN.whole_nanoseconds()..=Duration::MAX.whole_nanoseconds()),
66 + rng.gen_range(Duration::MIN.whole_nanoseconds(), Duration::MAX.whole_nanoseconds()+1),
67 )
68 }
69 }
70 @@ -60,7 +60,7 @@ impl Distribution<Weekday> for Standard
71 fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Weekday {
72 use Weekday::*;
73
74 - match rng.gen_range(0..7) {
75 + match rng.gen_range(0, 7) {
76 0 => Monday,
77 1 => Tuesday,
78 2 => Wednesday,
79 @@ -75,7 +75,7 @@ impl Distribution<Weekday> for Standard
80 impl Distribution<Month> for Standard {
81 fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Month {
82 use Month::*;
83 - match rng.gen_range(1..=12) {
84 + match rng.gen_range(1,12+1) {
85 1 => January,
86 2 => February,
87 3 => March,
00 drop-features.patch
1 rand-0.7.patch
21 disable-omitted-tests.patch
32 disable-doctests-that-require-macros