parent
1973930794
commit
4529bbabd6
@ -1,30 +1,38 @@
|
|||||||
From b5fcfdab05bbea12872e445517e16ec0e79f2803 Mon Sep 17 00:00:00 2001
|
From d887c34ce5ec0d3b4228cf0f88e970f586abc845 Mon Sep 17 00:00:00 2001
|
||||||
From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
|
From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
|
||||||
Date: Sun, 26 Nov 2017 12:22:51 +0100
|
Date: Sun, 26 Nov 2017 12:22:51 +0100
|
||||||
Subject: [PATCH] build.rs: always use pkg-config
|
Subject: [PATCH] build.rs: always use pkg-config
|
||||||
|
|
||||||
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
|
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
|
||||||
|
Signed-off-by: Josh Stone <jistone@redhat.com>
|
||||||
---
|
---
|
||||||
libgit2-sys/build.rs | 6 ++----
|
libgit2-sys/build.rs | 12 +++++-------
|
||||||
1 file changed, 2 insertions(+), 4 deletions(-)
|
1 file changed, 5 insertions(+), 7 deletions(-)
|
||||||
|
|
||||||
diff --git a/libgit2-sys/build.rs b/libgit2-sys/build.rs
|
diff --git a/libgit2-sys/build.rs b/libgit2-sys/build.rs
|
||||||
index 619472db287d..bc12a5976d4c 100644
|
index cc76cd46b3b3..45c6ed61280d 100644
|
||||||
--- a/libgit2-sys/build.rs
|
--- a/libgit2-sys/build.rs
|
||||||
+++ b/libgit2-sys/build.rs
|
+++ b/libgit2-sys/build.rs
|
||||||
@@ -11,10 +11,8 @@ fn main() {
|
@@ -10,14 +10,12 @@ fn main() {
|
||||||
|
let https = env::var("CARGO_FEATURE_HTTPS").is_ok();
|
||||||
let ssh = env::var("CARGO_FEATURE_SSH").is_ok();
|
let ssh = env::var("CARGO_FEATURE_SSH").is_ok();
|
||||||
let curl = env::var("CARGO_FEATURE_CURL").is_ok();
|
|
||||||
|
|
||||||
- if env::var("LIBGIT2_SYS_USE_PKG_CONFIG").is_ok() {
|
- if env::var("LIBGIT2_SYS_USE_PKG_CONFIG").is_ok() {
|
||||||
- if pkg_config::find_library("libgit2").is_ok() {
|
- let mut cfg = pkg_config::Config::new();
|
||||||
- return
|
- if let Ok(lib) = cfg.atleast_version("0.28.0").probe("libgit2") {
|
||||||
|
- for include in &lib.include_paths {
|
||||||
|
- println!("cargo:root={}", include.display());
|
||||||
- }
|
- }
|
||||||
+ if pkg_config::find_library("libgit2").is_ok() {
|
- return
|
||||||
|
+ let mut cfg = pkg_config::Config::new();
|
||||||
|
+ if let Ok(lib) = cfg.atleast_version("0.28.0").probe("libgit2") {
|
||||||
|
+ for include in &lib.include_paths {
|
||||||
|
+ println!("cargo:root={}", include.display());
|
||||||
|
}
|
||||||
+ return
|
+ return
|
||||||
}
|
}
|
||||||
|
|
||||||
if !Path::new("libgit2/.git").exists() {
|
if !Path::new("libgit2/.git").exists() {
|
||||||
--
|
--
|
||||||
2.17.1
|
2.21.0
|
||||||
|
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
diff --git a/libgit2-sys/lib.rs b/libgit2-sys/lib.rs
|
|
||||||
index 5d0e2972f57d..1e3aca85efcd 100644
|
|
||||||
--- a/libgit2-sys/lib.rs
|
|
||||||
+++ b/libgit2-sys/lib.rs
|
|
||||||
@@ -770,7 +770,7 @@ pub struct git_index_time {
|
|
||||||
pub struct git_config_entry {
|
|
||||||
pub name: *const c_char,
|
|
||||||
pub value: *const c_char,
|
|
||||||
- pub include_depth: c_uint,
|
|
||||||
+ // pub include_depth: c_uint,
|
|
||||||
pub level: git_config_level_t,
|
|
||||||
pub free: extern fn(*mut git_config_entry),
|
|
||||||
pub payload: *mut c_void,
|
|
@ -1 +1 @@
|
|||||||
SHA512 (libgit2-sys-0.7.11.crate) = 361aa7d75a029209f59c799e2f091f6ab8c0ba6a4677932537eea8e0198a36a2382327e8c5db98a2980f47b6a4baf07708720f128734081ac58e30d8721c3435
|
SHA512 (libgit2-sys-0.8.0.crate) = 0892697a330852840d4a77891cb2bfe9befe2f31438838f8c327045b2a253d7b343080bd2ea32d39ed9eebf3699d824f666f1a1d4e92ea75b4f2a165e30b3d84
|
||||||
|
Loading…
Reference in new issue