ports/lang/rust/files/patch-vendor_openssl-sys_build_main.rs
Tobias Kortkamp 237b36fa2e
lang/rust: Update to 1.57.0
- Unbreak build with LibreSSL 3.4.x [0]
- Disable backtrace's libunwind backend on armv* since it or
  libunwind in base seem to be buggy and cause rustc to crash when
  building some consumers [1]
- Follow rust-nightly in d5f09dc31f
  and reenable hardlinks in the build

Changes:	https://blog.rust-lang.org/2021/12/02/Rust-1.57.0.html
PR:		259738 [0]
PR:		259799 [1]
PR:		260140
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D33190
With hat:	rust
2021-12-05 13:35:41 +01:00

19 lines
742 B
Rust

--- vendor/openssl-sys/build/main.rs.orig 2021-11-29 20:27:34 UTC
+++ vendor/openssl-sys/build/main.rs
@@ -237,6 +237,7 @@ See rust-openssl README for more information:
(3, 3, 0) => ('3', '3', '0'),
(3, 3, 1) => ('3', '3', '1'),
(3, 3, _) => ('3', '3', 'x'),
+ (3, 4, _) => ('3', '4', 'x'),
_ => version_error(),
};
@@ -279,7 +280,7 @@ fn version_error() -> ! {
"
This crate is only compatible with OpenSSL 1.0.1 through 1.1.1, or LibreSSL 2.5
-through 3.3.x, but a different version of OpenSSL was found. The build is now aborting
+through 3.4.x, but a different version of OpenSSL was found. The build is now aborting
due to this version mismatch.
"