diff --git a/main/rust/0005-lang-rust-Allow-build-with-LibreSSL-3.8.2.patch b/main/rust/0005-lang-rust-Allow-build-with-LibreSSL-3.8.2.patch index 0c9151299..3bcee3102 100644 --- a/main/rust/0005-lang-rust-Allow-build-with-LibreSSL-3.8.2.patch +++ b/main/rust/0005-lang-rust-Allow-build-with-LibreSSL-3.8.2.patch @@ -1,33 +1,29 @@ -diff -udprN /usr/ports/lang/rust/files/patch-libressl_fix ./files/patch-libressl_fix ---- /usr/ports/lang/rust/files/patch-libressl_fix 1970-01-01 00:00:00.000000000 +0000 -+++ ./files/patch-libressl_fix 2023-11-24 00:08:42.294496000 +0000 -@@ -0,0 +1,29 @@ -+--- vendor/openssl-sys/build/cfgs.rs.orig 2023-10-03 04:12:10 UTC -++++ vendor/openssl-sys/build/cfgs.rs -+@@ -53,6 +53,15 @@ pub fn get(openssl_version: Option, libressl_vers -+ if libressl_version >= 0x3_07_00_00_0 { -+ cfgs.push("libressl370"); -+ } -++ if libressl_version >= 0x3_08_00_00_0 { -++ cfgs.push("libressl380"); -++ } -++ if libressl_version >= 0x3_08_01_00_0 { -++ cfgs.push("libressl381"); -++ } -++ if libressl_version >= 0x3_08_02_00_0 { -++ cfgs.push("libressl382"); -++ } -+ } else { -+ let openssl_version = openssl_version.unwrap(); -+ -+--- vendor/openssl-sys/build/main.rs.orig 2023-10-03 04:12:10 UTC -++++ vendor/openssl-sys/build/main.rs -+@@ -274,6 +274,8 @@ See rust-openssl documentation for more information: -+ (3, 7, 1) => ('3', '7', '1'), -+ (3, 7, _) => ('3', '7', 'x'), -+ (3, 8, 0) => ('3', '8', '0'), -++ (3, 8, 1) => ('3', '8', '1'), -++ (3, 8, 2) => ('3', '8', '2'), -+ _ => version_error(), -+ }; -+ +--- ./vendor/openssl-sys/build/cfgs.rs.orig 2023-10-03 04:12:10 UTC ++++ ./vendor/openssl-sys/build/cfgs.rs +@@ -53,6 +53,15 @@ pub fn get(openssl_version: Option, libressl_vers + if libressl_version >= 0x3_07_00_00_0 { + cfgs.push("libressl370"); + } ++ if libressl_version >= 0x3_08_00_00_0 { ++ cfgs.push("libressl380"); ++ } ++ if libressl_version >= 0x3_08_01_00_0 { ++ cfgs.push("libressl381"); ++ } ++ if libressl_version >= 0x3_08_02_00_0 { ++ cfgs.push("libressl382"); ++ } + } else { + let openssl_version = openssl_version.unwrap(); + +--- ./vendor/openssl-sys/build/main.rs.orig 2023-10-03 04:12:10 UTC ++++ ./vendor/openssl-sys/build/main.rs +@@ -274,6 +274,8 @@ See rust-openssl documentation for more information: + (3, 7, 1) => ('3', '7', '1'), + (3, 7, _) => ('3', '7', 'x'), + (3, 8, 0) => ('3', '8', '0'), ++ (3, 8, 1) => ('3', '8', '1'), ++ (3, 8, 2) => ('3', '8', '2'), + _ => version_error(), + }; +