|
|
@ -1,17 +1,17 @@
|
|
|
|
From b2a2a074e167993e5ece5219db410be24eea5cef Mon Sep 17 00:00:00 2001
|
|
|
|
From 9da92f6c0981aae2f4e6267e4a1cb4eaf0b92357 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Fabio Valentini <decathorpe@gmail.com>
|
|
|
|
From: Fabio Valentini <decathorpe@gmail.com>
|
|
|
|
Date: Mon, 29 May 2023 22:43:19 +0200
|
|
|
|
Date: Thu, 13 Jul 2023 13:53:24 +0200
|
|
|
|
Subject: [PATCH] build with vendored libgit2 unconditionally
|
|
|
|
Subject: [PATCH] build with vendored libgit2 unconditionally
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
---
|
|
|
|
build.rs | 18 ------------------
|
|
|
|
build.rs | 12 ------------
|
|
|
|
1 file changed, 18 deletions(-)
|
|
|
|
1 file changed, 12 deletions(-)
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/build.rs b/build.rs
|
|
|
|
diff --git a/build.rs b/build.rs
|
|
|
|
index e888b94..a3ea132 100644
|
|
|
|
index 24df572..7b551a7 100644
|
|
|
|
--- a/build.rs
|
|
|
|
--- a/build.rs
|
|
|
|
+++ b/build.rs
|
|
|
|
+++ b/build.rs
|
|
|
|
@@ -10,24 +10,6 @@ fn main() {
|
|
|
|
@@ -10,18 +10,6 @@ fn main() {
|
|
|
|
let vendored = env::var("CARGO_FEATURE_VENDORED").is_ok();
|
|
|
|
let vendored = env::var("CARGO_FEATURE_VENDORED").is_ok();
|
|
|
|
let zlib_ng_compat = env::var("CARGO_FEATURE_ZLIB_NG_COMPAT").is_ok();
|
|
|
|
let zlib_ng_compat = env::var("CARGO_FEATURE_ZLIB_NG_COMPAT").is_ok();
|
|
|
|
|
|
|
|
|
|
|
@ -19,13 +19,7 @@ index e888b94..a3ea132 100644
|
|
|
|
- let try_to_use_system_libgit2 = !vendored && !zlib_ng_compat;
|
|
|
|
- let try_to_use_system_libgit2 = !vendored && !zlib_ng_compat;
|
|
|
|
- if try_to_use_system_libgit2 {
|
|
|
|
- if try_to_use_system_libgit2 {
|
|
|
|
- let mut cfg = pkg_config::Config::new();
|
|
|
|
- let mut cfg = pkg_config::Config::new();
|
|
|
|
- // These version ranges specifically request a version that includes
|
|
|
|
- if let Ok(lib) = cfg.range_version("1.6.4".."1.7.0").probe("libgit2") {
|
|
|
|
- // the SSH fixes for CVE-2023-22742 (1.5.1+ or 1.4.5+).
|
|
|
|
|
|
|
|
- if let Ok(lib) = cfg
|
|
|
|
|
|
|
|
- .range_version("1.5.1".."1.6.0")
|
|
|
|
|
|
|
|
- .probe("libgit2")
|
|
|
|
|
|
|
|
- .or_else(|_| cfg.range_version("1.4.5".."1.5.0").probe("libgit2"))
|
|
|
|
|
|
|
|
- {
|
|
|
|
|
|
|
|
- for include in &lib.include_paths {
|
|
|
|
- for include in &lib.include_paths {
|
|
|
|
- println!("cargo:root={}", include.display());
|
|
|
|
- println!("cargo:root={}", include.display());
|
|
|
|
- }
|
|
|
|
- }
|
|
|
@ -37,5 +31,5 @@ index e888b94..a3ea132 100644
|
|
|
|
|
|
|
|
|
|
|
|
if !Path::new("libgit2/src").exists() {
|
|
|
|
if !Path::new("libgit2/src").exists() {
|
|
|
|
--
|
|
|
|
--
|
|
|
|
2.40.1
|
|
|
|
2.41.0
|
|
|
|
|
|
|
|
|
|
|
|