Hola ports@, kn@.

tdesktop was updated to v7.4.6

I removed bundled microsoft-gsl, so now we can use microsoft-gsl 5.0.0
from the ports.

Added a patch that fixes a bug with spell-checker dictionaries when
upgrading from version 7.2.* to 7.4.*

Diff attached.

Thanks :D

With best regards,
Nazarenko Mykyta
Index: Makefile
===================================================================
RCS file: /cvs/ports/net/tdesktop/Makefile,v
diff -u -r1.236 Makefile
--- Makefile	21 Nov 2026 18:23:25 -0000	1.236
+++ Makefile	23 Nov 2026 22:17:00 -0000
@@ -5,11 +5,10 @@
 
 COMMENT =		Telegram Desktop messenger
 PORTROACH =		limit:-full$$
-V =			7.4.4
+V =			7.4.6
 DISTNAME =		tdesktop-${V}-full
 PKGNAME =		${DISTNAME:-full=}
 CATEGORIES =		net
-REVISION =		1
 
 DPB_PROPERTIES =	parallel
 
@@ -54,6 +53,7 @@
 			devel/crc32c \
 			devel/fmt \
 			devel/gobject-introspection \
+			devel/microsoft-gsl \
 			devel/protobuf \
 			devel/range-v3>=0.11.0p0 \
 			devel/tl-expected \
@@ -111,10 +111,6 @@
 
 # ported but CMake code hardcodes bundled file paths
 NEEDED_BUNDLES +=	xdg-desktop-portal
-
-# 7.1.3 wants ==4.1.0, wait for upstream to catch up with 5.0.0
-CONFIGURE_ARGS +=	-DCMAKE_DISABLE_FIND_PACKAGE_Microsoft.GSL=True
-NEEDED_BUNDLES +=	GSL
 
 post-extract:
 	# All bundles:
Index: distinfo
===================================================================
RCS file: /cvs/ports/net/tdesktop/distinfo,v
diff -u -r1.172 distinfo
--- distinfo	18 Nov 2026 09:30:50 -0000	1.172
+++ distinfo	23 Nov 2026 22:17:00 -0000
@@ -1,2 +1,2 @@
-SHA256 (tdesktop-7.4.4-full.tar.gz) = tWOzo1pVifcPMXKXqo3E8Z2gZcOTw65mOuEYQbWrCJE=
-SIZE (tdesktop-7.4.4-full.tar.gz) = 93345246
+SHA256 (tdesktop-7.4.6-full.tar.gz) = JZr90aOpnB9RVfhW6SxV7/A40mOfuhn8/ZGydmSoI3A=
+SIZE (tdesktop-7.4.6-full.tar.gz) = 144920991
Index: patches/patch-Telegram_SourceFiles_chat_helpers_spellchecker_locale_ids_h
===================================================================
RCS file: patches/patch-Telegram_SourceFiles_chat_helpers_spellchecker_locale_ids_h
diff -N patches/patch-Telegram_SourceFiles_chat_helpers_spellchecker_locale_ids_h
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-Telegram_SourceFiles_chat_helpers_spellchecker_locale_ids_h	23 Nov 2026 22:17:00 -0000
@@ -0,0 +1,13 @@
+The preprocessor needs to return `kManifestIdScheme` since we're using Qt6.
+
+--- Telegram/SourceFiles/chat_helpers/spellchecker_locale_ids.h.orig	Mon Nov 23 21:34:30 2026
++++ Telegram/SourceFiles/chat_helpers/spellchecker_locale_ids.h	Mon Nov 23 21:35:21 2026
+@@ -24,7 +24,7 @@
+ [[nodiscard]] int RecoverLangIdFromSerialized(quint64 raw, int scheme);
+ 
+ [[nodiscard]] inline int LangIdSchemeForAppVersion(int version) {
+-#if defined Q_OS_MACOS || defined Q_PROCESSOR_ARM
++#if defined Q_OS_MACOS || defined Q_PROCESSOR_ARM || defined Q_OS_OPENBSD
+ 	return kManifestIdScheme;
+ #elif defined Q_OS_LINUX
+ 	return (version > 0 && version < 3001012) ? 5 : kManifestIdScheme;

Reply via email to