diff --git a/0003-revert-webrtc-cmake-target-file.patch b/0003-revert-webrtc-cmake-target-file.patch index c450b3a..41e3e24 100644 --- a/0003-revert-webrtc-cmake-target-file.patch +++ b/0003-revert-webrtc-cmake-target-file.patch @@ -1,10 +1,11 @@ -diff --git a/cmake/external/webrtc/CMakeLists.txt b/cmake/external/webrtc/CMakeLists.txt -index f6ce939..b37cb14 100644 ---- a/cmake/external/webrtc/CMakeLists.txt -+++ b/cmake/external/webrtc/CMakeLists.txt -@@ -90,9 +90,7 @@ INTERFACE +diff -Nur tdesktop-3.7.3-full/cmake/external/webrtc/CMakeLists.txt new/cmake/external/webrtc/CMakeLists.txt +--- tdesktop-3.7.3-full/cmake/external/webrtc/CMakeLists.txt 2022-04-19 14:57:00.000000000 +0200 ++++ new/cmake/external/webrtc/CMakeLists.txt 2022-05-02 18:53:40.393350191 +0200 +@@ -93,11 +93,8 @@ + ${webrtc_libs_list} $ $ +- $ $ - $ $ diff --git a/fix-unused-variable-error.patch b/fix-unused-variable-error.patch new file mode 100644 index 0000000..c36bbf4 --- /dev/null +++ b/fix-unused-variable-error.patch @@ -0,0 +1,21 @@ +diff -Nur tdesktop-3.7.3-full/Telegram/ThirdParty/dispatch/src/BlocksRuntime/runtime.c new/Telegram/ThirdParty/dispatch/src/BlocksRuntime/runtime.c +--- tdesktop-3.7.3-full/Telegram/ThirdParty/dispatch/src/BlocksRuntime/runtime.c 2021-09-17 06:54:52.000000000 +0200 ++++ new/Telegram/ThirdParty/dispatch/src/BlocksRuntime/runtime.c 2022-05-02 19:30:46.128231255 +0200 +@@ -468,7 +468,6 @@ + // Old compiler SPI + static void _Block_byref_release(const void *arg) { + struct Block_byref *byref = (struct Block_byref *)arg; +- int32_t refcount; + + // dereference the forwarding pointer since the compiler isn't doing this anymore (ever?) + byref = byref->forwarding; +@@ -478,8 +477,7 @@ + if ((byref->flags & BLOCK_BYREF_NEEDS_FREE) == 0) { + return; // stack or GC or global + } +- refcount = byref->flags & BLOCK_REFCOUNT_MASK; +- os_assert(refcount); ++ os_assert(byref->flags & BLOCK_REFCOUNT_MASK); + if (latching_decr_int_should_deallocate(&byref->flags)) { + if (byref->flags & BLOCK_BYREF_HAS_COPY_DISPOSE) { + struct Block_byref_2 *byref2 = (struct Block_byref_2 *)(byref+1); diff --git a/tdesktop-3.6.1-full.tar.gz b/tdesktop-3.6.1-full.tar.gz deleted file mode 100644 index d8a9a7d..0000000 --- a/tdesktop-3.6.1-full.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1e87df0970b135d566f5af4bc6c2695fc98ba387dc1137100a478f02d48c12e8 -size 41226549 diff --git a/tdesktop-3.7.3-full.tar.gz b/tdesktop-3.7.3-full.tar.gz new file mode 100644 index 0000000..3efa133 --- /dev/null +++ b/tdesktop-3.7.3-full.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9735f30610ff62b01cbdb0b945d32c494cec245961023c9860d9dd5268b9fe1e +size 41365751 diff --git a/telegram-desktop.changes b/telegram-desktop.changes index d6cff6f..ed77415 100644 --- a/telegram-desktop.changes +++ b/telegram-desktop.changes @@ -1,4 +1,40 @@ ------------------------------------------------------------------- +Tue Apr 26 15:20:13 UTC 2022 - Ferdinand Thiessen + +- Update to version 3.7.3 + * Fix a crash in the pinned bar bot button refresh. +- Update to version 3.7.2 + * Fix mute period selector values. + * Fix a crash in repeated context menu item selection. + * Fix context menu item selection of systems without a compositor. +- Update to version 3.7.1 + * Hardware accelerated video decoding off by default. + * Fix several crashes. +- Update to version 3.7.0 + * NO SUPPORT FOR QT5 ON LINUX ANYMORE! USE QT6! + * Use any short music file or voice message as a notification sound. + * Right click audio files in chats to add them to your list of + sounds - or use 'Upload Sound' in the Notifications menu. + * Click on Mute notifications > Select sound in a chat's (...) + menu to change its notification sound. + * Set custom tones for notifications in Settings > Notifications > Play sound. + * Click on Mute notifications in a chat's (...) menu to manage + its notifications. + * Choose 'Mute for...' to turn off notifications for a + preset period, like 1 hour or 1 day. + * Quickly configure Auto-Delete settings from any chat info page. + * Click (...) to turn on Auto-Delete, then select a specific duration. + * Replies are now preserved when forwarding messages, + making forwarded conversations easier to read. + * Bots can now open detailed pages directly in the chat. + * Use these streamlined interfaces to buy real-world goods + and services without leaving the app. + * Open a bot's profile to add it to your group or channel. + * Instantly configure a bot's rights and permissions when adding it. + * Bots can send a new type of button that lets you add them to + your group or channel. +- Added fix-unused-variable-error.patch +------------------------------------------------------------------- Fri Apr 8 07:53:51 UTC 2022 - Marcel Kuehlhorn - Update to 3.6.1 diff --git a/telegram-desktop.spec b/telegram-desktop.spec index 7ff239d..bebf203 100644 --- a/telegram-desktop.spec +++ b/telegram-desktop.spec @@ -27,7 +27,7 @@ %define _dwz_max_die_limit 200000000 Name: telegram-desktop -Version: 3.6.1 +Version: 3.7.3 Release: 0 Summary: Messaging application with a focus on speed and security License: GPL-3.0-only @@ -48,6 +48,8 @@ Patch3: 0003-revert-webrtc-cmake-target-file.patch Patch4: 0004-use-dynamic-x-libraries.patch # PATCH-FIX-OPENSUSE Patch5: 0005-add-wayland-include-path.patch +# PATCH-FIX-OPENSUSE +Patch6: fix-unused-variable-error.patch # There is an (incomplete) patch available for part of the source: # https://github.com/desktop-app/lib_base.git 3582bca53a1e195a31760978dc41f67ce44fc7e4 # but tdesktop itself still falls short, and it looks to be something @@ -62,16 +64,13 @@ BuildRequires: enchant-devel BuildRequires: ffmpeg-devel BuildRequires: freetype-devel BuildRequires: glibc-devel -BuildRequires: libQt5Core-private-headers-devel >= 5.15 -BuildRequires: libQt5Gui-private-headers-devel >= 5.15 BuildRequires: libjpeg-devel BuildRequires: liblz4-devel -BuildRequires: libqt5-qtbase-common-devel >= 5.15 -BuildRequires: libqt5-qtimageformats-devel >= 5.15 -BuildRequires: libqt5-qtwayland-private-headers-devel >= 5.15 BuildRequires: libwebrtc_audio_processing-devel BuildRequires: ninja BuildRequires: pkgconfig +BuildRequires: qt6-gui-private-devel +BuildRequires: qt6-waylandclient-private-devel BuildRequires: unzip BuildRequires: wayland-devel BuildRequires: webkit2gtk3-devel @@ -80,11 +79,15 @@ BuildRequires: xxhash-devel BuildRequires: xz BuildRequires: yasm BuildRequires: cmake(KF5Wayland) -BuildRequires: pkgconfig(Qt5DBus) >= 5.15 -BuildRequires: pkgconfig(Qt5Network) >= 5.15 -BuildRequires: pkgconfig(Qt5Svg) >= 5.15 -BuildRequires: pkgconfig(Qt5WaylandClient) >= 5.15 -BuildRequires: pkgconfig(Qt5Widgets) >= 5.15 +BuildRequires: cmake(Qt6Concurrent) +BuildRequires: cmake(Qt6Core5Compat) +BuildRequires: cmake(Qt6DBus) +BuildRequires: cmake(Qt6Network) +BuildRequires: cmake(Qt6OpenGL) +BuildRequires: cmake(Qt6OpenGLWidgets) +BuildRequires: cmake(Qt6Svg) +BuildRequires: cmake(Qt6WaylandClient) +BuildRequires: cmake(Qt6Widgets) BuildRequires: pkgconfig(alsa) BuildRequires: pkgconfig(dbusmenu-qt5) BuildRequires: pkgconfig(expat) @@ -165,6 +168,7 @@ The service also provides APIs to independent developers. %patch3 -p1 %patch4 -p1 %patch5 -p1 +%patch6 -p1 cd ../ unzip -q %{S:2} @@ -199,7 +203,7 @@ cd %{_builddir}/tdesktop-%{version}-full %cmake \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_BUILD_TYPE=Release \ - -DDESKTOP_APP_QT6=OFF \ + -DDESKTOP_APP_QT6=ON \ -DTDESKTOP_API_ID=611335 \ -DTDESKTOP_API_HASH=d524b414d21f4d37f08684c1df41ac9c \ -DDESKTOP_APP_USE_GLIBC_WRAPS=OFF \ diff --git a/tg_owt-master.zip b/tg_owt-master.zip index 8b44a09..2564d76 100644 --- a/tg_owt-master.zip +++ b/tg_owt-master.zip @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3170842463a5112982d01816049740adf94f874aac04fb5a5ff642db589d0420 -size 32225338 +oid sha256:ef173882422e65e1388db5659f507b6d9884290d90f200e608d0d288356c2475 +size 25390157