-
Notifications
You must be signed in to change notification settings - Fork 727
/
patch-cargo-crates_openssl-sys-0.9.101_build_main.rs
34 lines (30 loc) · 1.53 KB
/
patch-cargo-crates_openssl-sys-0.9.101_build_main.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- cargo-crates/openssl-sys-0.9.101/build/main.rs.orig 2006-07-24 01:21:28 UTC
+++ cargo-crates/openssl-sys-0.9.101/build/main.rs
@@ -82,9 +82,11 @@ fn main() {
// rerun-if-changed causes openssl-sys to rebuild if the openssl include
// dir has changed since the last build. However, this causes a rebuild
// every time when vendoring so we disable it.
- #[cfg(not(feature = "vendored"))]
- if let Some(printable_include) = include_dir.join("openssl").to_str() {
- println!("cargo:rerun-if-changed={}", printable_include);
+ let potential_path = include_dir.join("openssl");
+ if potential_path.exists() && !cfg!(feature = "vendored") {
+ if let Some(printable_include) = potential_path.to_str() {
+ println!("cargo:rerun-if-changed={}", printable_include);
+ }
}
if !lib_dirs.iter().all(|p| p.exists()) {
@@ -300,6 +302,7 @@ See rust-openssl documentation for more information:
(3, 8, 0) => ('3', '8', '0'),
(3, 8, 1) => ('3', '8', '1'),
(3, 8, _) => ('3', '8', 'x'),
+ (3, 9, 0) => ('3', '9', '0'),
_ => version_error(),
};
@@ -342,7 +345,7 @@ This crate is only compatible with OpenSSL (version 1.
"
This crate is only compatible with OpenSSL (version 1.0.1 through 1.1.1, or 3), or LibreSSL 2.5
-through 3.8.1, but a different version of OpenSSL was found. The build is now aborting
+through 3.9.0, but a different version of OpenSSL was found. The build is now aborting
due to this version mismatch.
"