summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Urankar <mikael@FreeBSD.org>2020-10-28 13:41:33 +0000
committerMikael Urankar <mikael@FreeBSD.org>2020-10-28 13:41:33 +0000
commitd7c44bd2430f4957e09dddb54ef82d3129bfabe6 (patch)
treefeaa9cb3def3da2f6a46538eea86aed52bc076ac
parentwww/deno: Update to 1.5.0 (diff)
lang/rust: fix build with libressl-3.2.2
PR: 250589 Submitted by: John Kennedy <warlock@phouka.net>
-rw-r--r--lang/rust/files/patch-vendor_openssl-sys_build_main.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/lang/rust/files/patch-vendor_openssl-sys_build_main.rs b/lang/rust/files/patch-vendor_openssl-sys_build_main.rs
new file mode 100644
index 000000000000..2275f7902030
--- /dev/null
+++ b/lang/rust/files/patch-vendor_openssl-sys_build_main.rs
@@ -0,0 +1,19 @@
+--- vendor/openssl-sys/build/main.rs.ORIG 2020-10-07 02:33:31.000000000 -0700
++++ vendor/openssl-sys/build/main.rs 2020-10-23 20:45:37.047602000 -0700
+@@ -221,6 +221,7 @@
+ (3, 1, 0) => ('3', '1', '0'),
+ (3, 1, _) => ('3', '1', 'x'),
+ (3, 2, 0) => ('3', '2', '0'),
++ (3, 2, 2) => ('3', '2', '2'),
+ _ => version_error(),
+ };
+
+@@ -261,7 +262,7 @@
+ "
+
+ This crate is only compatible with OpenSSL 1.0.1 through 1.1.1, or LibreSSL 2.5
+-through 3.2.0, but a different version of OpenSSL was found. The build is now aborting
++through 3.2.2, but a different version of OpenSSL was found. The build is now aborting
+ due to this version mismatch.
+
+ "