diff options
author | Mikael Urankar <mikael@FreeBSD.org> | 2020-11-08 02:50:05 +0800 |
---|---|---|
committer | Mikael Urankar <mikael@FreeBSD.org> | 2020-11-08 02:50:05 +0800 |
commit | be2dc8afac69cf10917fd01bbe60caf944be1671 (patch) | |
tree | d785e3449b7e0f6fbcfd3e822154e96f2e63579f /net-im/telegram-desktop/files | |
parent | 74ac6e1ff52215ff3592b2b79c514514d096073e (diff) | |
download | freebsd-ports-gnome-be2dc8afac69cf10917fd01bbe60caf944be1671.tar.gz freebsd-ports-gnome-be2dc8afac69cf10917fd01bbe60caf944be1671.tar.zst freebsd-ports-gnome-be2dc8afac69cf10917fd01bbe60caf944be1671.zip |
net-im/telegram-desktop: Update to 2.4.4
Update to 2.4.4. Noticeable changes:
* Add NDEBUG to CXXFLAGS. This disables DCHECKs and allows video calls to work.
* Change to cmake for rlottie and tg_owt. When they can be packaged properly,
we may revert this patch and use separately packaged ports for them.
Changelog:
2.4.4 (23.10.20)
- Fix application quit on call end with main window hidden in tray.
- Update OpenAL library on Windows.
- Several crash fixes.
2.4.3 (07.10.20)
- Fix sending voice messages in scheduled messages section.
- Fix deleting profile / group / channel photos.
- Several crash fixes.
2.4.2 (02.10.20)
- Allow block, report and delete all message from user from "user joined"
service message context menu.
- Fix admin badge display in groups.
- Fix loading and opening of comments in channels.
2.4.1 (01.10.20)
- Move by PageUp and PageDown in channel comments.
- Several layout bugfixes.
- Several crashfixes.
2.4 (30.09.20)
- Turn on "Remain Anonymous" in an admin's Permissions to let them post on behalf
of the group and become invisible in the list of members.
- Comment on posts in channels that have a discussion group.
- Get notified about replies to your comments via the new Replies chat (if you
are not a member of the discussion group).
PR: 250393
Submitted by: Henry Hu (maintainer)
Reported by: Volodymyr Kostyrko
Diffstat (limited to 'net-im/telegram-desktop/files')
5 files changed, 58 insertions, 43 deletions
diff --git a/net-im/telegram-desktop/files/patch-Telegram_lib__base_base_platform_linux_base__info__linux.cpp b/net-im/telegram-desktop/files/patch-Telegram_lib__base_base_platform_linux_base__info__linux.cpp index 8d73b409c77b..e066c7e49f55 100644 --- a/net-im/telegram-desktop/files/patch-Telegram_lib__base_base_platform_linux_base__info__linux.cpp +++ b/net-im/telegram-desktop/files/patch-Telegram_lib__base_base_platform_linux_base__info__linux.cpp @@ -1,14 +1,14 @@ ---- Telegram/lib_base/base/platform/linux/base_info_linux.cpp.orig 2020-08-10 11:25:13 UTC +--- Telegram/lib_base/base/platform/linux/base_info_linux.cpp.orig 2020-10-20 16:29:09 UTC +++ Telegram/lib_base/base/platform/linux/base_info_linux.cpp -@@ -13,7 +13,6 @@ +@@ -11,7 +11,6 @@ #include <QtCore/QVersionNumber> #include <QtCore/QDate> #include <QtGui/QGuiApplication> -#include <gnu/libc-version.h> namespace Platform { - namespace { -@@ -72,11 +71,9 @@ QString SystemVersionPretty() { + +@@ -32,11 +31,9 @@ QString SystemVersionPretty() { const auto value = result ? QString::fromLatin1(result) : QString(); const auto list = value.split(':', QString::SkipEmptyParts); @@ -22,7 +22,7 @@ } QString SystemCountry() { -@@ -94,10 +91,6 @@ QString SystemLanguage() { +@@ -54,10 +51,6 @@ QString SystemLanguage() { QDate WhenSystemBecomesOutdated() { if (IsLinux32Bit()) { return QDate(2020, 9, 1); @@ -33,7 +33,7 @@ } return QDate(); } -@@ -118,14 +111,6 @@ QString AutoUpdateKey() { +@@ -78,14 +71,6 @@ QString AutoUpdateKey() { } else { Unexpected("Platform in AutoUpdateKey."); } diff --git a/net-im/telegram-desktop/files/patch-cmake_external_rlottie_CMakeLists.txt b/net-im/telegram-desktop/files/patch-cmake_external_rlottie_CMakeLists.txt new file mode 100644 index 000000000000..9eb9a6519ffa --- /dev/null +++ b/net-im/telegram-desktop/files/patch-cmake_external_rlottie_CMakeLists.txt @@ -0,0 +1,11 @@ +--- cmake/external/rlottie/CMakeLists.txt.orig 2020-10-23 14:48:52 UTC ++++ cmake/external/rlottie/CMakeLists.txt +@@ -7,7 +7,7 @@ + add_library(external_rlottie INTERFACE IMPORTED GLOBAL) + add_library(desktop-app::external_rlottie ALIAS external_rlottie) + +-if (DESKTOP_APP_USE_PACKAGED) ++if (0) # DESKTOP_APP_USE_PACKAGED + find_package(rlottie QUIET) + + if (rlottie_FOUND) diff --git a/net-im/telegram-desktop/files/patch-cmake_external_webrtc_CMakeLists.txt b/net-im/telegram-desktop/files/patch-cmake_external_webrtc_CMakeLists.txt index cfd3a7592376..534c221055cf 100644 --- a/net-im/telegram-desktop/files/patch-cmake_external_webrtc_CMakeLists.txt +++ b/net-im/telegram-desktop/files/patch-cmake_external_webrtc_CMakeLists.txt @@ -1,17 +1,32 @@ ---- cmake/external/webrtc/CMakeLists.txt.orig 2020-08-20 13:59:10 UTC +--- cmake/external/webrtc/CMakeLists.txt.orig 2020-10-23 14:48:52 UTC +++ cmake/external/webrtc/CMakeLists.txt -@@ -76,7 +76,7 @@ if (APPLE) +@@ -7,11 +7,11 @@ + add_library(external_webrtc INTERFACE IMPORTED GLOBAL) + add_library(desktop-app::external_webrtc ALIAS external_webrtc) + +-if (DESKTOP_APP_USE_PACKAGED) ++if (0) # DESKTOP_APP_USE_PACKAGED + find_package(tg_owt REQUIRED) + target_link_libraries(external_webrtc INTERFACE tg_owt::tg_owt) + else() +- set(webrtc_loc ${libs_loc}/tg_owt/src) ++ set(webrtc_loc ${DESKTOP_APP_WEBRTC_LOCATION}) + set(webrtc_build_loc ${libs_loc}/tg_owt/out/$<CONFIG>) + + target_compile_definitions(external_webrtc +@@ -75,7 +75,7 @@ else() + ) + endif() + foreach (lib ${webrtc_libs}) +- list(APPEND webrtc_libs_list "${webrtc_build_loc}/${lib}${webrtc_lib_suffix}") ++ list(APPEND webrtc_libs_list "${DESKTOP_APP_WEBRTC_LOCATION}/../out/$<CONFIG>/${lib}${webrtc_lib_suffix}") + endforeach() + + if (WIN32) +@@ -98,5 +98,6 @@ else() + INTERFACE + ${webrtc_libs_list} + desktop-app::external_openssl ++ jpeg ) endif() - foreach (lib ${webrtc_libs}) -- list(APPEND webrtc_libs_list "${webrtc_build_loc}/${lib}${webrtc_lib_suffix}") -+ list(APPEND webrtc_libs_list "${DESKTOP_APP_WEBRTC_LOCATION}/../out/$<CONFIG>/${lib}${webrtc_lib_suffix}") - endforeach() - - if (WIN32) -@@ -99,4 +99,5 @@ target_link_libraries(external_webrtc - INTERFACE - ${webrtc_libs_list} - desktop-app::external_openssl -+ jpeg - ) diff --git a/net-im/telegram-desktop/files/patch-tg__owt_CMakeLists.txt b/net-im/telegram-desktop/files/patch-tg__owt_CMakeLists.txt index 3f79e6be0b3d..5f1ab789675e 100644 --- a/net-im/telegram-desktop/files/patch-tg__owt_CMakeLists.txt +++ b/net-im/telegram-desktop/files/patch-tg__owt_CMakeLists.txt @@ -1,4 +1,4 @@ ---- tg_owt/CMakeLists.txt.orig 2020-08-30 09:41:57 UTC +--- tg_owt/CMakeLists.txt.orig 2020-10-07 14:11:02 UTC +++ tg_owt/CMakeLists.txt @@ -38,7 +38,6 @@ include(cmake/libopenh264.cmake) include(cmake/libpffft.cmake) @@ -8,19 +8,19 @@ include(cmake/libvpx.cmake) include(cmake/libwebrtcbuild.cmake) include(cmake/libyuv.cmake) -@@ -61,7 +60,6 @@ PRIVATE - tg_owt::libpffft - tg_owt::librnnoise - tg_owt::libsrtp -- tg_owt::libusrsctp - tg_owt::libvpx - tg_owt::libvpx_mmx - tg_owt::libvpx_sse2 -@@ -1757,7 +1755,6 @@ TARGETS +@@ -62,7 +61,6 @@ if (is_x86 OR is_x64) + tg_owt::libpffft + tg_owt::librnnoise + tg_owt::libsrtp +- tg_owt::libusrsctp + tg_owt::libvpx + tg_owt::libvpx_mmx + tg_owt::libvpx_sse2 +@@ -1839,7 +1837,6 @@ TARGETS libpffft librnnoise libsrtp - libusrsctp libvpx - libvpx_mmx - libvpx_sse2 + ${vpx_export} + libwebrtcbuild diff --git a/net-im/telegram-desktop/files/patch-tg__owt_cmake_init__target.cmake b/net-im/telegram-desktop/files/patch-tg__owt_cmake_init__target.cmake deleted file mode 100644 index 3d8cc9918339..000000000000 --- a/net-im/telegram-desktop/files/patch-tg__owt_cmake_init__target.cmake +++ /dev/null @@ -1,11 +0,0 @@ ---- tg_owt/cmake/init_target.cmake.orig 2020-08-30 09:41:57 UTC -+++ tg_owt/cmake/init_target.cmake -@@ -10,7 +10,7 @@ function(init_target target_name) # init_target(my_tar - elseif (APPLE) - target_compile_features(${target_name} PUBLIC cxx_std_14) - else() -- target_compile_features(${target_name} PUBLIC cxx_std_20) -+ target_compile_features(${target_name} PUBLIC cxx_std_17) - endif() - if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") - set_target_properties(${target_name} PROPERTIES |