]> git.proxmox.com Git - cargo.git/blob - vendor/curl-sys/debian/patches/disable-vendor.patch
New upstream version 0.52.0
[cargo.git] / vendor / curl-sys / debian / patches / disable-vendor.patch
1 Index: curl-sys/Cargo.toml
2 ===================================================================
3 --- curl-sys.orig/Cargo.toml
4 +++ curl-sys/Cargo.toml
5 @@ -51,7 +51,7 @@ protocol-ftp = []
6 spnego = []
7 ssl = ["openssl-sys"]
8 static-curl = []
9 -static-ssl = ["openssl-sys/vendored"]
10 +static-ssl = ["openssl-sys"]
11 upkeep_7_62_0 = []
12 zlib-ng-compat = ["libz-sys/zlib-ng", "static-curl"]
13 [target."cfg(all(unix, not(target_os = \"macos\")))".dependencies.openssl-sys]
14 Index: curl-sys/build.rs
15 ===================================================================
16 --- curl-sys.orig/build.rs
17 +++ curl-sys/build.rs
18 @@ -27,8 +27,9 @@ fn main() {
19 return println!("cargo:rustc-flags=-l curl");
20 }
21
22 - // If the static-curl feature is disabled, probe for a system-wide libcurl.
23 - if !cfg!(feature = "static-curl") {
24 + // On Debian, always probe for a system-wide libcurl even when linking statically
25 + if true {
26 + if cfg!(feature = "static-curl") { println!("cargo:static=1"); }
27 // OSX ships libcurl by default, so we just use that version
28 // so long as it has the right features enabled.
29 if target.contains("apple") && (!cfg!(feature = "http2") || curl_config_reports_http2()) {