diff options
author | Tobias Kortkamp <tobik@FreeBSD.org> | 2023-06-30 11:49:34 +0200 |
---|---|---|
committer | Tobias Kortkamp <tobik@FreeBSD.org> | 2023-06-30 13:40:19 +0200 |
commit | 8bcbc1e32c6c141a4855f402ca06516b9c83d0a6 (patch) | |
tree | d00e9c002bfe6442ea0c9c9b459a5534f8cd5d33 | |
parent | c19607502ac1d9005c042c9f60cda7608eee3357 (diff) | |
download | freebsd-ports-8bcbc1e32c6c141a4855f402ca06516b9c83d0a6.zip |
lang/rust: Fix build with LibreSSL 3.7.x
PR: 266670
Obtained from: OpenBSD Ports
-rw-r--r-- | lang/rust/files/patch-vendor_openssl-sys_build_main.rs | 14 |
1 files changed, 14 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..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"); |