git: f5d8edbcf760 - main - net-im/telegram-desktop: update to 4.15.1 release (+)

From: Sergey A. Osokin <osa_at_FreeBSD.org>
Date: Sat, 09 Mar 2024 05:11:01 UTC
The branch main has been updated by osa:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f5d8edbcf7601a576d3eda33e0ad2f8c47e4d78f

commit f5d8edbcf7601a576d3eda33e0ad2f8c47e4d78f
Author:     Sergey A. Osokin <osa@FreeBSD.org>
AuthorDate: 2024-03-09 05:09:51 +0000
Commit:     Sergey A. Osokin <osa@FreeBSD.org>
CommitDate: 2024-03-09 05:10:54 +0000

    net-im/telegram-desktop: update to 4.15.1 release (+)
    
    Regenerate necessary patches.
---
 net-im/telegram-desktop/Makefile                               |  2 +-
 net-im/telegram-desktop/distinfo                               |  6 +++---
 ...-Telegram_SourceFiles_platform_linux_integration__linux.cpp | 10 ++++++++++
 ...tch-Telegram_SourceFiles_platform_linux_specific__linux.cpp | 10 ++++++++++
 ...__base_base_platform_linux_base__file__utilities__linux.cpp | 10 ++++++++++
 ...__base_base_platform_linux_base__linux__dbus__utilities.cpp | 10 ++++++++++
 ...e_base_platform_linux_base__power__save__blocker__linux.cpp | 10 ++++++++++
 ..._lib__base_base_platform_linux_base__url__scheme__linux.cpp | 10 ++++++++++
 .../files/patch-cmake_external_glib_cppgir_tools_genutils.hpp  |  4 ++--
 .../files/patch-cmake_external_qt_CMakeLists.txt               |  4 ++--
 10 files changed, 68 insertions(+), 8 deletions(-)

diff --git a/net-im/telegram-desktop/Makefile b/net-im/telegram-desktop/Makefile
index d13295de8fe8..bfd2391ffa35 100644
--- a/net-im/telegram-desktop/Makefile
+++ b/net-im/telegram-desktop/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	telegram-desktop
-DISTVERSION=	4.15.0
+DISTVERSION=	4.15.1
 CATEGORIES=	net-im
 MASTER_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/releases/download/v${DISTVERSION}/
 DISTNAME=	tdesktop-${DISTVERSION}-full
