public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-zerovec] epel10: Update to version 0.11.8; Fixes RHBZ#2515915
@ 2026-08-28 14:14 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-08-28 14:14 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rust-zerovec
Branch : epel10
Commit : db66cc79ada2475b47fe483d9650a61c56d8da03
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-08-22T10:52:41+01:00
Stats : +52/-6 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/rust-zerovec/c/db66cc79ada2475b47fe483d9650a61c56d8da03?branch=epel10
Log:
Update to version 0.11.8; Fixes RHBZ#2515915
---
diff --git a/0001-Don-t-unwrap-ZeroVec-try_from_slice.patch b/0001-Don-t-unwrap-ZeroVec-try_from_slice.patch
new file mode 100644
index 0000000..1dc85f0
--- /dev/null
+++ b/0001-Don-t-unwrap-ZeroVec-try_from_slice.patch
@@ -0,0 +1,25 @@
+From 1d1db8d8ba6155b8cc5477aee9ca34919f38904f Mon Sep 17 00:00:00 2001
+From: "Shane F. Carr" <shane.carr@wustl.edu>
+Date: Fri, 21 Aug 2026 23:40:33 -1000
+Subject: [PATCH] Don't unwrap ZeroVec::try_from_slice
+
+---
+ src/lib.rs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/lib.rs b/src/lib.rs
+index 5e9865bf40..d710e8c0b7 100644
+--- a/src/lib.rs
++++ b/src/lib.rs
+@@ -576,7 +576,7 @@ mod tests {
+ #[test]
+ fn test_miri_repro_eyepatch_hack_truncate() {
+ let slice: &[u16] = &[1, 2, 3, 4];
+- let zv: ZeroVec<u16> = ZeroVec::try_from_slice(slice).unwrap();
++ let zv: ZeroVec<u16> = ZeroVec::from_slice_or_alloc(slice);
+ let _truncated = zv.truncated(2);
+ }
+
+--
+2.55.0
+
diff --git a/rust-zerovec.spec b/rust-zerovec.spec
index a0e4a34..6b06f24 100644
--- a/rust-zerovec.spec
+++ b/rust-zerovec.spec
@@ -5,7 +5,7 @@
%global crate zerovec
Name: rust-zerovec
-Version: 0.11.6
+Version: 0.11.8
Release: %autorelease
Summary: Zero-copy vector backed by a byte array
@@ -34,6 +34,12 @@ Patch: zerovec-fix-metadata.diff
# https://src.fedoraproject.org/rpms/rust-zerovec/pull-request/1#comment-232114
# and subsequent discussion.
Patch10: 0001-Downstream-only-Ignore-a-few-tests-we-can-t-compile.patch
+# * Don't unwrap ZeroVec::try_from_slice:
+# https://github.com/unicode-org/icu4x/pull/8420
+# * Fixes: zerovec: tests::test_miri_repro_eyepatch_hack_truncate fails on s390x:
+# https://github.com/unicode-org/icu4x/issues/8396
+# * Produced with git format-patch --relative in order to apply to the crate
+Patch11: 0001-Don-t-unwrap-ZeroVec-try_from_slice.patch
BuildRequires: cargo-rpm-macros >= 24
diff --git a/rust2rpm.toml b/rust2rpm.toml
index 07305d2..2fadf49 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -34,6 +34,21 @@ and subsequent discussion.\
""",
]
+[[package.extra-patches]]
+number = 11
+file = "0001-Don-t-unwrap-ZeroVec-try_from_slice.patch"
+comments = [
+ """\
+Don't unwrap ZeroVec::try_from_slice: \
+https://github.com/unicode-org/icu4x/pull/8420\
+""",
+ """\
+Fixes: zerovec: tests::test_miri_repro_eyepatch_hack_truncate fails on s390x:
+https://github.com/unicode-org/icu4x/issues/8396\
+""",
+ "Produced with git format-patch --relative in order to apply to the crate",
+]
+
[features]
# Some features are required for tests, or at least enable additional tests.
enable = [
diff --git a/sources b/sources
index 0fbd97f..7f5e7f0 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (zerovec-0.11.6.crate) = 9a0b22654ce3b76cd5e9bdfbcf8d5344dff4116f37f6e22ee4687677c7fe8a69122a2cc86b0d722ff2040547a810528a5a0d9bb5d8c4ac2d3fa0323dcd18320d
+SHA512 (zerovec-0.11.8.crate) = dc59d370c2b627907f04227511a642466216e6229b8834b518f132a533d7010a16650e32a84d6b335287a43d8998c8b3f7aad685543b88b57c5310e9753aa8ca
diff --git a/zerovec-fix-metadata.diff b/zerovec-fix-metadata.diff
index bae4ae9..e7291d9 100644
--- a/zerovec-fix-metadata.diff
+++ b/zerovec-fix-metadata.diff
@@ -1,5 +1,5 @@
---- zerovec-0.11.6/Cargo.toml 2006-07-24T01:21:28+00:00
-+++ zerovec-0.11.6/Cargo.toml 2026-04-12T17:35:27.994072+00:00
+--- zerovec-0.11.8/Cargo.toml 2006-07-24T01:21:28+00:00
++++ zerovec-0.11.8/Cargo.toml 2026-08-22T09:52:32.895786+00:00
@@ -80,11 +80,6 @@
path = "src/lib.rs"
bench = false
@@ -42,7 +42,7 @@
version = "0.9"
@@ -196,9 +176,6 @@
- version = "0.8.2"
+ version = "0.8.3"
features = ["derive"]
default-features = false
-
@@ -50,4 +50,4 @@
-version = "0.5.0"
[lints.clippy]
- alloc-instead-of-core = "warn"
+ alloc_instead_of_core = "warn"
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-28 14:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-28 14:14 [rpms/rust-zerovec] epel10: Update to version 0.11.8; Fixes RHBZ#2515915 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