public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-libpanel] rawhide: Change from sed to cargo metadata patch.
@ 2026-09-24 15:49 Jonathan Steffan
0 siblings, 0 replies; only message in thread
From: Jonathan Steffan @ 2026-09-24 15:49 UTC (permalink / raw)
To: git-commits
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",
]
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-24 15:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-24 15:49 [rpms/rust-libpanel] rawhide: Change from sed to cargo metadata patch Jonathan Steffan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox