Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jun 2023 11:43:16 GMT
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 8bcbc1e32c6c - main - lang/rust: Fix build with LibreSSL 3.7.x
Message-ID:  <202306301143.35UBhGgK015940@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by tobik:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8bcbc1e32c6c141a4855f402ca06516b9c83d0a6

commit 8bcbc1e32c6c141a4855f402ca06516b9c83d0a6
Author:     Tobias Kortkamp <tobik@FreeBSD.org>
AuthorDate: 2023-06-30 09:49:34 +0000
Commit:     Tobias Kortkamp <tobik@FreeBSD.org>
CommitDate: 2023-06-30 11:40:19 +0000

    lang/rust: Fix build with LibreSSL 3.7.x
    
    PR:             266670
    Obtained from:  OpenBSD Ports
---
 lang/rust/files/patch-vendor_openssl-sys_build_main.rs | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

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");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306301143.35UBhGgK015940>