diff options
author | Allen Wild | 2018-12-11 20:30:00 -0500 |
---|---|---|
committer | Allen Wild | 2018-12-11 20:30:00 -0500 |
commit | 271ea6c2321ab9763c463370da68a55a2db34ff7 (patch) | |
tree | b19b228872b9b62bb375b41e8e35fc8a7abbd1e2 /tdesktop.patch | |
parent | b5d628f93fd3b516ca954eafaacd301318721849 (diff) | |
download | aur-271ea6c2321ab9763c463370da68a55a2db34ff7.tar.gz |
update to 1.5.1-2: rebase tdesktop.patch, rebuilt emoji
1.5.1-1 used tdesktop.patch exactly from [community], here I fixed the
s/uname -p/uname -m/ instances which re-enable LTO and also regenerate
with git-format-patch which makes resolving merge conflicts easier in
the future.
Diffstat (limited to 'tdesktop.patch')
-rw-r--r-- | tdesktop.patch | 77 |
1 files changed, 61 insertions, 16 deletions
diff --git a/tdesktop.patch b/tdesktop.patch index 68e9afc27245..a4d1efe6f32e 100644 --- a/tdesktop.patch +++ b/tdesktop.patch @@ -1,13 +1,39 @@ +From 179bb4a7ee16fae8912b73500bca0bbf2cfef7dd Mon Sep 17 00:00:00 2001 +From: Allen Wild <allenwild93@gmail.com> +Date: Tue, 11 Dec 2018 19:58:46 -0500 +Subject: [PATCH] tdesktop.patch + +--- + Telegram/Resources/qrc/telegram_linux.qrc | 1 - + Telegram/SourceFiles/core/launcher.cpp | 12 ++- + .../SourceFiles/platform/linux/linux_libs.h | 2 +- + Telegram/SourceFiles/qt_functions.cpp | 94 +++++++++++++++++++ + Telegram/SourceFiles/qt_static_plugins.cpp | 10 -- + Telegram/SourceFiles/ui/text/text.cpp | 6 +- + Telegram/SourceFiles/ui/text/text_block.cpp | 3 + + Telegram/SourceFiles/ui/twidget.cpp | 4 +- + Telegram/gyp/PrecompiledHeader.cmake | 4 +- + Telegram/gyp/Telegram.gyp | 12 +-- + Telegram/gyp/qt.gypi | 64 +++---------- + Telegram/gyp/qt_moc.gypi | 2 +- + Telegram/gyp/qt_rcc.gypi | 2 +- + Telegram/gyp/settings_linux.gypi | 4 +- + Telegram/gyp/telegram_linux.gypi | 41 ++++---- + Telegram/gyp/telegram_sources.txt | 9 +- + 16 files changed, 150 insertions(+), 120 deletions(-) + create mode 100644 Telegram/SourceFiles/qt_functions.cpp + diff --git a/Telegram/Resources/qrc/telegram_linux.qrc b/Telegram/Resources/qrc/telegram_linux.qrc -index 0554fa179..3ea027406 100644 +index 164e8d4f2..12319be14 100644 --- a/Telegram/Resources/qrc/telegram_linux.qrc +++ b/Telegram/Resources/qrc/telegram_linux.qrc -@@ -1,5 +1,4 @@ +@@ -1,6 +1,5 @@ <RCC> <qresource prefix="/qt"> - <file alias="etc/qt.conf">../etc/qt_linux.conf</file> </qresource> - </RCC> + <qresource prefix="/fc"> + <file alias="fc-custom.conf">../fc-custom.conf</file> diff --git a/Telegram/SourceFiles/core/launcher.cpp b/Telegram/SourceFiles/core/launcher.cpp index d4bdadc17..8a420c74b 100644 --- a/Telegram/SourceFiles/core/launcher.cpp @@ -40,10 +66,10 @@ index d4bdadc17..8a420c74b 100644 DEBUG_LOG(("Telegram finished, result: %1").arg(result)); diff --git a/Telegram/SourceFiles/platform/linux/linux_libs.h b/Telegram/SourceFiles/platform/linux/linux_libs.h -index 6f93d69cd..df185d5a2 100644 +index 4834fee11..2e60a6513 100644 --- a/Telegram/SourceFiles/platform/linux/linux_libs.h +++ b/Telegram/SourceFiles/platform/linux/linux_libs.h -@@ -17,7 +17,7 @@ extern "C" { +@@ -21,7 +21,7 @@ extern "C" { } // extern "C" #ifndef TDESKTOP_DISABLE_UNITY_INTEGRATION @@ -172,10 +198,10 @@ index a757d085f..122ff0f5d 100644 -Q_IMPORT_PLUGIN(NimfInputContextPlugin) #endif // Q_OS_WIN | Q_OS_MAC | Q_OS_LINUX diff --git a/Telegram/SourceFiles/ui/text/text.cpp b/Telegram/SourceFiles/ui/text/text.cpp -index 944f58479..887c1982f 100644 +index bc4d3d57b..370e5fe85 100644 --- a/Telegram/SourceFiles/ui/text/text.cpp +++ b/Telegram/SourceFiles/ui/text/text.cpp -@@ -1750,11 +1750,11 @@ private: +@@ -1760,11 +1760,11 @@ private: if (item == -1) return; @@ -205,10 +231,10 @@ index 2959cec77..04ad00645 100644 CrashReports::ClearAnnotationRef("CrashString"); } diff --git a/Telegram/SourceFiles/ui/twidget.cpp b/Telegram/SourceFiles/ui/twidget.cpp -index 71f318229..461f52278 100644 +index 0ccc63ed5..464921148 100644 --- a/Telegram/SourceFiles/ui/twidget.cpp +++ b/Telegram/SourceFiles/ui/twidget.cpp -@@ -233,9 +233,9 @@ void sendSynteticMouseEvent(QWidget *widget, QEvent::Type type, Qt::MouseButton +@@ -245,9 +245,9 @@ void sendSynteticMouseEvent(QWidget *widget, QEvent::Type type, Qt::MouseButton , button , QGuiApplication::mouseButtons() | button , QGuiApplication::keyboardModifiers() @@ -243,7 +269,7 @@ index a0e1e0489..223113081 100644 IMPLICIT_DEPENDS CXX "${_pch_header}" COMMENT "Precompiling header ${_name} for ${_target} (C++)") diff --git a/Telegram/gyp/Telegram.gyp b/Telegram/gyp/Telegram.gyp -index 1cab5ae29..465e8276a 100644 +index ac7696e1d..07193cf19 100644 --- a/Telegram/gyp/Telegram.gyp +++ b/Telegram/gyp/Telegram.gyp @@ -75,7 +75,6 @@ @@ -262,7 +288,7 @@ index 1cab5ae29..465e8276a 100644 'AL_ALEXT_PROTOTYPES', 'TGVOIP_USE_CXX11_LIB', 'XXH_INLINE_ALL', -@@ -94,16 +92,8 @@ +@@ -96,16 +94,8 @@ 'include_dirs': [ '<(src_loc)', '<(SHARED_INTERMEDIATE_DIR)', @@ -437,7 +463,7 @@ index f5624a82b..1129a95c5 100644 '-no-compress', '<(RULE_INPUT_PATH)', diff --git a/Telegram/gyp/settings_linux.gypi b/Telegram/gyp/settings_linux.gypi -index 17219fa2c..6853b5c3e 100644 +index 17219fa2c..b00fd50ea 100644 --- a/Telegram/gyp/settings_linux.gypi +++ b/Telegram/gyp/settings_linux.gypi @@ -11,7 +11,6 @@ @@ -448,6 +474,15 @@ index 17219fa2c..6853b5c3e 100644 '-W', '-fPIC', '-Wno-unused-variable', +@@ -43,7 +42,7 @@ + 'sources': [ '__Wrong_Official_Build_Target_<(official_build_target)_' ], + }], + ], +- }], [ '"<!(uname -p)" == "x86_64"', { ++ }], [ '"<!(uname -m)" == "x86_64"', { + # 32 bit version can't be linked with debug info or LTO, + # virtual memory exhausted :( + 'cflags_c': [ '-g' ], @@ -60,7 +59,6 @@ ], 'defines': [ @@ -457,7 +492,7 @@ index 17219fa2c..6853b5c3e 100644 ], 'cflags_c': [ diff --git a/Telegram/gyp/telegram_linux.gypi b/Telegram/gyp/telegram_linux.gypi -index ffe0e5a96..bd2ed758f 100644 +index ffe0e5a96..82316d15b 100644 --- a/Telegram/gyp/telegram_linux.gypi +++ b/Telegram/gyp/telegram_linux.gypi @@ -23,10 +23,11 @@ @@ -518,7 +553,14 @@ index ffe0e5a96..bd2ed758f 100644 # '<!(pkg-config 2> /dev/null --libs <@(pkgconfig_libs))', ], 'cflags_cc': [ -@@ -97,9 +89,8 @@ +@@ -91,15 +83,14 @@ + }, + }, + 'conditions': [ +- [ '"<!(uname -p)" != "x86_64"', { ++ [ '"<!(uname -m)" != "x86_64"', { + 'ldflags': [ + '-Wl,-wrap,__divmoddi4', ], }], ['not_need_gtk!="True"', { 'cflags_cc': [ @@ -531,10 +573,10 @@ index ffe0e5a96..bd2ed758f 100644 }], ['<!(pkg-config ayatana-appindicator3-0.1; echo $?) == 0', { 'cflags_cc': [ '<!(pkg-config --cflags ayatana-appindicator3-0.1)' ], diff --git a/Telegram/gyp/telegram_sources.txt b/Telegram/gyp/telegram_sources.txt -index f02296c8a..46bd016dd 100644 +index 03c8a1335..77884c330 100644 --- a/Telegram/gyp/telegram_sources.txt +++ b/Telegram/gyp/telegram_sources.txt -@@ -755,14 +755,7 @@ +@@ -775,14 +775,7 @@ <(emoji_suggestions_loc)/emoji_suggestions.cpp <(emoji_suggestions_loc)/emoji_suggestions.h @@ -550,3 +592,6 @@ index f02296c8a..46bd016dd 100644 platforms: win <(res_loc)/winrc/Telegram.rc +-- +2.20.0 + |