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-wayland-scanner] f43: Update quick-xml to 0.40 and similar to v3
Date: Tue, 09 Jun 2026 09:33:25 GMT	[thread overview]
Message-ID: <178099760552.1.15491189614236915131.rpms-rust-wayland-scanner-7b7b4dd8b7ee@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rust-wayland-scanner
Branch : f43
Commit : 7b7b4dd8b7ee736c95f2009c7571da8d80165b97
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-06-09T06:42:16+01:00
Stats  : +55/-0 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-wayland-scanner/c/7b7b4dd8b7ee736c95f2009c7571da8d80165b97?branch=f43

Log:
Update quick-xml to 0.40 and similar to v3

---
diff --git a/rust-wayland-scanner.spec b/rust-wayland-scanner.spec
index 1569e19..d2c68a3 100644
--- a/rust-wayland-scanner.spec
+++ b/rust-wayland-scanner.spec
@@ -12,6 +12,14 @@ Summary:        Wayland Scanner for generating rust APIs from XML wayland protoc
 License:        MIT
 URL:            https://crates.io/crates/wayland-scanner
 Source:         %{crates_source}
+# Manually created patch for downstream crate metadata changes
+# * Update quick-xml (to 0.40) and similar (to v3),
+#   https://github.com/Smithay/wayland-rs/commit/ec2d932855593d48aa83c76820f3efbcfea86d39.
+#   This requires an accompanying source-code patch for quick-xml 0.40.
+Patch:          wayland-scanner-fix-metadata.diff
+# * Source-code patch for API changes in quick-xml 0.40, from
+#   https://github.com/Smithay/wayland-rs/commit/ec2d932855593d48aa83c76820f3efbcfea86d39.
+Patch10:        wayland-scanner-0.31.10-quick-xml-0.40.patch
 
 BuildRequires:  cargo-rpm-macros >= 24
 %if %{with check}

diff --git a/rust2rpm.toml b/rust2rpm.toml
index 91cdb7f..65eff68 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -1,2 +1,21 @@
+[package]
+cargo-toml-patch-comments = [
+    """\
+Update quick-xml (to 0.40) and similar (to v3), \
+https://github.com/Smithay/wayland-rs/commit/ec2d932855593d48aa83c76820f3efbcfea86d39. \
+This requires an accompanying source-code patch for quick-xml 0.40.\
+""",
+]
+
+[[package.extra-patches]]
+number = 10
+file = "wayland-scanner-0.31.10-quick-xml-0.40.patch"
+comments = [
+    """\
+Source-code patch for API changes in quick-xml 0.40, from \
+https://github.com/Smithay/wayland-rs/commit/ec2d932855593d48aa83c76820f3efbcfea86d39.\
+""",
+]
+
 [requires]
 test = ["rustfmt"]

diff --git a/wayland-scanner-0.31.10-quick-xml-0.40.patch b/wayland-scanner-0.31.10-quick-xml-0.40.patch
new file mode 100644
index 0000000..608a277
--- /dev/null
+++ b/wayland-scanner-0.31.10-quick-xml-0.40.patch
@@ -0,0 +1,13 @@
+diff --git a/src/parse.rs b/src/parse.rs
+index 19c34860..ae03ab90 100644
+--- a/src/parse.rs
++++ b/src/parse.rs
+@@ -90,7 +90,7 @@ fn parse_protocol<R: BufRead>(mut reader: Reader<R>) -> Protocol {
+                                 Ok(Event::GeneralRef(byte_ref)) => {
+                                     if let Ok(Some(c)) = byte_ref.resolve_char_ref() {
+                                         copyright.push(c);
+-                                    } else if let Ok(content) = byte_ref.xml_content() {
++                                    } else if let Ok(content) = byte_ref.xml10_content() {
+                                         if let Some(s) =
+                                             quick_xml::escape::resolve_xml_entity(&content)
+                                         {

diff --git a/wayland-scanner-fix-metadata.diff b/wayland-scanner-fix-metadata.diff
new file mode 100644
index 0000000..bbb0ee7
--- /dev/null
+++ b/wayland-scanner-fix-metadata.diff
@@ -0,0 +1,15 @@
+--- wayland-scanner-0.31.10/Cargo.toml	2006-07-24T01:21:28+00:00
++++ wayland-scanner-0.31.10/Cargo.toml	2026-06-09T05:41:34.378741+00:00
+@@ -51,10 +51,10 @@
+ version = "1.0.11"
+ 
+ [dependencies.quick-xml]
+-version = "0.39"
++version = "0.40"
+ 
+ [dependencies.quote]
+ version = "1.0"
+ 
+ [dev-dependencies.similar]
+-version = "2"
++version = "3"

                 reply	other threads:[~2026-06-09  9:33 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=178099760552.1.15491189614236915131.rpms-rust-wayland-scanner-7b7b4dd8b7ee@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