[telegram-desktop/f36] Switched to openssl1.1 to mitigate issues with video calls.
by Vitaly Zaitsev
commit 0556bcc510766233f17f581d61193c2a2b6aceab
Author: Vitaly Zaitsev <vitaly(a)easycoding.org>
Date: Sun Aug 14 12:58:23 2022 +0200
Switched to openssl1.1 to mitigate issues with video calls.
Use WebKitGTK 5.0 on Fedora 37+.
telegram-desktop.spec | 22 ++++++++++++++++++----
1 file changed, 18 insertions(+), 4 deletions(-)
---
diff --git a/telegram-desktop.spec b/telegram-desktop.spec
index 7f2c955..5352e48 100644
--- a/telegram-desktop.spec
+++ b/telegram-desktop.spec
@@ -54,16 +54,13 @@ BuildRequires: pkgconfig(glibmm-2.4)
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(hunspell)
BuildRequires: pkgconfig(jemalloc)
-BuildRequires: pkgconfig(libcrypto)
BuildRequires: pkgconfig(liblz4)
BuildRequires: pkgconfig(liblzma)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(libxxhash)
-BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(opus)
BuildRequires: pkgconfig(rnnoise)
BuildRequires: pkgconfig(vpx)
-BuildRequires: pkgconfig(webkit2gtk-4.0)
BuildRequires: cmake
BuildRequires: desktop-file-utils
@@ -104,6 +101,14 @@ BuildRequires: pkgconfig(xcb-record)
BuildRequires: pkgconfig(xcb-screensaver)
%endif
+%if 0%{?fedora} && 0%{?fedora} >= 37
+BuildRequires: pkgconfig(webkit2gtk-5.0)
+Requires: webkit2gtk5.0%{?_isa}
+%else
+BuildRequires: pkgconfig(webkit2gtk-4.0)
+Requires: webkit2gtk3%{?_isa}
+%endif
+
# Telegram Desktop has major issues when built against ffmpeg 5.x:
# https://bugzilla.rpmfusion.org/show_bug.cgi?id=6273
# Upstream refuses to fix this issue:
@@ -119,10 +124,18 @@ BuildRequires: pkgconfig(libswresample)
BuildRequires: pkgconfig(libswscale)
%endif
+# Video calls doesn't work when built against openssl 3.0:
+# https://github.com/telegramdesktop/tdesktop/issues/24698
+%if 0%{?fedora} && 0%{?fedora} >= 36
+BuildRequires: openssl1.1-devel
+%else
+BuildRequires: pkgconfig(libcrypto)
+BuildRequires: pkgconfig(openssl)
+%endif
+
%{?_qt6:Requires: %{_qt6}%{?_isa} = %{_qt6_version}}
Requires: hicolor-icon-theme
Requires: qt6-qtimageformats%{?_isa}
-Requires: webkit2gtk3%{?_isa}
# Telegram Desktop can use native open/save dialogs with XDG portals.
Recommends: xdg-desktop-portal%{?_isa}
@@ -212,6 +225,7 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{launcher}.desktop
* Sun Aug 14 2022 Vitaly Zaitsev <vitaly(a)easycoding.org> - 4.1.0-1
- Updated to version 4.1.0.
- Switched to compat-ffmpeg4 to mitigate RFBZ#6273.
+- Switched to openssl1.1 to mitigate issues with video calls.
* Mon Aug 08 2022 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> - 4.0.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild and ffmpeg
2 years, 3 months
[tg_owt/f36] Build against deprecated openssl1.1 to fix video calls.
by Vitaly Zaitsev
commit e0f55495ec223a9a049e572958496e0ae63a856e
Author: Vitaly Zaitsev <vitaly(a)easycoding.org>
Date: Sun Aug 14 12:30:09 2022 +0200
Build against deprecated openssl1.1 to fix video calls.
tg_owt.spec | 25 ++++++++++++++++++-------
1 file changed, 18 insertions(+), 7 deletions(-)
---
diff --git a/tg_owt.spec b/tg_owt.spec
index 5747b6e..da8404c 100644
--- a/tg_owt.spec
+++ b/tg_owt.spec
@@ -14,7 +14,7 @@
Name: tg_owt
Version: 0
-Release: 24.%{date}git%{shortcommit0}%{?dist}
+Release: 25.%{date}git%{shortcommit0}%{?dist}
# Main project - BSD
# abseil-cpp - ASL 2.0
@@ -38,7 +38,6 @@ BuildRequires: pkgconfig(libdrm)
BuildRequires: pkgconfig(libjpeg)
BuildRequires: pkgconfig(libpipewire-0.3)
BuildRequires: pkgconfig(libpulse)
-BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(opus)
BuildRequires: pkgconfig(vpx)
BuildRequires: pkgconfig(x11)
@@ -71,6 +70,14 @@ BuildRequires: pkgconfig(libswresample)
BuildRequires: pkgconfig(libswscale)
%endif
+# Video calls doesn't work when built against openssl 3.0:
+# https://github.com/telegramdesktop/tdesktop/issues/24698
+%if 0%{?fedora} && 0%{?fedora} >= 36
+BuildRequires: openssl1.1-devel
+%else
+BuildRequires: pkgconfig(openssl)
+%endif
+
# Disabling all low-memory architectures.
ExclusiveArch: x86_64 aarch64
@@ -102,7 +109,6 @@ Requires: pkgconfig(libdrm)
Requires: pkgconfig(libjpeg)
Requires: pkgconfig(libpipewire-0.3)
Requires: pkgconfig(libpulse)
-Requires: pkgconfig(openssl)
Requires: pkgconfig(opus)
Requires: pkgconfig(vpx)
Requires: pkgconfig(x11)
@@ -124,6 +130,12 @@ Requires: pkgconfig(libswresample)
Requires: pkgconfig(libswscale)
%endif
+%if 0%{?fedora} && 0%{?fedora} >= 36
+Requires: openssl1.1-devel
+%else
+Requires: pkgconfig(openssl)
+%endif
+
%description devel
%{summary}.
@@ -192,12 +204,11 @@ export PKG_CONFIG_PATH="%{_libdir}/compat-ffmpeg4/pkgconfig/"
%{_libdir}/lib%{name}.a
%changelog
+* Sun Aug 14 2022 Vitaly Zaitsev <vitaly(a)easycoding.org> - 0-25.20220508git10d5f4b
+- Rebuilt against openssl1.1 to mitigate issues with video calls.
+
* Sun Aug 14 2022 Vitaly Zaitsev <vitaly(a)easycoding.org> - 0-24.20220508git10d5f4b
- Rebuilt against compat-ffmpeg4 to mitigate RFBZ#6273.
* Sat Aug 13 2022 Vitaly Zaitsev <vitaly(a)easycoding.org> - 0-23.20220508git10d5f4b
- Rebuilt.
-
-* Mon Aug 08 2022 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> - 0-22.20220508git10d5f4b
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild and ffmpeg
- 5.1
2 years, 3 months
[telegram-desktop/f36] Backported upstream patch to fix issues with saving window position.
by Vitaly Zaitsev
commit d82757a52c7d1900e587f1e5e871b1bac22c0b53
Author: Vitaly Zaitsev <vitaly(a)easycoding.org>
Date: Sun Aug 14 11:56:15 2022 +0200
Backported upstream patch to fix issues with saving window position.
telegram-desktop-4.1.0-window-position-fixes.patch | 70 ++++++++++++++++++++++
telegram-desktop.spec | 4 +-
2 files changed, 73 insertions(+), 1 deletion(-)
---
diff --git a/telegram-desktop-4.1.0-window-position-fixes.patch b/telegram-desktop-4.1.0-window-position-fixes.patch
new file mode 100644
index 0000000..251fdaf
--- /dev/null
+++ b/telegram-desktop-4.1.0-window-position-fixes.patch
@@ -0,0 +1,70 @@
+From 1e7117dd674e81ddd178683f7011b2a29b513950 Mon Sep 17 00:00:00 2001
+From: Ilya Fedin <fedin-ilja2010(a)ya.ru>
+Date: Sun, 14 Aug 2022 10:46:49 +0400
+Subject: [PATCH] Revert "Fix enlargening the window by shadow margin when
+ resotring position"
+
+This reverts commit e0ddaf9da15482e758d1817442521d491dd39504.
+---
+ Telegram/SourceFiles/window/main_window.cpp | 2 +-
+ Telegram/lib_ui | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Telegram/SourceFiles/window/main_window.cpp b/Telegram/SourceFiles/window/main_window.cpp
+index aed252e81e75a..0940c72ec6b40 100644
+--- a/Telegram/SourceFiles/window/main_window.cpp
++++ b/Telegram/SourceFiles/window/main_window.cpp
+@@ -744,7 +744,7 @@ void MainWindow::initGeometry() {
+ ).arg(geometry.y()
+ ).arg(geometry.width()
+ ).arg(geometry.height()));
+- RpWidget::setGeometry(geometry);
++ setGeometry(geometry);
+ }
+
+ void MainWindow::positionUpdated() {
+
+From 180b0bc51796dcbe5d9371280e49fda24dfaf0fd Mon Sep 17 00:00:00 2001
+From: Ilya Fedin <fedin-ilja2010(a)ya.ru>
+Date: Sun, 14 Aug 2022 07:02:06 +0400
+Subject: [PATCH] Apply window extents early to avoid window size changes
+
+---
+ Telegram/lib_ui/ui/platform/ui_platform_window.cpp | 13 +++++--------
+ 1 file changed, 5 insertions(+), 8 deletions(-)
+
+diff --git a/Telegram/lib_ui/ui/platform/ui_platform_window.cpp b/Telegram/lib_ui/ui/platform/ui_platform_window.cpp
+index 0a4a70f0..55bcf0e5 100644
+--- a/Telegram/lib_ui/ui/platform/ui_platform_window.cpp
++++ b/Telegram/lib_ui/ui/platform/ui_platform_window.cpp
+@@ -192,12 +192,13 @@ DefaultWindowHelper::DefaultWindowHelper(not_null<RpWidget*> window)
+ }
+
+ void DefaultWindowHelper::init() {
+- _title->show();
+-
+ if (WindowExtentsSupported()) {
+ window()->setAttribute(Qt::WA_TranslucentBackground);
+ }
+
++ window()->createWinId();
++ _title->show();
++
+ rpl::combine(
+ window()->widthValue(),
+ _windowState.value(),
+@@ -260,12 +261,8 @@ void DefaultWindowHelper::init() {
+ bool shown,
+ bool titleShown,
+ Qt::WindowStates windowState) {
+- if (const auto handle = window()->windowHandle()) {
+- handle->setFlag(Qt::FramelessWindowHint, titleShown);
+- updateWindowExtents();
+- } else {
+- window()->setWindowFlag(Qt::FramelessWindowHint, titleShown);
+- }
++ window()->windowHandle()->setFlag(Qt::FramelessWindowHint, titleShown);
++ updateWindowExtents();
+ }, window()->lifetime());
+
+ window()->events() | rpl::start_with_next([=](not_null<QEvent*> e) {
diff --git a/telegram-desktop.spec b/telegram-desktop.spec
index 5e89b05..7f2c955 100644
--- a/telegram-desktop.spec
+++ b/telegram-desktop.spec
@@ -23,8 +23,10 @@ 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/24918
+# https://github.com/telegramdesktop/tdesktop/commit/f82089cbfe1c459022f9d4...
Patch100: %{name}-4.1.0-gcc12-build-fixes.patch
+# https://github.com/telegramdesktop/tdesktop/commit/1e7117dd674e81ddd17868...
+Patch101: %{name}-4.1.0-window-position-fixes.patch
# Telegram Desktop require more than 8 GB of RAM on linking stage.
# Disabling all low-memory architectures.
2 years, 3 months
[telegram-desktop/f36: 3/3] Updated to version 4.1.0.
by Vitaly Zaitsev
commit 605abe504e9b8cf09401b2282c907ae2db1171a7
Author: Vitaly Zaitsev <vitaly(a)easycoding.org>
Date: Sun Aug 14 11:01:49 2022 +0200
Updated to version 4.1.0.
Switched to compat-ffmpeg4 to mitigate RFBZ#6273.
.gitignore | 1 +
sources | 2 +-
telegram-desktop-4.1.0-gcc12-build-fixes.patch | 43 ++++++++++++++++++++++++++
telegram-desktop.spec | 42 +++++++++++++++----------
4 files changed, 71 insertions(+), 17 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e2955d9..668e000 100644
--- a/.gitignore
+++ b/.gitignore
@@ -179,3 +179,4 @@
/tdesktop-3.7.1-full.tar.gz
/tdesktop-3.7.3-full.tar.gz
/tdesktop-4.0.2-full.tar.gz
+/tdesktop-4.1.0-full.tar.gz
diff --git a/sources b/sources
index 6578640..da0068e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (tdesktop-4.0.2-full.tar.gz) = 0078b627d06dd8e655bd2bcc222ecbb3b15b7d88f858810bccdca84793ad02a60f4a4bf3808838752d65d4f6cffa3ddb5f70c5afc8e94cb6edae52101362feeb
+SHA512 (tdesktop-4.1.0-full.tar.gz) = d58ad4b3eaf72b4885612ecca0b29057a1f0e7efc7a539c4ed7cdfa9f6b8dd19e378f1e4b9f28a644d8c8559a5310a168e0b949aafac6902bd21155795db2574
diff --git a/telegram-desktop-4.1.0-gcc12-build-fixes.patch b/telegram-desktop-4.1.0-gcc12-build-fixes.patch
new file mode 100644
index 0000000..84341d2
--- /dev/null
+++ b/telegram-desktop-4.1.0-gcc12-build-fixes.patch
@@ -0,0 +1,43 @@
+From f82089cbfe1c459022f9d4cad250b58a568e9619 Mon Sep 17 00:00:00 2001
+From: Joe Kappus <joe(a)wt.gd>
+Date: Fri, 12 Aug 2022 22:24:10 -0400
+Subject: [PATCH] Fix build with GCC 12.
+
+---
+ Telegram/SourceFiles/ffmpeg/ffmpeg_emoji.h | 1 +
+ Telegram/lib_lottie | 2 +-
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/Telegram/SourceFiles/ffmpeg/ffmpeg_emoji.h b/Telegram/SourceFiles/ffmpeg/ffmpeg_emoji.h
+index ac896903edab4..d1e4acd96dee3 100644
+--- a/Telegram/SourceFiles/ffmpeg/ffmpeg_emoji.h
++++ b/Telegram/SourceFiles/ffmpeg/ffmpeg_emoji.h
+@@ -10,6 +10,7 @@
+ #include "ui/effects/frame_generator.h"
+
+ #include <QtGui/QImage>
++#include <memory>
+
+ namespace FFmpeg {
+
+From f3563bc6b0e042095d4d667d013f62cb8ae62b65 Mon Sep 17 00:00:00 2001
+From: Joe Kappus <joe(a)wt.gd>
+Date: Fri, 12 Aug 2022 22:17:20 -0400
+Subject: [PATCH] fix build with GCC-12.
+
+---
+ lottie/lottie_emoji.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/lottie/lottie_emoji.h b/lottie/lottie_emoji.h
+index ec2221c..d882e87 100644
+--- a/Telegram/lib_lottie/lottie/lottie_emoji.h
++++ b/Telegram/lib_lottie/lottie/lottie_emoji.h
+@@ -9,6 +9,7 @@
+ #include "ui/effects/frame_generator.h"
+
+ #include <QtGui/QImage>
++#include <memory>
+
+ namespace rlottie {
+ class Animation;
diff --git a/telegram-desktop.spec b/telegram-desktop.spec
index 0a9c417..5e89b05 100644
--- a/telegram-desktop.spec
+++ b/telegram-desktop.spec
@@ -11,8 +11,8 @@
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
Name: telegram-desktop
-Version: 4.0.2
-Release: 3%{?dist}
+Version: 4.1.0
+Release: 1%{?dist}
# Application and 3rd-party modules licensing:
# * Telegram Desktop - GPLv3+ with OpenSSL exception -- main tarball;
@@ -23,6 +23,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/24918
+Patch100: %{name}-4.1.0-gcc12-build-fixes.patch
+
# Telegram Desktop require more than 8 GB of RAM on linking stage.
# Disabling all low-memory architectures.
ExclusiveArch: x86_64 aarch64
@@ -49,15 +52,10 @@ BuildRequires: pkgconfig(glibmm-2.4)
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(hunspell)
BuildRequires: pkgconfig(jemalloc)
-BuildRequires: pkgconfig(libavcodec)
-BuildRequires: pkgconfig(libavformat)
-BuildRequires: pkgconfig(libavutil)
BuildRequires: pkgconfig(libcrypto)
BuildRequires: pkgconfig(liblz4)
BuildRequires: pkgconfig(liblzma)
BuildRequires: pkgconfig(libpulse)
-BuildRequires: pkgconfig(libswresample)
-BuildRequires: pkgconfig(libswscale)
BuildRequires: pkgconfig(libxxhash)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(opus)
@@ -104,10 +102,19 @@ BuildRequires: pkgconfig(xcb-record)
BuildRequires: pkgconfig(xcb-screensaver)
%endif
-# Fedora now has a stripped ffmpeg. Make sure we're using the full version.
+# Telegram Desktop has major issues when built against ffmpeg 5.x:
+# https://bugzilla.rpmfusion.org/show_bug.cgi?id=6273
+# Upstream refuses to fix this issue:
+# https://github.com/telegramdesktop/tdesktop/issues/24855
+# https://github.com/telegramdesktop/tdesktop/issues/23899
%if 0%{?fedora} && 0%{?fedora} >= 36
-BuildRequires: ffmpeg-devel
-Requires: ffmpeg-libs%{?_isa}
+BuildRequires: compat-ffmpeg4-devel
+%else
+BuildRequires: pkgconfig(libavcodec)
+BuildRequires: pkgconfig(libavformat)
+BuildRequires: pkgconfig(libavutil)
+BuildRequires: pkgconfig(libswresample)
+BuildRequires: pkgconfig(libswscale)
%endif
%{?_qt6:Requires: %{_qt6}%{?_isa} = %{_qt6_version}}
@@ -150,6 +157,11 @@ business messaging needs.
rm -rf Telegram/ThirdParty/{GSL,QR,dispatch,expected,fcitx-qt5,fcitx5-qt,hime,hunspell,jemalloc,lz4,minizip,nimf,range-v3,xxHash}
%build
+# Setting pkgconfig path for compat-ffmpeg4...
+%if 0%{?fedora} && 0%{?fedora} >= 36
+export PKG_CONFIG_PATH="%{_libdir}/compat-ffmpeg4/pkgconfig/"
+%endif
+
# Building Telegram Desktop using cmake...
%cmake -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
@@ -195,15 +207,13 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{launcher}.desktop
%{_metainfodir}/%{launcher}.metainfo.xml
%changelog
+* Sun Aug 14 2022 Vitaly Zaitsev <vitaly(a)easycoding.org> - 4.1.0-1
+- Updated to version 4.1.0.
+- Switched to compat-ffmpeg4 to mitigate RFBZ#6273.
+
* Mon Aug 08 2022 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> - 4.0.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild and ffmpeg
5.1
* Wed Jul 27 2022 Vitaly Zaitsev <vitaly(a)easycoding.org> - 4.0.2-2
- Rebuilt due to the Qt 6.3.1 update.
-
-* Sat Jun 25 2022 Vitaly Zaitsev <vitaly(a)easycoding.org> - 4.0.2-1
-- Updated to version 4.0.2.
-
-* Fri Jun 03 2022 Vitaly Zaitsev <vitaly(a)easycoding.org> - 3.7.3-2
-- Rebuilt due to Qt 6.3.0 update.
2 years, 3 months