summaryrefslogtreecommitdiff
path: root/legacy/telegram/endian.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2022-07-03 17:12:43 -0500
committerZach van Rijn <me@zv.io>2022-10-21 18:34:02 -0500
commit9ac6bc00a1563dc270d2464054709bdfd0592af0 (patch)
tree4de9184024cc83be041c79ce0b1acf4da9448e7d /legacy/telegram/endian.patch
parent8a240ed95da6e3299fd0542d2799499866080494 (diff)
downloadpackages-9ac6bc00a1563dc270d2464054709bdfd0592af0.tar.gz
packages-9ac6bc00a1563dc270d2464054709bdfd0592af0.tar.bz2
packages-9ac6bc00a1563dc270d2464054709bdfd0592af0.tar.xz
packages-9ac6bc00a1563dc270d2464054709bdfd0592af0.zip
user/telegram: Move to legacy/
Big-endian support never landed, which takes out two architectures. Telegram never built properly on ARMv7, which takes out another one. This violates our policy of packages in user/ being available for a minimum of 5 of 6 architectures unless it is a system-specific package. Additionally, there have been internal disagreements on how to approach handling of the API key material. On the personal side, I don't have a lot of time to chase upstream, and I don't want to ship something potentially security-sensitive in such a state.
Diffstat (limited to 'legacy/telegram/endian.patch')
-rw-r--r--legacy/telegram/endian.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/legacy/telegram/endian.patch b/legacy/telegram/endian.patch
new file mode 100644
index 000000000..40a3b4478
--- /dev/null
+++ b/legacy/telegram/endian.patch
@@ -0,0 +1,25 @@
+From d4c11502175e2a7821dbd92e029a90d54498e3e8 Mon Sep 17 00:00:00 2001
+From: John Zimmermann <johnz@posteo.net>
+Date: Thu, 2 Jan 2020 12:57:33 +0100
+Subject: [PATCH] Build on big endian
+
+---
+ Telegram/SourceFiles/config.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git Telegram/SourceFiles/config.h Telegram/SourceFiles/config.h
+index fb7b54e4d..6a873fbd7 100644
+--- a/Telegram/SourceFiles/config.h
++++ b/Telegram/SourceFiles/config.h
+@@ -162,7 +162,7 @@ constexpr auto ApiHash = "344583e45741c457fe1862106095a5eb";
+ #endif // TDESKTOP_API_ID && TDESKTOP_API_HASH
+
+ #if Q_BYTE_ORDER == Q_BIG_ENDIAN
+-#error "Only little endian is supported!"
++#warning "Only little endian is supported!"
+ #endif // Q_BYTE_ORDER == Q_BIG_ENDIAN
+
+ #if (TDESKTOP_ALPHA_VERSION != 0)
+--
+2.24.1
+