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..f6d42f920789 --- /dev/null +++ b/lang/rust/files/patch-vendor_openssl-sys_build_main.rs @@ -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");