gnu: telegram-desktop: Update to version 5.12.3.

Add three patches to fix the compilation errors raised by gcc 11.
Note: https://github.com/desktop-app/cmake_helpers/pull/320 was merged,
so telegram-desktop-unbundle-gsl.patch is no longer needed.

* gnu/packages/telegram.scm (%telegram-version): Update to 5.12.3.
(codegen-for-telegram-desktop): Update to revision used by v5.12.3.
(lib-base-for-telegram-desktop): Likewise.
(lib-lottie-for-telegram-desktop): Likewise.
(lib-rpl-for-telegram-desktop): Likewise.
(lib-spellcheck-for-telegram-desktop): Likewise.
(lib-ui-for-telegram-desktop): Likewise.
(lib-webrtc-for-telegram-desktop): Likewise.
(cmake-helpers-for-telegram-desktop): Likewise;
Remove the obsolete patch.
(lib-tl-for-telegram-desktop):
Apply a patch to fix gcc-11 compilation error.
(telegram-desktop): Update to v5.12.3;
Apply patches to make it compile.
* gnu/packages/patches/telegram-desktop-unbundle-gsl.patch: Remove.
* gnu/packages/patches/lib-tl-for-telegram-memcpy.patch: New file.
* gnu/packages/patches/telegram-desktop-hashmap-incomplete-value.patch:
New file.
* gnu/packages/patches/telegram-desktop-qguiapp.patch: New file.
* gnu/local.mk: Adjust accordingly.

Change-Id: Iaa34ff2cd3f55aa92b1d9ba61a2ff66a72eb1132
Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
This commit is contained in:
Arseniy Zaostrovnykh 2025-03-17 09:07:53 +01:00 committed by Jonathan Brielmaier
parent 0c99a75fe1
commit aaf4bf1491
No known key found for this signature in database
GPG key ID: ECFC83988B4E4B9F
6 changed files with 141 additions and 56 deletions

View file

@ -0,0 +1,26 @@
From 7e08865a01b265bd884bb9e39ecc86497bcf5203 Mon Sep 17 00:00:00 2001
From: Arseniy Zaostrovnykh <necto.ne@gmail.com>
Date: Sun, 16 Mar 2025 20:56:37 +0100
Subject: [PATCH] tl/tl_basic_types.h: Fix compile error for missing memcpy.
* tl/tl_basic_types.h: Add include for cstring to fix the compilation
error about missing memcpy raised by gcc 11.
---
tl/tl_basic_types.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/tl/tl_basic_types.h b/tl/tl_basic_types.h
index 5eadf62..e9b6da5 100644
--- a/tl/tl_basic_types.h
+++ b/tl/tl_basic_types.h
@@ -11,6 +11,7 @@
#include "base/bytes.h"
#include <QtCore/QVector>
+#include <cstring>
namespace tl {
namespace details {
--
2.48.1