Control: tags -1 + patch X-Debbugs-CC: Mattia Rizzolo <mat...@debian.org>
I'm providing an initial workaround for this problem. It seems that upstream code would give up when compiling if the host is not x86 or x86_64. However, such information and defined macros were not used anywhere in the source code. Thus I think we could simply patch away the blocking #error macro. From 8f107b4eaed482ef118eabd963138d27bb8ab89c Mon Sep 17 00:00:00 2001 From: Boyuan Yang <073p...@gmail.com> Date: Fri, 31 Mar 2017 15:26:05 +0800 Subject: add patch: disable build arch check to build on non-x86 arch --- debian/patches/debian-disable-build-arch-check.patch | 12 ++++++++++++ debian/patches/series | 1 + 2 files changed, 13 insertions(+) create mode 100644 debian/patches/debian-disable-build-arch-check.patch diff --git a/debian/patches/debian-disable-build-arch-check.patch b/debian/ patches/debian-disable-build-arch-check.patch new file mode 100644 index 00000000..44977d33 --- /dev/null +++ b/debian/patches/debian-disable-build-arch-check.patch @@ -0,0 +1,12 @@ +--- a/Telegram/SourceFiles/core/build_config.h ++++ b/Telegram/SourceFiles/core/build_config.h +@@ -61,7 +61,8 @@ + #define ARCH_CPU_X86 1 + #define ARCH_CPU_32_BITS 1 + #else +-#error Please add support for your architecture in core/build_config.h ++// Disable architecture check to build for non-x86 machines ++//#error Please add support for your architecture in core/build_config.h + #endif + + #if defined(COMPILER_GCC) || defined(COMPILER_CLANG) diff --git a/debian/patches/series b/debian/patches/series index 1a17a3ba..b01b2f36 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -3,3 +3,4 @@ Flags-for-precompiled-header-and-MOC.patch Fix-desktop-integration-issues.patch Debian-API-ID.patch Reduce-number-of-libraries.patch +debian-disable-build-arch-check.patch -- 2.11.0 Maybe we need an experimental upload for that and see if everything works fine with it. -- Regards, Boyuan Yang
signature.asc
Description: This is a digitally signed message part.