On Tue, 17 Nov 2026 14:38:48 +0000
Klemens Nanni <[email protected]> wrote:
> 14 ноября 2026 г. 21:21:49 GMT+03:00, Nazarenko Mykyta
> <[email protected]> пишет:
> >Hola ports@, kn@.
> >
> >Diff attached.
> >
> >With best regards,
> >Nazarenko Mykyta
>
> Please restore my patch comments you deleted.
>
> I'd also appreciate comments in the patches you add wrt. what they fix.
>
> Deps should be sorted.
>
> Then we can get this in today.
Done. Thanks kn@. Diff attached.
With best regards,
Nazarenko Mykyta
Index: Makefile
===================================================================
RCS file: /cvs/ports/net/tdesktop/Makefile,v
diff -u -r1.233 Makefile
--- Makefile 24 Sep 2026 14:02:56 -0000 1.233
+++ Makefile 17 Nov 2026 21:35:31 -0000
@@ -5,7 +5,7 @@
COMMENT = Telegram Desktop messenger
PORTROACH = limit:-full$$
-V = 7.2.9
+V = 7.4.4
DISTNAME = tdesktop-${V}-full
PKGNAME = ${DISTNAME:-full=}
CATEGORIES = net
@@ -36,7 +36,7 @@
WANTLIB += dispatch fido2 fontconfig gio-2.0 glib-2.0 gobject-2.0
WANTLIB += hunspell-1.7 jpeg lz4 m minizip openal pango-1.0 pangocairo-1.0
WANTLIB += pangoft2-1.0 qrcodegencpp rnnoise swresample swscale
-WANTLIB += tg_owt tlottie xxhash z
+WANTLIB += tg_owt tlottie wallet_engine xxhash z
# dlopen()ed
WANTLIB += webkitgtk-6.0 xcb xcb-keysyms xcb-record xcb-screensaver
@@ -56,6 +56,7 @@
devel/protobuf \
devel/range-v3>=0.11.0p0 \
devel/tl-expected \
+ devel/wallet-engine \
net/tdlib/tde2e \
x11/qt6/qtshadertools
@@ -68,6 +69,7 @@
devel/kf6/kcoreaddons \
devel/libdispatch \
devel/pango \
+ devel/wallet-engine \
graphics/ffmpeg>=8.1.1p0v1 \
graphics/jpeg \
graphics/qr-code-generator>=1.7.0p1 \
@@ -103,7 +105,7 @@
NO_TEST = Yes
# unported and required
-NEEDED_BUNDLES = cld3 libprisma tgcalls MicroTeX cmark-gfm
+NEEDED_BUNDLES = cld3 libprisma tgcalls twidget widget-sandbox MicroTeX cmark-gfm zxcvbn
# ported but CMake code hardcodes bundled file paths
NEEDED_BUNDLES += xdg-desktop-portal
Index: distinfo
===================================================================
RCS file: /cvs/ports/net/tdesktop/distinfo,v
diff -u -r1.171 distinfo
--- distinfo 24 Sep 2026 14:02:56 -0000 1.171
+++ distinfo 17 Nov 2026 21:35:31 -0000
@@ -1,2 +1,2 @@
-SHA256 (tdesktop-7.2.9-full.tar.gz) = 3PLiXE6KqWHCQ5MSFk1CQIr6ATDonzHne1VAmoDalCo=
-SIZE (tdesktop-7.2.9-full.tar.gz) = 73847391
+SHA256 (tdesktop-7.4.4-full.tar.gz) = tWOzo1pVifcPMXKXqo3E8Z2gZcOTw65mOuEYQbWrCJE=
+SIZE (tdesktop-7.4.4-full.tar.gz) = 93345246
Index: patches/patch-Telegram_SourceFiles_storage_details_storage_file_utilities_cpp
===================================================================
RCS file: patches/patch-Telegram_SourceFiles_storage_details_storage_file_utilities_cpp
diff -N patches/patch-Telegram_SourceFiles_storage_details_storage_file_utilities_cpp
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-Telegram_SourceFiles_storage_details_storage_file_utilities_cpp 17 Nov 2026 21:35:31 -0000
@@ -0,0 +1,44 @@
+--- Telegram/SourceFiles/storage/details/storage_file_utilities.cpp.orig Sat Nov 14 16:21:20 2026
++++ Telegram/SourceFiles/storage/details/storage_file_utilities.cpp Sat Nov 14 16:38:03 2026
+`<openssl/core_names.h>` and `<openssl/params.h>` are missing in LibreSSL.
+Also, we don't have built-in scrypt, make a stub for this code-path.
+
+@@ -14,10 +14,8 @@
+ #include "base/random.h"
+
+ #include <crl/crl_object_on_thread.h>
+-#include <openssl/core_names.h>
+ #include <openssl/kdf.h>
+ #include <openssl/opensslv.h>
+-#include <openssl/params.h>
+ #include <QtCore/QtEndian>
+ #include <QtCore/QSaveFile>
+
+@@ -64,6 +62,8 @@
+ constexpr auto kPasscodeScryptP = quint32(1);
+ constexpr auto kPasscodeScryptMaxMem = quint64(192) * 1024 * 1024;
+ #if OPENSSL_VERSION_NUMBER >= 0x30200000L
++#include <openssl/core_names.h>
++#include <openssl/params.h>
+ constexpr auto kPasscodeArgon2Name = "ARGON2ID";
+ #endif // OPENSSL_VERSION_NUMBER >= 0x30200000L
+
+@@ -596,6 +596,10 @@
+ LOG(("App Error: Argon2id is not available."));
+ return nullptr;
+ #endif // OPENSSL_VERSION_NUMBER < 0x30200000L
++#ifdef OPENSSL_NO_SCRYPT
++ LOG(("App Error: Scrypt is not available"));
++ return nullptr;
++#else
+ } else if (kdf.kind == kPasscodeKdfScrypt) {
+ if (!EVP_PBE_scrypt(
+ passcode.constData(),
+@@ -612,6 +616,7 @@
+ return nullptr;
+ }
+ } else {
++#endif
+ LOG(("App Error: Unknown passcode KDF family."));
+ return nullptr;
+ }
Index: patches/patch-Telegram_ThirdParty-widget-sandbox_packages_desktop_sandbox_include_twidget_json_h
===================================================================
RCS file: patches/patch-Telegram_ThirdParty-widget-sandbox_packages_desktop_sandbox_include_twidget_json_h
diff -N patches/patch-Telegram_ThirdParty-widget-sandbox_packages_desktop_sandbox_include_twidget_json_h
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-Telegram_ThirdParty-widget-sandbox_packages_desktop_sandbox_include_twidget_json_h 17 Nov 2026 21:35:31 -0000
@@ -0,0 +1,13 @@
+--- Telegram/ThirdParty/widget-sandbox/packages/desktop/sandbox/include/twidget/json.h.orig Sat Nov 14 18:25:43 2026
++++ Telegram/ThirdParty/widget-sandbox/packages/desktop/sandbox/include/twidget/json.h Sat Nov 14 15:23:02 2026
+use strtod() on OpenBSD, strtod_l() is missing
+
+@@ -172,6 +179,8 @@
+ return _strtod_l(text, nullptr, c);
+ #elif defined(__ANDROID__)
+ return std::strtod(text, nullptr); // bionic: LC_NUMERIC is always "C"
++#elif defined(__OpenBSD__)
++ return strtod(text, nullptr);
+ #else
+ static const locale_t c = newlocale(LC_NUMERIC_MASK, "C", (locale_t)0);
+ return strtod_l(text, nullptr, c);
Index: patches/patch-Telegram_lib_base_base_platform_linux_base_linux_xcb_utilities_cpp
===================================================================
RCS file: /cvs/ports/net/tdesktop/patches/patch-Telegram_lib_base_base_platform_linux_base_linux_xcb_utilities_cpp,v
diff -u -r1.3 patch-Telegram_lib_base_base_platform_linux_base_linux_xcb_utilities_cpp
--- patches/patch-Telegram_lib_base_base_platform_linux_base_linux_xcb_utilities_cpp 31 Jul 2026 11:50:44 -0000 1.3
+++ patches/patch-Telegram_lib_base_base_platform_linux_base_linux_xcb_utilities_cpp 17 Nov 2026 21:35:31 -0000
@@ -1,22 +1,21 @@
-inline 'using Fn = std::function<Signature>;' to fix the build:
-.../base_linux_xcb_utilities.cpp:158:54: error: alias template 'Fn' requires template arguments; argument deduction only allowed for class templates
-
-Index: Telegram/lib_base/base/platform/linux/base_linux_xcb_utilities.cpp
---- Telegram/lib_base/base/platform/linux/base_linux_xcb_utilities.cpp.orig
-+++ Telegram/lib_base/base/platform/linux/base_linux_xcb_utilities.cpp
-@@ -56,6 +56,11 @@ SharedConnection::SharedConnection()
-
- xcb_connection_t *GetConnectionFromQt() {
- #if defined QT_FEATURE_xcb && QT_CONFIG(xcb)
-+ // If we failed to load libxcb, we will crash anyway
+--- Telegram/lib_base/base/platform/linux/base_linux_xcb_utilities.cpp.orig Sat Nov 14 14:22:48 2026
++++ Telegram/lib_base/base/platform/linux/base_linux_xcb_utilities.cpp Sat Nov 14 13:43:51 2026
+@@ -54,6 +54,11 @@
+inline 'using Fn = std::function<Signature>;' to fix the build:
+.../base_linux_xcb_utilities.cpp:158:54: error: alias template 'Fn' requires template arguments; argument deduction only allowed for class templates
+
+ #if QT_VERSION >= QT_VERSION_CHECK(6, 2, 0) && defined QT_FEATURE_xcb && QT_CONFIG(xcb)
+ using namespace QNativeInterface;
+ const auto native = qApp->nativeInterface<QX11Application>();
+ static const auto xcb_connect = LoadSymbol("xcb_connect");
++
+ if (!xcb_connect) {
+ return nullptr;
+ }
- #if QT_VERSION >= QT_VERSION_CHECK(6, 2, 0)
- using namespace QNativeInterface;
- const auto native = qApp->nativeInterface<QX11Application>();
-@@ -142,7 +147,7 @@ rpl::lifetime InstallEventHandler(
+ if (!native) {
+ return nullptr;
+ }
+@@ -129,7 +134,7 @@
}
}
Index: patches/patch-Telegram_lib_webview_webview_platform_linux_webview_linux_webkitgtk_library_cpp
===================================================================
RCS file: /cvs/ports/net/tdesktop/patches/patch-Telegram_lib_webview_webview_platform_linux_webview_linux_webkitgtk_library_cpp,v
diff -u -r1.6 patch-Telegram_lib_webview_webview_platform_linux_webview_linux_webkitgtk_library_cpp
--- patches/patch-Telegram_lib_webview_webview_platform_linux_webview_linux_webkitgtk_library_cpp 29 Aug 2026 13:02:17 -0000 1.6
+++ patches/patch-Telegram_lib_webview_webview_platform_linux_webview_linux_webkitgtk_library_cpp 17 Nov 2026 21:35:31 -0000
@@ -1,19 +1,17 @@
-Drop upstream/linux versions from WebKitGTK .so for dlopen(3) to find them
-
-Index: Telegram/lib_webview/webview/platform/linux/webview_linux_webkitgtk_library.cpp
---- Telegram/lib_webview/webview/platform/linux/webview_linux_webkitgtk_library.cpp.orig
-+++ Telegram/lib_webview/webview/platform/linux/webview_linux_webkitgtk_library.cpp
-@@ -14,10 +14,10 @@ ResolveResult Resolve(Platform platform, WindowMode mo
- const auto gtkPlug = (platform == Platform::X11)
- && (mode == WindowMode::Embedded);
- const auto lib = (!gtkPlug
-- ? base::Platform::LoadLibrary("libwebkitgtk-6.0.so.4", RTLD_NODELETE)
-+ ? base::Platform::LoadLibrary("libwebkitgtk-6.0.so", RTLD_NODELETE)
- : nullptr)
+--- Telegram/lib_webview/webview/platform/linux/webview_linux_webkitgtk_library.cpp.orig Wed Nov 11 18:41:05 2026
++++ Telegram/lib_webview/webview/platform/linux/webview_linux_webkitgtk_library.cpp Sat Nov 14 14:30:31 2026
+Drop upstream/linux versions from xcb .so for dlopen(3) to find them
+
+@@ -11,9 +11,9 @@
+ namespace Webview::WebKitGTK::Library {
+
+ ResolveResult Resolve(Platform platform) {
+- const auto lib = base::Platform::LoadLibrary("libwebkitgtk-6.0.so.4", RTLD_NODELETE)
- ?: base::Platform::LoadLibrary("libwebkit2gtk-4.1.so.0", RTLD_NODELETE)
- ?: base::Platform::LoadLibrary("libwebkit2gtk-4.0.so.37", RTLD_NODELETE);
++ const auto lib = base::Platform::LoadLibrary("libwebkitgtk-6.0.so", RTLD_NODELETE)
+ ?: base::Platform::LoadLibrary("libwebkit2gtk-4.1.so", RTLD_NODELETE)
+ ?: base::Platform::LoadLibrary("libwebkit2gtk-4.0.so", RTLD_NODELETE);
const auto result = lib
&& LOAD_LIBRARY_SYMBOL(lib, gtk_init_check)
- && LOAD_LIBRARY_SYMBOL(lib, gtk_widget_get_type)
+ && LOAD_LIBRARY_SYMBOL(lib, gdk_set_allowed_backends)