net-im/telegram-desktop: Patch 5.12.3 for qt6.9 filename changes

[sam: Drop PYTHON_COMPAT hunk which just changed style.]

Closes: https://bugs.gentoo.org/959247
Signed-off-by: Paul Jewell <paul@teulu.org>
Part-of: https://github.com/gentoo/gentoo/pull/42803
Closes: https://github.com/gentoo/gentoo/pull/42803
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Paul Jewell 2025-06-29 21:39:32 +01:00 committed by Sam James
parent 14e6f37f74
commit cce154e38c
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,30 @@
Qt 6.9.0 has renamed a couple of files, meaning telegram-desktop fails to build
https://bugs.gentoo.org/959247
--- tdesktop-5.12.3-full/Telegram/lib_base/base/platform/linux/base_linux_xdp_utilities.cpp 2025-06-29 10:42:13.725912379 +0100
+++ tdesktop-5.12.3-full-new/Telegram/lib_base/base/platform/linux/base_linux_xdp_utilities.cpp 2025-06-29 10:52:41.097335188 +0100
@@ -16,7 +16,11 @@
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
#include <qpa/qplatformintegration.h>
#include <private/qguiapplication_p.h>
+#if QT_VERSION >= QT_VERSION_CHECK(6, 9, 0)
+#include <private/qdesktopunixservices_p.h>
+#else
#include <private/qgenericunixservices_p.h>
+#endif // Qt >= 6.9.0
#endif // Qt >= 6.5.0
#include <sstream>
@@ -39,7 +43,11 @@
}
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
+#if QT_VERSION >= QT_VERSION_CHECK(6, 9, 0)
+ if (const auto services = dynamic_cast<QDesktopUnixServices*>(
+#else
if (const auto services = dynamic_cast<QGenericUnixServices*>(
+#endif // Qt >= 6.9.0
QGuiApplicationPrivate::platformIntegration()->services())) {
return services->portalWindowIdentifier(window).toStdString();
}

View File

@ -81,6 +81,7 @@ PATCHES=(
"${FILESDIR}"/tdesktop-5.7.2-cstring.patch
"${FILESDIR}"/tdesktop-5.8.3-cstdint.patch
"${FILESDIR}"/tdesktop-5.12.3-fix-webview.patch
"${FILESDIR}"/tdesktop-5.12.3-qt-namechange.patch
)
pkg_pretend() {