git: 9519fd2f9926 - main - devel/cargo-c: unbreak build after 2c68245ea1a7
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 14 Nov 2023 00:58:39 UTC
The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=9519fd2f9926ff5e7b007005170cbd7b8c8056af commit 9519fd2f9926ff5e7b007005170cbd7b8c8056af Author: Jan Beich <jbeich@FreeBSD.org> AuthorDate: 2023-11-13 14:37:45 +0000 Commit: Jan Beich <jbeich@FreeBSD.org> CommitDate: 2023-11-14 00:58:07 +0000 devel/cargo-c: unbreak build after 2c68245ea1a7 [libgit2-sys 0.15.2+1.6.4] The following warnings were emitted during compilation: warning: libgit2/src/libgit2/transports/ssh.c:11:10: fatal error: 'libssh2.h' file not found warning: #include <libssh2.h> warning: ^~~~~~~~~~~ warning: 1 error generated. --- devel/cargo-c/files/patch-libgit2 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/devel/cargo-c/files/patch-libgit2 b/devel/cargo-c/files/patch-libgit2 new file mode 100644 index 000000000000..94016bd208a8 --- /dev/null +++ b/devel/cargo-c/files/patch-libgit2 @@ -0,0 +1,13 @@ +https://github.com/rust-lang/git2-rs/commit/c69236c027b7 + +--- cargo-crates/libgit2-sys-0.15.2+1.6.4/build.rs.orig 2006-07-24 01:21:28 UTC ++++ cargo-crates/libgit2-sys-0.15.2+1.6.4/build.rs +@@ -14,7 +14,7 @@ fn main() { + let try_to_use_system_libgit2 = !vendored && !zlib_ng_compat; + if try_to_use_system_libgit2 { + let mut cfg = pkg_config::Config::new(); +- if let Ok(lib) = cfg.range_version("1.6.4".."1.7.0").probe("libgit2") { ++ if let Ok(lib) = cfg.range_version("1.6.4".."1.8.0").probe("libgit2") { + for include in &lib.include_paths { + println!("cargo:root={}", include.display()); + }