public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-git2] rawhide: Update to version 0.21.0; Fixes RHBZ#2479621
@ 2026-06-19 11:38 Fabio Valentini
0 siblings, 0 replies; only message in thread
From: Fabio Valentini @ 2026-06-19 11:38 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rust-git2
Branch : rawhide
Commit : a32b5e4992a053e0b361643664440d39748ad058
Author : Fabio Valentini <decathorpe@gmail.com>
Date : 2026-06-18T19:52:39+02:00
Stats : +72/-2 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/rust-git2/c/a32b5e4992a053e0b361643664440d39748ad058?branch=rawhide
Log:
Update to version 0.21.0; Fixes RHBZ#2479621
---
diff --git a/.gitignore b/.gitignore
index bf83ef4..2beeec5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -41,3 +41,4 @@
/git2-0.20.2.crate
/git2-0.20.3.crate
/git2-0.20.4.crate
+/git2-0.21.0.crate
diff --git a/0001-Adapt-tests-for-relativeworktrees-extension-added-in.patch b/0001-Adapt-tests-for-relativeworktrees-extension-added-in.patch
new file mode 100644
index 0000000..382deb2
--- /dev/null
+++ b/0001-Adapt-tests-for-relativeworktrees-extension-added-in.patch
@@ -0,0 +1,53 @@
+From 243230c17a52f84457121c7339f4d31bb00f1a30 Mon Sep 17 00:00:00 2001
+From: Fabio Valentini <decathorpe@gmail.com>
+Date: Thu, 18 Jun 2026 19:45:23 +0200
+Subject: [PATCH] Adapt tests for relativeworktrees extension added in libgit2
+ v1.9.4
+
+---
+ tests/add_extensions.rs | 2 ++
+ tests/get_extensions.rs | 2 ++
+ tests/remove_extensions.rs | 1 +
+ 3 files changed, 5 insertions(+)
+
+diff --git a/tests/add_extensions.rs b/tests/add_extensions.rs
+index 3cafa60..bf14a25 100644
+--- a/tests/add_extensions.rs
++++ b/tests/add_extensions.rs
+@@ -22,6 +22,8 @@ fn test_add_extensions() -> Result<(), Error> {
+ Some("objectformat"),
+ // The preciousobjects extension was added in 1.9
+ Some("preciousobjects"),
++ // The relativeworktrees extension was added in 1.9.4
++ Some("relativeworktrees"),
+ // The worktreeconfig extension was added in 1.8
+ Some("worktreeconfig")
+ ]
+diff --git a/tests/get_extensions.rs b/tests/get_extensions.rs
+index db8e456..731d987 100644
+--- a/tests/get_extensions.rs
++++ b/tests/get_extensions.rs
+@@ -17,6 +17,8 @@ fn test_get_extensions() -> Result<(), Error> {
+ Some("objectformat"),
+ // The preciousobjects extension was added in 1.9
+ Some("preciousobjects"),
++ // The relativeworktrees extension was added in 1.9.4
++ Some("relativeworktrees"),
+ // The worktreeconfig extension was added in 1.8
+ Some("worktreeconfig")
+ ]
+diff --git a/tests/remove_extensions.rs b/tests/remove_extensions.rs
+index 5a3e21d..422cdf6 100644
+--- a/tests/remove_extensions.rs
++++ b/tests/remove_extensions.rs
+@@ -12,6 +12,7 @@ fn test_remove_extensions() -> Result<(), Error> {
+ "!noop",
+ "!objectformat",
+ "!preciousobjects",
++ "!relativeworktrees",
+ "!worktreeconfig",
+ "other",
+ ])?;
+--
+2.54.0
+
diff --git a/rust-git2.spec b/rust-git2.spec
index c9ef8bc..c156ec4 100644
--- a/rust-git2.spec
+++ b/rust-git2.spec
@@ -5,7 +5,7 @@
%global crate git2
Name: rust-git2
-Version: 0.20.4
+Version: 0.21.0
Release: %autorelease
Summary: Bindings to libgit2 for interoperating with git repositories
@@ -13,6 +13,9 @@ License: MIT OR Apache-2.0
URL: https://crates.io/crates/git2
Source: %{crates_source}
+# https://github.com/rust-lang/git2-rs/commit/6abfb6d
+Patch: 0001-Adapt-tests-for-relativeworktrees-extension-added-in.patch
+
BuildRequires: cargo-rpm-macros >= 24
%if %{with check}
BuildRequires: /usr/bin/git
@@ -54,6 +57,18 @@ use the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{crate_instdir}/Cargo.toml
+%package -n %{name}+cred-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+cred-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "cred" feature of the "%{crate}" crate.
+
+%files -n %{name}+cred-devel
+%ghost %{crate_instdir}/Cargo.toml
+
%package -n %{name}+https-devel
Summary: %{summary}
BuildArch: noarch
diff --git a/rust2rpm.toml b/rust2rpm.toml
index 155eb4a..f3f639e 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -1,5 +1,6 @@
[features]
hide = [
+ "unstable-sha256",
"vendored-libgit2",
"vendored-openssl",
"zlib-ng-compat",
diff --git a/sources b/sources
index b2f2fbe..830fe7b 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (git2-0.20.4.crate) = 774dd42e73924aa6a7f21c58dd35b1da93b3a51a5776d0d1e2f20488cf23795beee8c8d9e3bbd9fb82737c7cc9a74894d25fde03dec0bf092643ae0f0ba47aed
+SHA512 (git2-0.21.0.crate) = c105b5a05ab3a0a291a30fdc627ac3b72196b93cadb91c62ae5395d2f469517fbcd32954972d62691590d3cad6a8aa5fc514ca966cc0ad2225d04fb5a53dfd26
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-19 11:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-19 11:38 [rpms/rust-git2] rawhide: Update to version 0.21.0; Fixes RHBZ#2479621 Fabio Valentini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox