mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
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:
parent
14e6f37f74
commit
cce154e38c
@ -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();
|
||||
}
|
||||
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user