public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-zvariant] f43: Update to version 5.15.1; Fixes RHBZ#2558345
@ 2026-10-27 14:08 Fabio Valentini
  0 siblings, 0 replies; only message in thread
From: Fabio Valentini @ 2026-10-27 14:08 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rust-zvariant
Branch : f43
Commit : fd672da20ffabcc10e497aa94a392d0dc1006656
Author : Fabio Valentini <decathorpe@gmail.com>
Date   : 2026-10-27T15:04:31+01:00
Stats  : +34/-59 in 7 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-zvariant/c/fd672da20ffabcc10e497aa94a392d0dc1006656?branch=f43

Log:
Update to version 5.15.1; Fixes RHBZ#2558345

---
diff --git a/.gitignore b/.gitignore
index ed1ee55..869f598 100644
--- a/.gitignore
+++ b/.gitignore
@@ -27,3 +27,4 @@
 /zvariant-5.12.0.crate
 /zvariant-5.13.1.crate
 /zvariant-5.15.0.crate
+/zvariant-5.15.1.crate

diff --git a/0001-backport-zv-Don-t-assume-little-endian-host-in-dict_.patch b/0001-backport-zv-Don-t-assume-little-endian-host-in-dict_.patch
deleted file mode 100644
index 85b3788..0000000
--- a/0001-backport-zv-Don-t-assume-little-endian-host-in-dict_.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-From 7798676c131b1b18a2ca1070b7df50cfee5ce567 Mon Sep 17 00:00:00 2001
-From: Fabio Valentini <decathorpe@gmail.com>
-Date: Thu, 24 Sep 2026 01:17:46 +0200
-Subject: [PATCH] backport: zv: Don't assume little-endian host in dict_value
- test
-
-Backport of upstream commit:
-https://github.com/z-galaxy/zbus/commit/5f32837
----
- tests/dict_value.rs | 10 ++++++----
- 1 file changed, 6 insertions(+), 4 deletions(-)
-
-diff --git a/tests/dict_value.rs b/tests/dict_value.rs
-index fbc2914..65b37bf 100644
---- a/tests/dict_value.rs
-+++ b/tests/dict_value.rs
-@@ -4,8 +4,8 @@ use std::collections::{BTreeMap, HashMap};
- 
- use endi::NATIVE_ENDIAN;
- use zvariant::{
--    DeserializeDict, Dict, OwnedObjectPath, SerializeDict, Str, Type, Value, as_value::optional,
--    serialized::Context, to_bytes,
-+    DeserializeDict, Dict, LE, OwnedObjectPath, SerializeDict, Str, Type, Value,
-+    as_value::optional, serialized::Context, to_bytes,
- };
- 
- #[macro_use]
-@@ -119,7 +119,8 @@ fn dict_value() {
-     // Dict<u32, u8>
-     let mut map: HashMap<u32, u8> = HashMap::new();
-     map.insert(1, 2);
--    let encoded = to_bytes(ctxt, &map).unwrap();
-+    // The byte order is explicit since the encoding is compared against hardcoded bytes.
-+    let encoded = to_bytes(Context::new_dbus(LE, 0), &map).unwrap();
-     assert_eq!(
-         encoded.bytes(),
-         [
-@@ -132,7 +133,8 @@ fn dict_value() {
-     // GVariant format now
-     #[cfg(feature = "gvariant")]
-     {
--        let ctxt = Context::new_gvariant(NATIVE_ENDIAN, 0);
-+        // Explicit byte order here too, for the same reason.
-+        let ctxt = Context::new_gvariant(LE, 0);
-         let encoded = to_bytes(ctxt, &map).unwrap();
-         assert_eq!(
-             encoded.bytes(),
--- 
-2.55.0
-

diff --git a/0001-deny-warnings-considered-harmful.patch b/0001-deny-warnings-considered-harmful.patch
new file mode 100644
index 0000000..bba1786
--- /dev/null
+++ b/0001-deny-warnings-considered-harmful.patch
@@ -0,0 +1,24 @@
+From c113bb73d35242d0696ca5291e832630440c29ae Mon Sep 17 00:00:00 2001
+From: Fabio Valentini <decathorpe@gmail.com>
+Date: Tue, 27 Oct 2026 15:02:13 +0100
+Subject: [PATCH] deny(warnings) considered harmful
+
+---
+ src/lib.rs | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/src/lib.rs b/src/lib.rs
+index 21eaefe..dde9ecb 100644
+--- a/src/lib.rs
++++ b/src/lib.rs
+@@ -6,7 +6,6 @@
+ #![doc = include_str!("../README.md")]
+ #![doc(test(attr(
+     warn(unused),
+-    deny(warnings),
+     allow(dead_code),
+     // W/o this, we seem to get some bogus warning about `extern crate zbus`.
+     allow(unused_extern_crates),
+-- 
+2.56.0
+

diff --git a/rust-zvariant.spec b/rust-zvariant.spec
index 1942194..e2c15e8 100644
--- a/rust-zvariant.spec
+++ b/rust-zvariant.spec
@@ -5,7 +5,7 @@
 %global crate zvariant
 
 Name:           rust-zvariant
-Version:        5.15.0
+Version:        5.15.1
 Release:        %autorelease
 Summary:        D-Bus & GVariant encoding & decoding
 
@@ -15,13 +15,12 @@ Source:         %{crates_source}
 # Manually created patch for downstream crate metadata changes
 # * drop unused, benchmark-only codspeed-criterion-compat dev-dependency
 Patch:          zvariant-fix-metadata.diff
-# * https://github.com/z-galaxy/zbus/commit/5f32837
-Patch:          0001-backport-zv-Don-t-assume-little-endian-host-in-dict_.patch
+Patch:          0001-deny-warnings-considered-harmful.patch
 
 BuildRequires:  cargo-rpm-macros >= 24
 
 %global _description %{expand:
-D-Bus & GVariant encoding & decoding.}
+D-Bus & GVariant encoding & decoding (deprecated: merged into zbus).}
 
 %description %{_description}
 

diff --git a/rust2rpm.toml b/rust2rpm.toml
index 0646756..b46db12 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -1,4 +1,5 @@
 [package]
+summary = "D-Bus & GVariant encoding & decoding"
 cargo-toml-patch-comments = [
     "drop unused, benchmark-only codspeed-criterion-compat dev-dependency",
 ]

diff --git a/sources b/sources
index ea5721a..2992b0a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (zvariant-5.15.0.crate) = 562053339fa25e0dd9a9e81e8286de2c0aade0dd8b5c49540f269c7f6e842a0c8c1cbc2b54110e6c04bac06f1c351ca5152e647b0b95d8fc305ce8e1dc1e29f5
+SHA512 (zvariant-5.15.1.crate) = 0de54f2f465a882323f82daee934d56a54e7a540801d82c7edb968199d1fb62e85145bc38609250eb98a2bae83f96937da3171731c843410fd4295f7d50d3c35

diff --git a/zvariant-fix-metadata.diff b/zvariant-fix-metadata.diff
index 742cd59..da6fd7c 100644
--- a/zvariant-fix-metadata.diff
+++ b/zvariant-fix-metadata.diff
@@ -1,6 +1,6 @@
---- zvariant-5.15.0/Cargo.toml	2006-07-24T01:21:28+00:00
-+++ zvariant-5.15.0/Cargo.toml	2026-09-22T19:54:52.800322+00:00
-@@ -167,11 +167,6 @@
+--- zvariant-5.15.1/Cargo.toml	2006-07-24T01:21:28+00:00
++++ zvariant-5.15.1/Cargo.toml	2026-10-27T13:57:03.749544+00:00
+@@ -171,11 +171,6 @@
  name = "value_value"
  path = "tests/value_value.rs"
  
@@ -12,7 +12,7 @@
  [dependencies.arrayvec]
  version = "0.7.4"
  features = ["serde"]
-@@ -245,10 +240,6 @@
+@@ -249,10 +244,6 @@
  ]
  default-features = false
  

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-27 14:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-27 14:08 [rpms/rust-zvariant] f43: Update to version 5.15.1; Fixes RHBZ#2558345 Fabio Valentini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox