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-onefetch-manifest] epel10: Patch for cargo_toml 1.0
Date: Sat, 27 Jun 2026 05:15:55 GMT [thread overview]
Message-ID: <178253735590.1.5675120717350493286.rpms-rust-onefetch-manifest-1617d55fd068@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rust-onefetch-manifest
Branch : epel10
Commit : 1617d55fd068c4b6e2655836de1fb1fb2af5c776
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-06-26T23:08:02+01:00
Stats : +54/-3 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/rust-onefetch-manifest/c/1617d55fd068c4b6e2655836de1fb1fb2af5c776?branch=epel10
Log:
Patch for cargo_toml 1.0
---
diff --git a/onefetch-manifest-2.27.1-cargo_toml1.patch b/onefetch-manifest-2.27.1-cargo_toml1.patch
new file mode 100644
index 0000000..9055e64
--- /dev/null
+++ b/onefetch-manifest-2.27.1-cargo_toml1.patch
@@ -0,0 +1,13 @@
+diff --git a/src/lib.rs b/src/lib.rs
+index f8b9c91b0..9917acd4e 100644
+--- a/src/lib.rs
++++ b/src/lib.rs
+@@ -53,7 +53,7 @@ fn parse_cargo_manifest(path: &Path) -> Result<Manifest> {
+ number_of_dependencies: m.dependencies.len(),
+ name: Some(package.name.clone()),
+ description,
+- version: Some(package.version().into()),
++ version: Some(package.version().to_string()),
+ license: package.license().map(Into::into),
+ })
+ }
diff --git a/onefetch-manifest-fix-metadata.diff b/onefetch-manifest-fix-metadata.diff
new file mode 100644
index 0000000..dc24af1
--- /dev/null
+++ b/onefetch-manifest-fix-metadata.diff
@@ -0,0 +1,11 @@
+--- onefetch-manifest-2.27.1/Cargo.toml 2006-07-24T01:21:28+00:00
++++ onefetch-manifest-2.27.1/Cargo.toml 2026-06-26T22:06:16.256357+00:00
+@@ -41,7 +41,7 @@
+ version = "1.0.101"
+
+ [dependencies.cargo_toml]
+-version = "0.22.3"
++version = "1.0.0"
+
+ [dependencies.serde]
+ version = "1.0.228"
diff --git a/rust-onefetch-manifest.spec b/rust-onefetch-manifest.spec
index 205cdd5..005d4c3 100644
--- a/rust-onefetch-manifest.spec
+++ b/rust-onefetch-manifest.spec
@@ -12,6 +12,14 @@ Summary: Detect and parse manifest files
License: MIT
URL: https://crates.io/crates/onefetch-manifest
Source: %{crates_source}
+# Manually created patch for downstream crate metadata changes
+# * Update cargo_toml dependency to 1.0.0:
+# https://github.com/o2sh/onefetch/pull/1785; requires an accompanying
+# source-code patch
+Patch: onefetch-manifest-fix-metadata.diff
+# * Source-code patch for cargo_toml 1.0.0, from
+# https://github.com/o2sh/onefetch/pull/1785
+Patch10: onefetch-manifest-2.27.1-cargo_toml1.patch
BuildRequires: cargo-rpm-macros >= 24
diff --git a/rust2rpm.toml b/rust2rpm.toml
index ec3f601..2653d9d 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -1,9 +1,28 @@
+[package]
+cargo-toml-patch-comments = [
+ """\
+Update cargo_toml dependency to 1.0.0: \
+https://github.com/o2sh/onefetch/pull/1785; \
+requires an accompanying source-code patch\
+""",
+]
+
+[[package.extra-patches]]
+number = 10
+file = "onefetch-manifest-2.27.1-cargo_toml1.patch"
+comments = [
+ """\
+Source-code patch for cargo_toml 1.0.0, from \
+https://github.com/o2sh/onefetch/pull/1785\
+""",
+]
+
[tests]
comments = [
"""\
- Since tests/fixtures/cargo/ is not included in the released crate, we \
- cannot run tests that require it.\
- """,
+Since tests/fixtures/cargo/ is not included in the released crate, we \
+cannot run tests that require it.\
+""",
]
skip = [
"should_detect_and_parse_cargo_manifest",
reply other threads:[~2026-06-27 5:15 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=178253735590.1.5675120717350493286.rpms-rust-onefetch-manifest-1617d55fd068@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