Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
security/sequoia-sq: update openssl crates + enable LibreSSL 3.9.0
- Loading branch information
Showing
3 changed files
with
41 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
security/sequoia-sq/files/patch-cargo-crates_openssl-sys-0.9.101_build_main.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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. | ||
" |