diff --git a/net-im/telegram-desktop/distinfo b/net-im/telegram-desktop/distinfo
index 0d28922724e5..92c8d7faf6af 100644
--- a/net-im/telegram-desktop/distinfo
+++ b/net-im/telegram-desktop/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1708302033
-SHA256 (tdesktop-4.15.0-full.tar.gz) = 8b0caed85f4876a83c6ece2e4c956589a9548fbca6b951fb99b8d55985fd6112
-SIZE (tdesktop-4.15.0-full.tar.gz) = 68286818
+TIMESTAMP = 1709916913
+SHA256 (tdesktop-4.15.1-full.tar.gz) = 4c61b0b1408827444fedc445d3ab6977ec68975f43a4d9d50ea01e58c117f5c1
+SIZE (tdesktop-4.15.1-full.tar.gz) = 69531645
diff --git a/net-im/telegram-desktop/files/patch-Telegram_SourceFiles_platform_linux_integration__linux.cpp b/net-im/telegram-desktop/files/patch-Telegram_SourceFiles_platform_linux_integration__linux.cpp
new file mode 100644
index 000000000000..be6fdee9df7d
--- /dev/null
+++ b/net-im/telegram-desktop/files/patch-Telegram_SourceFiles_platform_linux_integration__linux.cpp
@@ -0,0 +1,10 @@
+--- Telegram/SourceFiles/platform/linux/integration_linux.cpp.orig	2024-03-08 23:40:11 UTC
++++ Telegram/SourceFiles/platform/linux/integration_linux.cpp
+@@ -27,6 +27,7 @@ namespace Platform {
+ namespace {
+ 
+ using namespace gi::repository;
++namespace GObject = gi::repository::GObject;
+ 
+ class Application : public Gio::impl::ApplicationImpl {
+ public:
diff --git a/net-im/telegram-desktop/files/patch-Telegram_SourceFiles_platform_linux_specific__linux.cpp b/net-im/telegram-desktop/files/patch-Telegram_SourceFiles_platform_linux_specific__linux.cpp
new file mode 100644
index 000000000000..2ed4d5d585a2
--- /dev/null
+++ b/net-im/telegram-desktop/files/patch-Telegram_SourceFiles_platform_linux_specific__linux.cpp
@@ -0,0 +1,10 @@
+--- Telegram/SourceFiles/platform/linux/specific_linux.cpp.orig	2024-03-08 21:33:12 UTC
++++ Telegram/SourceFiles/platform/linux/specific_linux.cpp
+@@ -55,6 +55,7 @@ https://github.com/telegramdesktop/tdesktop/blob/maste
+ namespace {
+ 
+ using namespace gi::repository;
++namespace GObject = gi::repository::GObject;
+ namespace Gio = gi::repository::Gio;
+ using namespace Platform;
+ using Platform::internal::WaylandIntegration;
diff --git a/net-im/telegram-desktop/files/patch-Telegram_lib__base_base_platform_linux_base__file__utilities__linux.cpp b/net-im/telegram-desktop/files/patch-Telegram_lib__base_base_platform_linux_base__file__utilities__linux.cpp
new file mode 100644
index 000000000000..92ce398fd97f
--- /dev/null
+++ b/net-im/telegram-desktop/files/patch-Telegram_lib__base_base_platform_linux_base__file__utilities__linux.cpp
@@ -0,0 +1,10 @@
+--- Telegram/lib_base/base/platform/linux/base_file_utilities_linux.cpp.orig	2024-03-08 22:07:09 UTC
++++ Telegram/lib_base/base/platform/linux/base_file_utilities_linux.cpp
+@@ -30,6 +30,7 @@ namespace base::Platform {
+ namespace {
+ 
+ using namespace gi::repository;
++namespace GObject = gi::repository::GObject;
+ 
+ void PortalShowInFolder(const QString &filepath, Fn<void()> fail) {
+ 	XdpOpenURI::OpenURIProxy::new_for_bus(
diff --git a/net-im/telegram-desktop/files/patch-Telegram_lib__base_base_platform_linux_base__linux__dbus__utilities.cpp b/net-im/telegram-desktop/files/patch-Telegram_lib__base_base_platform_linux_base__linux__dbus__utilities.cpp
new file mode 100644
index 000000000000..e8dde3491c78
--- /dev/null
+++ b/net-im/telegram-desktop/files/patch-Telegram_lib__base_base_platform_linux_base__linux__dbus__utilities.cpp
@@ -0,0 +1,10 @@
+--- Telegram/lib_base/base/platform/linux/base_linux_dbus_utilities.cpp.orig	2024-03-08 22:01:55 UTC
++++ Telegram/lib_base/base/platform/linux/base_linux_dbus_utilities.cpp
+@@ -12,6 +12,7 @@ namespace base::Platform::DBus {
+ namespace {
+ 
+ using namespace gi::repository;
++namespace GObject = gi::repository::GObject;
+ 
+ gi::result<XdgDBus::DBus> MakeInterface(const GDBusConnection *connection) {
+ 	return XdgDBus::DBusProxy::new_sync(
diff --git a/net-im/telegram-desktop/files/patch-Telegram_lib__base_base_platform_linux_base__power__save__blocker__linux.cpp b/net-im/telegram-desktop/files/patch-Telegram_lib__base_base_platform_linux_base__power__save__blocker__linux.cpp
new file mode 100644
index 000000000000..08d2da45e124
--- /dev/null
+++ b/net-im/telegram-desktop/files/patch-Telegram_lib__base_base_platform_linux_base__power__save__blocker__linux.cpp
@@ -0,0 +1,10 @@
+--- Telegram/lib_base/base/platform/linux/base_power_save_blocker_linux.cpp.orig	2024-03-08 22:11:02 UTC
++++ Telegram/lib_base/base/platform/linux/base_power_save_blocker_linux.cpp
+@@ -26,6 +26,7 @@ namespace base::Platform {
+ namespace {
+ 
+ using namespace gi::repository;
++namespace GObject = gi::repository::GObject;
+ 
+ #ifndef DESKTOP_APP_DISABLE_X11_INTEGRATION
+ constexpr auto kResetScreenSaverTimeout = 10 * crl::time(1000);
diff --git a/net-im/telegram-desktop/files/patch-Telegram_lib__base_base_platform_linux_base__url__scheme__linux.cpp b/net-im/telegram-desktop/files/patch-Telegram_lib__base_base_platform_linux_base__url__scheme__linux.cpp
new file mode 100644
index 000000000000..038652f16e38
--- /dev/null
+++ b/net-im/telegram-desktop/files/patch-Telegram_lib__base_base_platform_linux_base__url__scheme__linux.cpp
@@ -0,0 +1,10 @@
+--- Telegram/lib_base/base/platform/linux/base_url_scheme_linux.cpp.orig	2024-03-08 21:53:47 UTC
++++ Telegram/lib_base/base/platform/linux/base_url_scheme_linux.cpp
+@@ -22,6 +22,7 @@ namespace base::Platform {
+ namespace {
+ 
+ using namespace gi::repository;
++namespace GObject = gi::repository::GObject;
+ 
+ void SnapDefaultHandler(const QString &protocol) {
+     Snapcraft::SettingsProxy::new_for_bus(
diff --git a/net-im/telegram-desktop/files/patch-cmake_external_glib_cppgir_tools_genutils.hpp b/net-im/telegram-desktop/files/patch-cmake_external_glib_cppgir_tools_genutils.hpp
index a00d7fad9ff1..e04d3707e282 100644
--- a/net-im/telegram-desktop/files/patch-cmake_external_glib_cppgir_tools_genutils.hpp
+++ b/net-im/telegram-desktop/files/patch-cmake_external_glib_cppgir_tools_genutils.hpp
@@ -1,4 +1,4 @@
---- cmake/external/glib/cppgir/tools/genutils.hpp.orig	2023-12-20 18:54:36 UTC
+--- cmake/external/glib/cppgir/tools/genutils.hpp.orig	2024-03-06 19:25:51 UTC
 +++ cmake/external/glib/cppgir/tools/genutils.hpp
 @@ -4,6 +4,7 @@
  #include "common.hpp"
@@ -7,4 +7,4 @@
 +#include <sstream>
  #include <regex>
  #include <set>
- #include <string>
+ #include <sstream>
diff --git a/net-im/telegram-desktop/files/patch-cmake_external_qt_CMakeLists.txt b/net-im/telegram-desktop/files/patch-cmake_external_qt_CMakeLists.txt
index 3604617e930c..236d0cf6c85e 100644
--- a/net-im/telegram-desktop/files/patch-cmake_external_qt_CMakeLists.txt
+++ b/net-im/telegram-desktop/files/patch-cmake_external_qt_CMakeLists.txt
@@ -1,4 +1,4 @@
---- cmake/external/qt/CMakeLists.txt.orig	2023-09-13 17:06:28 UTC
+--- cmake/external/qt/CMakeLists.txt.orig	2024-03-08 11:07:18 UTC
 +++ cmake/external/qt/CMakeLists.txt
 @@ -16,6 +16,8 @@ if (DESKTOP_APP_USE_PACKAGED)
          Qt::CorePrivate
@@ -29,7 +29,7 @@
      ${qt_loc}/include/QtWidgets/${qt_version}/QtWidgets
  )
  
-@@ -92,6 +97,12 @@ set(common_qt_libs
+@@ -97,6 +102,12 @@ set(common_qt_libs
      lib/${qt_lib_prefix}Qt${QT_VERSION_MAJOR}Gui
      lib/${qt_lib_prefix}Qt${QT_VERSION_MAJOR}Core
  )