public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jonathan Steffan <jsteffan@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-libpanel] rawhide: Change from sed to cargo metadata patch.
Date: Thu, 24 Sep 2026 15:49:53 GMT	[thread overview]
Message-ID: <179026499344.1.964488567054082062.rpms-rust-libpanel-3389e97faaff@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/rust-libpanel
            Branch : rawhide
            Commit : 3389e97faaff2b83aa2fb83e8cfbd697d047697e
            Author : Jonathan Steffan <jsteffan@fedoraproject.org>
            Date   : 2026-09-24T09:48:59-06:00
            Stats  : +26/-12 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/rust-libpanel/c/3389e97faaff2b83aa2fb83e8cfbd697d047697e?branch=rawhide

            Log:
            Change from sed to cargo metadata patch.

[skip changelog]

---
diff --git a/libpanel-fix-metadata.diff b/libpanel-fix-metadata.diff
new file mode 100644
index 0000000..a8e48d4
--- /dev/null
+++ b/libpanel-fix-metadata.diff
@@ -0,0 +1,24 @@
+--- libpanel-0.7.0/Cargo.toml	2006-07-24T01:21:28+00:00
++++ libpanel-0.7.0/Cargo.toml	2026-09-24T15:20:05.865451+00:00
+@@ -77,14 +77,6 @@
+ name = "libpanel"
+ path = "src/lib.rs"
+
+-[[bin]]
+-name = "main"
+-path = "examples/basic/main.rs"
+-
+-[[example]]
+-name = "basic"
+-path = "examples/basic/main.rs"
+-
+ [dependencies.adw]
+ version = "0.9"
+ package = "libadwaita"
+@@ -108,6 +100,7 @@
+ version = "0.22"
+
+ [dependencies.gtk]
++features = ["v4_10"]
+ version = "0.11"
+ package = "gtk4"

diff --git a/rust-libpanel.spec b/rust-libpanel.spec
index b629630..3eeeaaf 100644
--- a/rust-libpanel.spec
+++ b/rust-libpanel.spec
@@ -15,6 +15,8 @@ Summary:        Rust bindings for GNOME libpanel
 License:        MIT
 URL:            https://crates.io/crates/libpanel
 Source:         %{crates_source}
+# Manually created patch for downstream crate metadata changes
+Patch:          libpanel-fix-metadata.diff
 
 BuildRequires:  cargo-rpm-macros >= 26
 
@@ -175,12 +177,6 @@ use the "v1_8" feature of the "%{crate}" crate.
 # Remove examples until upstream moves them to the correct target
 # https://gitlab.gnome.org/World/Rust/libpanel-rs/-/issues/8
 rm -rf examples
-# Drop the [[bin]] and [[example]] targets that reference them
-sed -i '/^\[\[bin\]\]/,/^$/d; /^\[\[example\]\]/,/^$/d' Cargo.toml
-# Force on gtk4's v4_10 feature: the generated bindings use gtk::Accessible
-# unconditionally (e.g. src/auto/dock.rs), but gtk4-rs only exposes that type
-# behind its own v4_10 feature, which libpanel never enables on its own.
-sed -i '/^\[dependencies.gtk\]$/a features = ["v4_10"]' Cargo.toml
 
 %generate_buildrequires
 %cargo_generate_buildrequires

diff --git a/rust2rpm.toml b/rust2rpm.toml
index ed449d0..03d236c 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -8,10 +8,4 @@ post = [
   "# Remove examples until upstream moves them to the correct target",
   "# https://gitlab.gnome.org/World/Rust/libpanel-rs/-/issues/8",
   "rm -rf examples",
-  "# Drop the [[bin]] and [[example]] targets that reference them",
-  "sed -i '/^\\[\\[bin\\]\\]/,/^$/d; /^\\[\\[example\\]\\]/,/^$/d' Cargo.toml",
-  "# Force on gtk4's v4_10 feature: the generated bindings use gtk::Accessible",
-  "# unconditionally (e.g. src/auto/dock.rs), but gtk4-rs only exposes that type",
-  "# behind its own v4_10 feature, which libpanel never enables on its own.",
-  "sed -i '/^\\[dependencies.gtk\\]$/a features = [\"v4_10\"]' Cargo.toml",
 ]

                 reply	other threads:[~2026-09-24 15:49 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=179026499344.1.964488567054082062.rpms-rust-libpanel-3389e97faaff@fedoraproject.org \
    --to=jsteffan@fedoraproject.org \
    --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