public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-onefetch-manifest] f44: Patch for cargo_toml 1.0
@ 2026-06-27 5:16 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-06-27 5:16 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rust-onefetch-manifest
Branch : f44
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=f44
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",
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-27 5:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-27 5:16 [rpms/rust-onefetch-manifest] f44: Patch for cargo_toml 1.0 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