git: 2fee083cf6bb - main - devel/tabby: Unbreak build with libgit2 1.8.1

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Sat, 10 Aug 2024 12:13:25 UTC
The branch main has been updated by eduardo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2fee083cf6bb10b7e9456d0edf443afd026b25a4

commit 2fee083cf6bb10b7e9456d0edf443afd026b25a4
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2024-08-10 11:58:53 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2024-08-10 12:13:17 +0000

    devel/tabby: Unbreak build with libgit2 1.8.1
    
    PR:             280713
    Approved by:    portmgr (blanket, build fix)
---
 devel/tabby/files/patch-libgit2-1.8.x | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/devel/tabby/files/patch-libgit2-1.8.x b/devel/tabby/files/patch-libgit2-1.8.x
new file mode 100644
index 000000000000..b0ec8036a466
--- /dev/null
+++ b/devel/tabby/files/patch-libgit2-1.8.x
@@ -0,0 +1,13 @@
+https://github.com/rust-lang/git2-rs/commit/b534e13f38c6
+
+--- cargo-crates/libgit2-sys-0.16.2+1.7.2/build.rs.orig	2006-07-24 01:21:28 UTC
++++ cargo-crates/libgit2-sys-0.16.2+1.7.2/build.rs
+@@ -7,7 +7,7 @@ fn try_system_libgit2() -> Result<pkg_config::Library,
+ /// Tries to use system libgit2 and emits necessary build script instructions.
+ fn try_system_libgit2() -> Result<pkg_config::Library, pkg_config::Error> {
+     let mut cfg = pkg_config::Config::new();
+-    match cfg.range_version("1.7.2".."1.8.0").probe("libgit2") {
++    match cfg.range_version("1.7.2".."1.9.0").probe("libgit2") {
+         Ok(lib) => {
+             for include in &lib.include_paths {
+                 println!("cargo:root={}", include.display());