Tweak lang/rust version 1.19.0_2
[dports.git] / lang / rust / dragonfly / patch-src_vendor_openssl-sys_build.rs
1 --- src/vendor/openssl-sys/build.rs.orig        2017-07-17 23:36:29 UTC
2 +++ src/vendor/openssl-sys/build.rs
3 @@ -240,8 +240,12 @@ fn validate_headers(include_dirs: &[Path
4  #include <openssl/opensslv.h>
5  #include <openssl/opensslconf.h>
6  
7 -#if LIBRESSL_VERSION_NUMBER >= 0x20505000
8 +#if LIBRESSL_VERSION_NUMBER >= 0x20601000
9  RUST_LIBRESSL_NEW
10 +#elif LIBRESSL_VERSION_NUMBER >= 0x20600000
11 +RUST_LIBRESSL_260
12 +#elif LIBRESSL_VERSION_NUMBER >= 0x20505000
13 +RUST_LIBRESSL_255
14  #elif LIBRESSL_VERSION_NUMBER >= 0x20504000
15  RUST_LIBRESSL_254
16  #elif LIBRESSL_VERSION_NUMBER >= 0x20503000
17 @@ -347,6 +351,18 @@ See rust-openssl README for more informa
18          println!("cargo:libressl=true");
19          println!("cargo:version=101");
20          Version::Libressl
21 +    } else if expanded.contains("RUST_LIBRESSL_255") {
22 +        println!("cargo:rustc-cfg=libressl");
23 +        println!("cargo:rustc-cfg=libressl255");
24 +        println!("cargo:libressl=true");
25 +        println!("cargo:version=101");
26 +        Version::Libressl
27 +    } else if expanded.contains("RUST_LIBRESSL_260") {
28 +        println!("cargo:rustc-cfg=libressl");
29 +        println!("cargo:rustc-cfg=libressl260");
30 +        println!("cargo:libressl=true");
31 +        println!("cargo:version=101");
32 +        Version::Libressl
33      } else if expanded.contains("RUST_OPENSSL_110") {
34          println!("cargo:rustc-cfg=ossl110");
35          println!("cargo:version=110");
36 @@ -363,7 +379,7 @@ See rust-openssl README for more informa
37          panic!("
38  
39  This crate is only compatible with OpenSSL 1.0.1, 1.0.2, and 1.1.0, or LibreSSL
40 -2.5.0, 2.5.1, 2.5.2, 2.5.3, and 2.5.4, but a different version of OpenSSL was
41 +2.5, and 2.6.0, but a different version of OpenSSL was
42  found. The build is now aborting due to this version mismatch.
43  
44  ");