commit 972361dde6da4f0728c8cc1b27a052a04eb4cd4e
Author: Vitaly Zaitsev <vitaly(a)easycoding.org>
Date: Mon Feb 6 11:37:44 2023 +0100
Updated to version 4.6.0.
sources | 2 +-
telegram-desktop-gcc13-build-fix.patch | 37 ++++++++++++++++++++++++++++++++++
telegram-desktop.spec | 10 +++++++--
3 files changed, 46 insertions(+), 3 deletions(-)
---
diff --git a/sources b/sources
index c755662..22ad6ee 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (tdesktop-4.5.3-full.tar.gz) =
58a9c5d096e236090347388e1ed480527f841045a80771079dc0c3e35e12ce8ac11753987e87bb57870d9bd8488fc6a4734114648ecec7823d8544744b06c6b1
+SHA512 (tdesktop-4.6.0-full.tar.gz) =
f8d529d66144699d580b204456dcbc5692bd48d7ed25152fd6092273fd4f62ebe5140b375a0dea9f600f8a364cf881e5c961675e1ebc3f5d02d60c5290808a4e
diff --git a/telegram-desktop-gcc13-build-fix.patch
b/telegram-desktop-gcc13-build-fix.patch
new file mode 100644
index 0000000..d60d781
--- /dev/null
+++ b/telegram-desktop-gcc13-build-fix.patch
@@ -0,0 +1,37 @@
+From ccef5acc51d2059f33d3e35f7972351b4221cd9f Mon Sep 17 00:00:00 2001
+From: Vitaly Zaitsev <vitaly(a)easycoding.org>
+Date: Mon, 6 Feb 2023 11:23:57 +0100
+Subject: [PATCH] Fixed build with GCC 13.
+
+Signed-off-by: Vitaly Zaitsev <vitaly(a)easycoding.org>
+---
+ .../SourceFiles/history/view/history_view_list_widget.h | 9 +++++----
+ 1 file changed, 5 insertions(+), 4 deletions(-)
+
+diff --git a/Telegram/SourceFiles/history/view/history_view_list_widget.h
b/Telegram/SourceFiles/history/view/history_view_list_widget.h
+index 77c51f7508246..c8ad5f1fcd58a 100644
+--- a/Telegram/SourceFiles/history/view/history_view_list_widget.h
++++ b/Telegram/SourceFiles/history/view/history_view_list_widget.h
+@@ -355,6 +355,11 @@ class ListWidget final
+ int resizeGetHeight(int newWidth) override;
+
+ private:
++ using ScrollTopState = ListMemento::ScrollTopState;
++ using PointState = HistoryView::PointState;
++ using CursorState = HistoryView::CursorState;
++ using ChosenReaction = HistoryView::Reactions::ChosenReaction;
++
+ struct MouseState {
+ MouseState();
+ MouseState(
+@@ -405,10 +410,6 @@ class ListWidget final
+ Selecting,
+ Deselecting,
+ };
+- using ScrollTopState = ListMemento::ScrollTopState;
+- using PointState = HistoryView::PointState;
+- using CursorState = HistoryView::CursorState;
+- using ChosenReaction = HistoryView::Reactions::ChosenReaction;
+
+ void onTouchSelect();
+ void onTouchScrollTimer();
diff --git a/telegram-desktop.spec b/telegram-desktop.spec
index 3005a73..4009786 100644
--- a/telegram-desktop.spec
+++ b/telegram-desktop.spec
@@ -12,8 +12,8 @@
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
Name: telegram-desktop
-Version: 4.5.3
-Release: 2%{?dist}
+Version: 4.6.0
+Release: 1%{?dist}
# Application and 3rd-party modules licensing:
# * Telegram Desktop - GPL-3.0-or-later with OpenSSL exception -- main tarball;
@@ -28,6 +28,9 @@ URL:
https://github.com/telegramdesktop/%{appname}
Summary: Telegram Desktop official messaging app
Source0: %{url}/releases/download/v%{version}/%{appname}-%{version}-full.tar.gz
+#
https://github.com/telegramdesktop/tdesktop/pull/25841
+Patch100: %{name}-gcc13-build-fix.patch
+
# Telegram Desktop require more than 8 GB of RAM on linking stage.
# Disabling all low-memory architectures.
ExclusiveArch: x86_64 aarch64
@@ -220,6 +223,9 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
%{_metainfodir}/*.metainfo.xml
%changelog
+* Mon Feb 06 2023 Vitaly Zaitsev <vitaly(a)easycoding.org> - 4.6.0-1
+- Updated to version 4.6.0.
+
* Wed Feb 01 2023 Vitaly Zaitsev <vitaly(a)easycoding.org> - 4.5.3-2
- Rebuilt due to Qt 6.4.2 update.