Skip to content

Commit

Permalink
lang/rust: Fix build with LibreSSL 3.7.x
Browse files Browse the repository at this point in the history
PR:		266670
Obtained from:	OpenBSD Ports
  • Loading branch information
Tobias Kortkamp authored and Tobias Kortkamp committed Jun 30, 2023
1 parent c196075 commit 8bcbc1e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lang/rust/files/patch-vendor_openssl-sys_build_main.rs
Original file line number Diff line number Diff line change
@@ -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");

0 comments on commit 8bcbc1e

Please sign in to comment.