public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-heapless] f45: Update to version 0.9.4; Fixes RHBZ#2575977
@ 2026-11-24 7:30 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-11-24 7:30 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rust-heapless
Branch : f45
Commit : 70666e36087df1f9167e317b06ed7cca48cf7ff9
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-11-24T07:12:28+00:00
Stats : +81/-2 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/rust-heapless/c/70666e36087df1f9167e317b06ed7cca48cf7ff9?branch=f45
Log:
Update to version 0.9.4; Fixes RHBZ#2575977
- Fixes RUSTSEC-2026-0575
---
diff --git a/.gitignore b/.gitignore
index 989e3bd..1fdd18a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
/heapless-0.7.16.crate
/heapless-0.8.0.crate
/heapless-0.9.3.crate
+/heapless-0.9.4.crate
diff --git a/heapless-0.9.4-invalid-subrange-count.patch b/heapless-0.9.4-invalid-subrange-count.patch
new file mode 100644
index 0000000..e262a2e
--- /dev/null
+++ b/heapless-0.9.4-invalid-subrange-count.patch
@@ -0,0 +1,55 @@
+diff -Naur a/src/spsc.rs b/src/spsc.rs
+--- a/src/spsc.rs 2006-07-24 02:21:28.000000000 +0100
++++ b/src/spsc.rs 2026-11-24 07:07:37.334896864 +0000
+@@ -1355,6 +1355,12 @@
+ assert_eq!(&collected, &[&(); 4]);
+ }
+
++ // Downstream patch: avoid an LLVM error by not compiling this test
++ // https://bugzilla.redhat.com/show_bug.cgi?id=2581232
++ // https://github.com/rust-lang/rust/issues/166416
++ // https://github.com/rust-lang/rust/issues/90805
++ // https://github.com/rust-lang/rust/issues/34127
++ #[cfg(false)]
+ #[test]
+ #[cfg_attr(miri, ignore)] // too slow
+ fn test_usize_overflow_iter() {
+@@ -1368,6 +1374,12 @@
+ assert_eq!(&collected, &[&(); 4]);
+ }
+
++ // Downstream patch: avoid an LLVM error by not compiling this test
++ // https://bugzilla.redhat.com/show_bug.cgi?id=2581232
++ // https://github.com/rust-lang/rust/issues/166416
++ // https://github.com/rust-lang/rust/issues/90805
++ // https://github.com/rust-lang/rust/issues/34127
++ #[cfg(false)]
+ #[test]
+ #[cfg_attr(miri, ignore)] // too slow
+ fn test_usize_overflow_iter_mut() {
+@@ -1381,6 +1393,12 @@
+ assert_eq!(&collected, &[&(); 4]);
+ }
+
++ // Downstream patch: avoid an LLVM error by not compiling this test
++ // https://bugzilla.redhat.com/show_bug.cgi?id=2581232
++ // https://github.com/rust-lang/rust/issues/166416
++ // https://github.com/rust-lang/rust/issues/90805
++ // https://github.com/rust-lang/rust/issues/34127
++ #[cfg(false)]
+ #[test]
+ #[cfg_attr(miri, ignore)] // too slow
+ fn test_usize_overflow_iter_rev() {
+@@ -1394,6 +1412,12 @@
+ assert_eq!(&collected, &[&(); 4]);
+ }
+
++ // Downstream patch: avoid an LLVM error by not compiling this test
++ // https://bugzilla.redhat.com/show_bug.cgi?id=2581232
++ // https://github.com/rust-lang/rust/issues/166416
++ // https://github.com/rust-lang/rust/issues/90805
++ // https://github.com/rust-lang/rust/issues/34127
++ #[cfg(false)]
+ #[test]
+ #[cfg_attr(miri, ignore)] // too slow
+ fn test_usize_overflow_iter_mut_rev() {
diff --git a/rust-heapless.spec b/rust-heapless.spec
index e3bc096..569bf87 100644
--- a/rust-heapless.spec
+++ b/rust-heapless.spec
@@ -5,13 +5,21 @@
%global crate heapless
Name: rust-heapless
-Version: 0.9.3
+Version: 0.9.4
Release: %autorelease
Summary: Static friendly data structures that don't require dynamic memory allocation
License: MIT OR Apache-2.0
URL: https://crates.io/crates/heapless
Source: %{crates_source}
+# * Downstream patch: avoid an LLVM error by not compiling a few tests that were
+# added in
+# https://github.com/rust-embedded/heapless/commit/61debf627ebfe38dfb265ba63c94f83f692396a7
+# * https://bugzilla.redhat.com/show_bug.cgi?id=2581232
+# * https://github.com/rust-lang/rust/issues/166416
+# * https://github.com/rust-lang/rust/issues/90805
+# * https://github.com/rust-lang/rust/issues/34127
+Patch10: heapless-0.9.4-invalid-subrange-count.patch
BuildRequires: cargo-rpm-macros >= 24
diff --git a/rust2rpm.toml b/rust2rpm.toml
index 886cc12..b17a4d9 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -1,3 +1,18 @@
+[[package.extra-patches]]
+number = 10
+file = "heapless-0.9.4-invalid-subrange-count.patch"
+comments = [
+ """\
+Downstream patch: avoid an LLVM error by not compiling a few tests \
+that were added in \
+https://github.com/rust-embedded/heapless/commit/61debf627ebfe38dfb265ba63c94f83f692396a7\
+""",
+ "https://bugzilla.redhat.com/show_bug.cgi?id=2581232",
+ "https://github.com/rust-lang/rust/issues/166416",
+ "https://github.com/rust-lang/rust/issues/90805",
+ "https://github.com/rust-lang/rust/issues/34127",
+]
+
[features]
hide = [
"nightly",
diff --git a/sources b/sources
index cee5797..2047188 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (heapless-0.9.3.crate) = 54e183c67f5994d809f16cdfddcac747c367c4878f04a7522b66ec1d1f68bb104e9724a6bcd59335385624641985970573dfa37ebf6d67d283f90b56863feb79
+SHA512 (heapless-0.9.4.crate) = a5e39bd30bfb24a757a10e8796521cef96ff9b2a3b85ac89115c601f7578499eb7811835da1298c63c0cce36d5058f7a1c44587f7104c65c2d50aa1812ef1886
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-24 7:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-24 7:30 [rpms/rust-heapless] f45: Update to version 0.9.4; Fixes RHBZ#2575977 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