]> git.proxmox.com Git - cargo.git/blob - vendor/openssl-sys/debian/patches/disable-vendor.patch
New upstream version 0.47.0
[cargo.git] / vendor / openssl-sys / debian / patches / disable-vendor.patch
1 --- a/Cargo.toml
2 +++ b/Cargo.toml
3 @@ -31,14 +31,11 @@
4 [build-dependencies.cc]
5 version = "1.0"
6
7 -[build-dependencies.openssl-src]
8 -version = "111.0.1"
9 -optional = true
10 -
11 [build-dependencies.pkg-config]
12 version = "0.3.9"
13
14 [features]
15 vendored = ["openssl-src"]
16 +openssl-src = []
17 [target."cfg(target_env = \"msvc\")".build-dependencies.vcpkg]
18 version = "0.2.8"
19 --- a/build/main.rs
20 +++ b/build/main.rs
21 @@ -1,6 +1,6 @@
22 extern crate autocfg;
23 extern crate cc;
24 -#[cfg(feature = "vendored")]
25 +#[cfg(feature = "vendored_debian_disabled")]
26 extern crate openssl_src;
27 extern crate pkg_config;
28 #[cfg(target_env = "msvc")]
29 @@ -14,7 +14,7 @@
30 mod cfgs;
31
32 mod find_normal;
33 -#[cfg(feature = "vendored")]
34 +#[cfg(feature = "vendored_debian_disabled")]
35 mod find_vendored;
36
37 enum Version {
38 @@ -42,7 +42,7 @@
39 }
40
41 fn find_openssl(target: &str) -> (PathBuf, PathBuf) {
42 - #[cfg(feature = "vendored")]
43 + #[cfg(feature = "vendored_debian_disabled")]
44 {
45 // vendor if the feature is present, unless
46 // OPENSSL_NO_VENDOR exists and isn't `0`