public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-onefetch] rawhide: Update to version 3.0.0; Fixes RHBZ#2547240
@ 2026-10-08 16:36 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-10-08 16:36 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rust-onefetch
Branch : rawhide
Commit : 51ca1582198471735ea1c99dab4b6296b99cd865
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-10-08T17:35:49+01:00
Stats : +52/-36 in 6 file(s)
URL : https://src.fedoraproject.org/rpms/rust-onefetch/c/51ca1582198471735ea1c99dab4b6296b99cd865?branch=rawhide
Log:
Update to version 3.0.0; Fixes RHBZ#2547240
---
diff --git a/0001-Revert-chore-deps-Update-Rust-crate-gix-to-0.86.0-18.patch b/0001-Revert-chore-deps-Update-Rust-crate-gix-to-0.86.0-18.patch
index e4585d7..18acd87 100644
--- a/0001-Revert-chore-deps-Update-Rust-crate-gix-to-0.86.0-18.patch
+++ b/0001-Revert-chore-deps-Update-Rust-crate-gix-to-0.86.0-18.patch
@@ -1,18 +1,18 @@
-From 5eaab9f257434ca710700a8ce0cffa9c65e2bb41 Mon Sep 17 00:00:00 2001
+From 4fde520c5d18217875b9c3e523db7dff2c8560b7 Mon Sep 17 00:00:00 2001
From: "Benjamin A. Beasley" <code@musicinmybrain.net>
Date: Wed, 2 Sep 2026 11:45:37 +0100
Subject: [PATCH] Revert "chore(deps): Update Rust crate gix to 0.86.0 (#1838)"
This reverts commit f43b0cb3ad4076974e942b54751ee462ce2a6ca5.
---
- src/info/project.rs | 2 +-
+ src/info/fields/project.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
-diff --git a/src/info/project.rs b/src/info/project.rs
-index a7bb71b..56274fd 100644
---- a/src/info/project.rs
-+++ b/src/info/project.rs
-@@ -40,7 +40,7 @@ fn get_repo_name(repo_url: &str, manifest: Option<&Manifest>) -> Result<String>
+diff --git a/src/info/fields/project.rs b/src/info/fields/project.rs
+index d947291..632a0ca 100644
+--- a/src/info/fields/project.rs
++++ b/src/info/fields/project.rs
+@@ -31,7 +31,7 @@ fn get_repo_name(repo_url: &str, manifest: Option<&Manifest>) -> Result<String>
if repo_url.is_empty() {
return Ok(String::default());
}
diff --git a/onefetch-fix-metadata-auto.diff b/onefetch-fix-metadata-auto.diff
index 70e08ec..a2a56be 100644
--- a/onefetch-fix-metadata-auto.diff
+++ b/onefetch-fix-metadata-auto.diff
@@ -1,7 +1,7 @@
---- onefetch-2.28.1/Cargo.toml 2006-07-24T01:21:28+00:00
-+++ onefetch-2.28.1/Cargo.toml 2026-10-07T13:36:45.955815+00:00
-@@ -193,8 +193,3 @@
- version = "2.3.0"
+--- onefetch-3.0.0/Cargo.toml 2006-07-24T01:21:28+00:00
++++ onefetch-3.0.0/Cargo.toml 2026-10-08T13:55:08.027197+00:00
+@@ -194,8 +194,3 @@
+ version = "2.4.0"
default-features = false
-[target."cfg(windows)".dependencies.enable-ansi-support]
diff --git a/onefetch-fix-metadata.diff b/onefetch-fix-metadata.diff
index 7cd92a3..557447e 100644
--- a/onefetch-fix-metadata.diff
+++ b/onefetch-fix-metadata.diff
@@ -1,5 +1,5 @@
---- onefetch-2.28.1/Cargo.toml 2006-07-24T01:21:28+00:00
-+++ onefetch-2.28.1/Cargo.toml 2026-10-07T13:36:45.957165+00:00
+--- onefetch-3.0.0/Cargo.toml 2006-07-24T01:21:28+00:00
++++ onefetch-3.0.0/Cargo.toml 2026-10-08T13:55:12.095390+00:00
@@ -69,10 +69,6 @@
name = "onefetch"
path = "src/main.rs"
@@ -12,29 +12,41 @@
name = "repo"
path = "benches/repo.rs"
@@ -95,7 +91,7 @@
- version = "4.6.9"
+ version = "4.6.11"
[dependencies.gix]
--version = "0.87.1"
+-version = "0.88.0"
+version = "0.85"
features = [
"max-performance-safe",
"blob-diff",
-@@ -156,16 +152,10 @@
- features = ["time"]
-
- [dependencies.tokei]
--version = "14.0.0"
-+version = "15.0.0"
+@@ -103,7 +99,6 @@
+ "index",
+ "status",
+ "sha1",
+- "anyhow",
+ ]
+ default-features = false
+@@ -162,12 +157,6 @@
[dependencies.typetag]
version = "0.2.23"
--
+
-[dev-dependencies.criterion]
-version = "0.8.2"
-
-[dev-dependencies.gix-testtools]
--version = "0.20.0"
-
+-version = "0.21.0"
+-
[dev-dependencies.insta]
- version = "1.48.0"
+ version = "1.49.0"
+ features = [
+@@ -176,7 +165,7 @@
+ ]
+
+ [dev-dependencies.rstest]
+-version = "0.27.0"
++version = ">=0.26.0, <0.28.0"
+
+ [build-dependencies.lazy_static]
+ version = "1.5.1"
diff --git a/rust-onefetch.spec b/rust-onefetch.spec
index 6c15f58..269674c 100644
--- a/rust-onefetch.spec
+++ b/rust-onefetch.spec
@@ -7,7 +7,7 @@
%global crate onefetch
Name: rust-onefetch
-Version: 2.28.1
+Version: 3.0.0
Release: %autorelease
Summary: Command-line Git information tool
@@ -18,18 +18,20 @@ Source: %{crates_source}
Patch: onefetch-fix-metadata-auto.diff
# Manually created patch for downstream crate metadata changes
# * Do not depend on criterion; it is needed only for benchmarks
-# * Use older gix 0.85 (upstream wants 0.87):
+# * Use older gix 0.85 (upstream wants 0.88):
# https://bugzilla.redhat.com/show_bug.cgi?id=2506441. We must carry a
# downstream patch reverting the source-code change from
# https://github.com/o2sh/onefetch/commit/f43b0cb3ad4076974e942b54751ee462ce2a6ca5;
-# this patch must be removed when we are ready to update to gix 0.86+.
+# this patch must be removed when we are ready to update to gix 0.86+. Note
+# that we also must drop the dependency on the anyhow feature, introduced in
+# gix 0.88.
# * Patch out tests/repo.rs, which requires gix-testtools, and remove the
# dev-dependency on gix-testtools. In theory, we could package gix-testtools,
# but the maintainer of the gix stack in Fedora does not intend to do so,
# reasonably citing upstream discouragement in
# https://github.com/Byron/gitoxide/discussions/900.
-# * chore(deps): Update tokei to version 15:
-# https://github.com/o2sh/onefetch/pull/1862
+# * Allow older rstest 0.26 for now,
+# https://bugzilla.redhat.com/show_bug.cgi?id=2529211
Patch: onefetch-fix-metadata.diff
# * Downstream-only: revert the source-code change for gix 0.86+ so we can
# temporarily keep using gix 0.85.
diff --git a/rust2rpm.toml b/rust2rpm.toml
index d58d398..ddd7a87 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -2,11 +2,13 @@
cargo-toml-patch-comments = [
"Do not depend on criterion; it is needed only for benchmarks",
"""\
-Use older gix 0.85 (upstream wants 0.87): \
+Use older gix 0.85 (upstream wants 0.88): \
https://bugzilla.redhat.com/show_bug.cgi?id=2506441. We must carry a \
downstream patch reverting the source-code change from \
https://github.com/o2sh/onefetch/commit/f43b0cb3ad4076974e942b54751ee462ce2a6ca5; \
-this patch must be removed when we are ready to update to gix 0.86+.\
+this patch must be removed when we are ready to update to gix 0.86+. \
+Note that we also must drop the dependency on the anyhow feature, introduced in \
+gix 0.88.\
""",
"""\
Patch out tests/repo.rs, which requires gix-testtools, and remove the \
@@ -16,8 +18,8 @@ citing upstream discouragement in \
https://github.com/Byron/gitoxide/discussions/900.\
""",
"""\
-chore(deps): Update tokei to version 15: \
-https://github.com/o2sh/onefetch/pull/1862\
+Allow older rstest 0.26 for now, \
+https://bugzilla.redhat.com/show_bug.cgi?id=2529211\
""",
]
license-files.exclude = [
@@ -42,7 +44,7 @@ number = 10
file = "0001-Revert-chore-deps-Update-Rust-crate-gix-to-0.86.0-18.patch"
comments = [
"""\
-Downstream-only: revert the source-code change for gix 0.86+ so we can
+Downstream-only: revert the source-code change for gix 0.86+ so we can \
temporarily keep using gix 0.85.\
""",
]
diff --git a/sources b/sources
index 2be190e..f612083 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (onefetch-2.28.1.crate) = 7e997d2c26b291af22ca3cd8189f96d0780deb5b5ab2e31ff63f92471c9f3697992401f5b26b9a2931b02a7c75d8c918e8308d8706a94277a2c3f7962f269cdf
+SHA512 (onefetch-3.0.0.crate) = 3417a077acc4264c047cbc4309ddefa01ddc910954fb15a332540b5ccacf0d12abfa0be7b6c99998852a632f08c89088821720246740ccd13f3383821b64c2b1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-08 16:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-08 16:36 [rpms/rust-onefetch] rawhide: Update to version 3.0.0; Fixes RHBZ#2547240 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