Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jun 2023 22:58:00 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 693496987a34 - main - net-im/telegram-desktop@qt6: Fix build with OpenSSL 3
Message-ID:  <202306082258.358Mw0Rk093477@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=693496987a340867e34119e5876547fd06527076

commit 693496987a340867e34119e5876547fd06527076
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-08 18:02:54 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-08 22:57:47 +0000

    net-im/telegram-desktop@qt6: Fix build with OpenSSL 3
---
 net-im/tg_owt/Makefile                                      |  1 +
 net-im/tg_owt/files/patch-src_rtc__base_openssl__adapter.cc | 12 ++++++++++++
 2 files changed, 13 insertions(+)

diff --git a/net-im/tg_owt/Makefile b/net-im/tg_owt/Makefile
index 08c61c8478c1..c83d4727b358 100644
--- a/net-im/tg_owt/Makefile
+++ b/net-im/tg_owt/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	tg_owt
 PORTVERSION=	0.0.20230501
+PORTREVISION=	1
 CATEGORIES=	net-im
 
 MAINTAINER=	ports@FreeBSD.org
diff --git a/net-im/tg_owt/files/patch-src_rtc__base_openssl__adapter.cc b/net-im/tg_owt/files/patch-src_rtc__base_openssl__adapter.cc
new file mode 100644
index 000000000000..0f4becf9578a
--- /dev/null
+++ b/net-im/tg_owt/files/patch-src_rtc__base_openssl__adapter.cc
@@ -0,0 +1,12 @@
+--- src/rtc_base/openssl_adapter.cc.orig	2023-06-08 13:40:19 UTC
++++ src/rtc_base/openssl_adapter.cc
+@@ -192,7 +192,9 @@ bool OpenSSLAdapter::InitializeSSL() {
+   // Loading the error strings crashes mac_asan.  Omit this debugging aid there.
+   SSL_load_error_strings();
+ #endif
++#if defined(OPENSSL_VERSION_MAJOR) && (OPENSSL_VERSION_MAJOR < 3)
+   ERR_load_BIO_strings();
++#endif
+   OpenSSL_add_all_algorithms();
+   RAND_poll();
+   return true;



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