git: 5f5b91ee5935 - main - devel/cargo-udeps: Unbreak build with libgit2 1.8.1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 10 Aug 2024 11:24:36 UTC
The branch main has been updated by eduardo:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5f5b91ee59357a21dba3204c7d08abd8592a2ce1
commit 5f5b91ee59357a21dba3204c7d08abd8592a2ce1
Author: Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2024-08-10 11:08:40 +0000
Commit: Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2024-08-10 11:08:40 +0000
devel/cargo-udeps: Unbreak build with libgit2 1.8.1
PR: 280707
Approved by: portmgr (blanket, build fix)
---
devel/cargo-udeps/files/patch-libgit2-1.8.x | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/devel/cargo-udeps/files/patch-libgit2-1.8.x b/devel/cargo-udeps/files/patch-libgit2-1.8.x
new file mode 100644
index 000000000000..b0ec8036a466
--- /dev/null
+++ b/devel/cargo-udeps/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());