public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-zerovec] rawhide: Update to version 0.11.8; Fixes RHBZ#2515915
Date: Fri, 28 Aug 2026 14:09:45 GMT	[thread overview]
Message-ID: <178792618558.1.8419035121509002748.rpms-rust-zerovec-db66cc79ada2@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rust-zerovec
Branch : rawhide
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=rawhide

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"

                 reply	other threads:[~2026-08-28 14:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178792618558.1.8419035121509002748.rpms-rust-zerovec-db66cc79ada2@fedoraproject.org \
    --to=code@musicinmybrain.net \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox