public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-gvdb] f44: Update to version 0.10.1; Fixes RHBZ#2451585
@ 2026-10-07 10:20 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-10-07 10:20 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rust-gvdb
Branch : f44
Commit : 4e41a808bb7e565a755247b59bb5b54b5aea4e15
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-10-05T19:01:32+01:00
Stats  : +51/-2 in 6 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-gvdb/c/4e41a808bb7e565a755247b59bb5b54b5aea4e15?branch=f44

Log:
Update to version 0.10.1; Fixes RHBZ#2451585

---
diff --git a/.gitignore b/.gitignore
index a2adf52..8c852d9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@
 /gvdb-0.5.3.crate
 /gvdb-0.6.1.crate
 /gvdb-0.9.0.crate
+/gvdb-0.10.1.crate

diff --git a/gvdb-fix-metadata.diff b/gvdb-fix-metadata.diff
new file mode 100644
index 0000000..5b30cf6
--- /dev/null
+++ b/gvdb-fix-metadata.diff
@@ -0,0 +1,11 @@
+--- gvdb-0.10.1/Cargo.toml	2006-07-24T01:21:28+00:00
++++ gvdb-0.10.1/Cargo.toml	2026-10-05T17:54:50.811587+00:00
+@@ -73,7 +73,7 @@
+ optional = true
+ 
+ [dependencies.quick-xml]
+-version = "0.39"
++version = "0.42"
+ features = ["serialize"]
+ optional = true
+ 

diff --git a/quick-xml-0.42.patch b/quick-xml-0.42.patch
new file mode 100644
index 0000000..c596e60
--- /dev/null
+++ b/quick-xml-0.42.patch
@@ -0,0 +1,12 @@
+diff -Naur a/src/gresource/bundle.rs b/src/gresource/bundle.rs
+--- a/src/gresource/bundle.rs	2006-07-24 02:21:28.000000000 +0100
++++ b/src/gresource/bundle.rs	2026-10-05 19:00:01.979495712 +0100
+@@ -155,7 +155,7 @@
+                         nesting -= 1;
+                     }
+                     quick_xml::events::Event::Text(text) => {
+-                        if nesting == 0 && text.iter().any(|c| !c.is_ascii_whitespace()) {
++                        if nesting == 0 && text.contains(|c: char| !c.is_ascii_whitespace()) {
+                             return true;
+                         }
+                     }

diff --git a/rust-gvdb.spec b/rust-gvdb.spec
index bb1de7a..56279ba 100644
--- a/rust-gvdb.spec
+++ b/rust-gvdb.spec
@@ -5,13 +5,21 @@
 %global crate gvdb
 
 Name:           rust-gvdb
-Version:        0.9.0
+Version:        0.10.1
 Release:        %autorelease
 Summary:        Implementation of the glib gvdb file format
 
 License:        MIT OR Apache-2.0
 URL:            https://crates.io/crates/gvdb
 Source:         %{crates_source}
+# Manually created patch for downstream crate metadata changes
+# * gvdb: Update quick-xml to 0.42:
+#   https://github.com/felinira/gvdb-rs/pull/135,
+#   https://github.com/felinira/gvdb-rs/commit/9c42952e80754ee57a6361183d5e61a78aa4a79a
+Patch:          gvdb-fix-metadata.diff
+# * Source-code patch for quick-xml 0.42, from
+#   https://github.com/felinira/gvdb-rs/pull/135
+Patch10:        quick-xml-0.42.patch
 
 BuildRequires:  cargo-rpm-macros >= 24
 

diff --git a/rust2rpm.toml b/rust2rpm.toml
index f341806..527d8d0 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -2,6 +2,23 @@
 license-files = ["LICENSES/Apache-2.0.txt", "LICENSES/MIT.txt"]
 # test-data includes CC0-1.0 licensed content
 exclude-crate-files = ["test-data/", "LICENSES/CC0-1.0.txt"]
+cargo-toml-patch-comments = [
+    """\
+gvdb: Update quick-xml to 0.42: \
+https://github.com/felinira/gvdb-rs/pull/135, \
+https://github.com/felinira/gvdb-rs/commit/9c42952e80754ee57a6361183d5e61a78aa4a79a\
+""",
+]
+
+[[package.extra-patches]]
+number = 10
+file = "quick-xml-0.42.patch"
+comments = [
+    """\
+Source-code patch for quick-xml 0.42, from \
+https://github.com/felinira/gvdb-rs/pull/135\
+""",
+]
 
 [features]
 enable-all = true

diff --git a/sources b/sources
index 1582e64..dc10da2 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (gvdb-0.9.0.crate) = 1148ab45e097d62419a060676434f8fff1a12602e6eb106fdd068f09c35be8bf3f275824023ef8da6beb45a7e7f8f6116026aa637242f0ab4663a90957667d3e
+SHA512 (gvdb-0.10.1.crate) = 711aa8fe2be44e0eda6abeda4b973d354451d039a5b924b8596f00bfa31239a63b76121f5af59a165cd3bff5cbcabab2b35c0643a00c8099a44cb4f2545334ac

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

only message in thread, other threads:[~2026-10-07 10:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-07 10:20 [rpms/rust-gvdb] f44: Update to version 0.10.1; Fixes RHBZ#2451585 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