1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00

lang/rust: Fix build with LibreSSL 3.7.x

PR:		266670
Obtained from:	OpenBSD Ports
This commit is contained in:
Tobias Kortkamp 2023-06-30 11:49:34 +02:00
parent c19607502a
commit 8bcbc1e32c

View File

@ -0,0 +1,14 @@
LibreSSL >3.7.1 isn't explicitly supported.
Index: vendor/openssl-sys/build/main.rs
--- vendor/openssl-sys/build/main.rs.orig
+++ vendor/openssl-sys/build/main.rs
@@ -284,7 +284,7 @@ See rust-openssl documentation for more information:
(3, 6, _) => ('3', '6', 'x'),
(3, 7, 0) => ('3', '7', '0'),
(3, 7, 1) => ('3', '7', '1'),
- _ => version_error(),
+ _ => ('3', '7', '1'),
};
println!("cargo:libressl=true");