public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-chrono] epel10: Update to version 0.4.45; Fixes RHBZ#2484767
@ 2026-10-11 8:18 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-10-11 8:18 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rust-chrono
Branch : epel10
Commit : b08742641581506c1aa646284724bac91413d0f9
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-10-10T21:25:24+01:00
Stats : +74/-11 in 7 file(s)
URL : https://src.fedoraproject.org/rpms/rust-chrono/c/b08742641581506c1aa646284724bac91413d0f9?branch=epel10
Log:
Update to version 0.4.45; Fixes RHBZ#2484767
---
diff --git a/.gitignore b/.gitignore
index 2089a5a..1229473 100644
--- a/.gitignore
+++ b/.gitignore
@@ -30,3 +30,4 @@
/chrono-0.4.41.crate
/chrono-0.4.42.crate
/chrono-0.4.44.crate
+/chrono-0.4.45.crate
diff --git a/1825.patch b/1825.patch
new file mode 100644
index 0000000..7ad36ff
--- /dev/null
+++ b/1825.patch
@@ -0,0 +1,46 @@
+From f66c9a2b536978d3ac78c25cc4a374602b9587a6 Mon Sep 17 00:00:00 2001
+From: "Benjamin A. Beasley" <code@musicinmybrain.net>
+Date: Sat, 10 Oct 2026 21:21:18 +0100
+Subject: [PATCH] Fix test failures due to deprecation of `core::i32::MAX` in
+ Rust 1.99
+
+---
+ src/naive/date/mod.rs | 2 +-
+ src/naive/datetime/mod.rs | 4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/src/naive/date/mod.rs b/src/naive/date/mod.rs
+index e1eb371bb4..2a3ddcf456 100644
+--- a/src/naive/date/mod.rs
++++ b/src/naive/date/mod.rs
+@@ -613,7 +613,7 @@ impl NaiveDate {
+ /// assert_eq!(
+ /// NaiveDate::from_ymd_opt(2014, 1, 1)
+ /// .unwrap()
+- /// .checked_sub_months(Months::new(core::i32::MAX as u32 + 1)),
++ /// .checked_sub_months(Months::new(i32::MAX as u32 + 1)),
+ /// None
+ /// );
+ /// ```
+diff --git a/src/naive/datetime/mod.rs b/src/naive/datetime/mod.rs
+index 0723c4866f..aaf8c35f3e 100644
+--- a/src/naive/datetime/mod.rs
++++ b/src/naive/datetime/mod.rs
+@@ -560,7 +560,7 @@ impl NaiveDateTime {
+ /// .unwrap()
+ /// .and_hms_opt(1, 0, 0)
+ /// .unwrap()
+- /// .checked_add_months(Months::new(core::i32::MAX as u32 + 1)),
++ /// .checked_add_months(Months::new(i32::MAX as u32 + 1)),
+ /// None
+ /// );
+ /// ```
+@@ -740,7 +740,7 @@ impl NaiveDateTime {
+ /// .unwrap()
+ /// .and_hms_opt(1, 0, 0)
+ /// .unwrap()
+- /// .checked_sub_months(Months::new(core::i32::MAX as u32 + 1)),
++ /// .checked_sub_months(Months::new(i32::MAX as u32 + 1)),
+ /// None
+ /// );
+ /// ```
diff --git a/chrono-fix-metadata-auto.diff b/chrono-fix-metadata-auto.diff
index 6abceac..60ccbad 100644
--- a/chrono-fix-metadata-auto.diff
+++ b/chrono-fix-metadata-auto.diff
@@ -1,5 +1,5 @@
---- chrono-0.4.44/Cargo.toml 1970-01-01T00:00:01+00:00
-+++ chrono-0.4.44/Cargo.toml 2026-02-23T13:52:46.881664+00:00
+--- chrono-0.4.45/Cargo.toml 2006-07-24T01:21:28+00:00
++++ chrono-0.4.45/Cargo.toml 2026-10-10T20:24:53.953339+00:00
@@ -96,10 +96,8 @@
std = ["alloc"]
unstable-locales = ["pure-rust-locales"]
diff --git a/chrono-fix-metadata.diff b/chrono-fix-metadata.diff
index 3f8d58d..ed00a0c 100644
--- a/chrono-fix-metadata.diff
+++ b/chrono-fix-metadata.diff
@@ -1,5 +1,5 @@
---- chrono-0.4.44/Cargo.toml 1970-01-01T00:00:01+00:00
-+++ chrono-0.4.44/Cargo.toml 2026-02-23T13:52:46.882870+00:00
+--- chrono-0.4.45/Cargo.toml 2006-07-24T01:21:28+00:00
++++ chrono-0.4.45/Cargo.toml 2026-10-10T20:24:53.954612+00:00
@@ -55,10 +55,8 @@
features = ["serde"]
@@ -44,13 +44,15 @@
optional = true
[dependencies.num-traits]
-@@ -155,9 +141,6 @@
- [dev-dependencies.similar-asserts]
- version = "1.6.1"
+@@ -153,10 +139,7 @@
+ version = "1"
+ [dev-dependencies.similar-asserts]
+-version = "2.0.0"
+-
-[dev-dependencies.windows-bindgen]
-version = "0.66"
--
++version = ">=1.6.1, <3.0.0"
+
[target."cfg(unix)".dependencies.iana-time-zone]
version = "0.1.45"
- features = ["fallback"]
diff --git a/rust-chrono.spec b/rust-chrono.spec
index 77fc899..7986e09 100644
--- a/rust-chrono.spec
+++ b/rust-chrono.spec
@@ -5,7 +5,7 @@
%global crate chrono
Name: rust-chrono
-Version: 0.4.44
+Version: 0.4.45
Release: %autorelease
Summary: Date and time library for Rust
@@ -16,7 +16,11 @@ Source: %{crates_source}
Patch: chrono-fix-metadata-auto.diff
# Manually created patch for downstream crate metadata changes
# * remove WASM- and Windows-specific features and dependencies
+# * allow similar-asserts v1 for now, RHBZ#2454122
Patch: chrono-fix-metadata.diff
+# * Fix test failures due to deprecation of `core::i32::MAX` in Rust 1.99
+# * https://github.com/chronotope/chrono/pull/1825
+Patch10: https://github.com/chronotope/chrono/pull/1825.patch
BuildRequires: cargo-rpm-macros >= 24
diff --git a/rust2rpm.toml b/rust2rpm.toml
index 8b0cf05..8735b3d 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -1,6 +1,16 @@
[package]
cargo-toml-patch-comments = [
"remove WASM- and Windows-specific features and dependencies",
+ "allow similar-asserts v1 for now, RHBZ#2454122",
+]
+
+
+[[package.extra-patches]]
+number = 10
+file = "https://github.com/chronotope/chrono/pull/1825.patch"
+comments = [
+ "Fix test failures due to deprecation of `core::i32::MAX` in Rust 1.99",
+ "https://github.com/chronotope/chrono/pull/1825",
]
[tests]
diff --git a/sources b/sources
index d56a4c9..50425db 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (chrono-0.4.44.crate) = 0b1a83885724e9180e71ee9fed146d070d88620d46b74970a67f4af04f583dddc0285e7d09574b99507786568ac7fb3f06a5dfbd25c51490c8d444c145bdee21
+SHA512 (chrono-0.4.45.crate) = f275b373f0f085453bd168b822a28ce6db3470cbe42f4c8b216b4320f2b460dbd2781e272eff8977b6d17ae596cb3efd3381a1cffb5e6513e6e7979681894546
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-11 8:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-11 8:18 [rpms/rust-chrono] epel10: Update to version 0.4.45; Fixes RHBZ#2484767 Benjamin A. Beasley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox