diff options
author | Allen Wild | 2018-09-01 19:37:28 -0400 |
---|---|---|
committer | Allen Wild | 2018-09-02 00:05:09 -0400 |
commit | d7e62dbffbd5ddd8f8958f1ed645f17547e0144c (patch) | |
tree | dc89ddd567289b1c818654c6c6bb6a0c8521b6af | |
parent | ee0a68c82304eb409415a00a2eb9f410cd85d87e (diff) | |
download | aur-d7e62dbffbd5ddd8f8958f1ed645f17547e0144c.tar.gz |
update to 1.3.15-1
* rebase tdesktop.patch (and fix another s/uname -p/uname -m/)
* add precompiled headers for lib_base and lib_storage
* add crl to gitignore
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | CMakeLists.inj | 6 | ||||
-rw-r--r-- | PKGBUILD | 6 | ||||
-rw-r--r-- | tdesktop.patch | 109 |
5 files changed, 75 insertions, 55 deletions
@@ -1,6 +1,6 @@ pkgbase = telegram-desktop-systemqt-notoemoji pkgdesc = Official Telegram Desktop client (with noto emoji) - pkgver = 1.3.10 + pkgver = 1.3.15 pkgrel = 1 url = https://desktop.telegram.org/ arch = x86_64 @@ -21,7 +21,7 @@ pkgbase = telegram-desktop-systemqt-notoemoji optdepends = libnotify: desktop notifications provides = telegram-desktop conflicts = telegram-desktop - source = tdesktop::git+https://github.com/telegramdesktop/tdesktop.git#tag=v1.3.10 + source = tdesktop::git+https://github.com/telegramdesktop/tdesktop.git#tag=v1.3.15 source = libtgvoip::git+https://github.com/telegramdesktop/libtgvoip source = variant::git+https://github.com/mapbox/variant source = GSL::git+https://github.com/Microsoft/GSL.git @@ -43,8 +43,8 @@ pkgbase = telegram-desktop-systemqt-notoemoji sha512sums = 376a4860e37b0f60892f362e954f976a563c632579167003b4aacbb24b6fea6aabb4e6952baf6d1a546b961936935cc49cf0e0ce9570320245b6bb326cb149e5 sha512sums = fa7042f370ae4e2e14d083395743cdee25bfedc39ab5273b5d1ab12fb074757cf76dab065f2abcb44cad018920e711142fbf24a2b9cd30f517c5a5b46d6a6182 sha512sums = b87414ceaae19185a8a5749cea1f6d9f3fc3c69b8dd729e3db8790cde00b987c3c827cd30baf0eac579d1884e34aa2f37bb90778c3c0bc9ca211d75a82891b9d - sha512sums = 2647251940f0d3a2d41ca8a32a592f1ab1e23fe02d3b11d8dc3a54ef34df7c290c9cbf3df76b09970e1cba15c149bc38d49fc824a173d4b21c54edb3c5d5a3da - sha512sums = 00b4307143cf599859d9b9b6d7ac4acbe8b407da55a1e3833921e113dc3aed8c61f2e5f2c1c37e81a261ba4b9e6f40d9bf5f8c90c20dcf0820cfb73852cb091d + sha512sums = 95f6fe5e39a8c376280be93c93d92511c2bc5d6172e85059aa2e7e5adce86aa47003c97230f7cfa4076f2189dc0364da2d789d1f02b70824792cc082cfab0175 + sha512sums = 251c01424e74a5dce0a70bf4640f1b806017590f5c6db06a07bb7c83b793024a06b7d5e172a01854af44dd34af586096d74129db8c9456f1b766cce65366a9b4 sha512sums = 7a37e0ca582145a56a411585aec0bc94889dc18a80cc038d2efa237e19eebf8b67d56825e068be88f7566b08316ce068d7f20c25729caa33d0e9d6c370325025 sha512sums = d60694dc701aa985b0e82a12c9732b945082470441c687b33167a94f94efcf253baf43bb7280ec160ba338485ee5c62de138e4804cae05f27cc5cf4298166d39 diff --git a/.gitignore b/.gitignore index 22ef5ae4653d..adf2d4b2081b 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ pkg tdesktop *.webp *.webp_* +crl Catch GSL variant diff --git a/CMakeLists.inj b/CMakeLists.inj index 24ed27799bce..df938511ae1c 100644 --- a/CMakeLists.inj +++ b/CMakeLists.inj @@ -8,8 +8,10 @@ set_target_properties(Telegram PROPERTIES SKIP_BUILD_RPATH TRUE) # Telegram/Patches/gyp.diff file will be changed in future, please check these # lines. include(../../Telegram/gyp/PrecompiledHeader.cmake) -add_precompiled_header(Telegram ../../Telegram/SourceFiles/stdafx.h) -add_precompiled_header(lib_export ../../Telegram/SourceFiles/export/export_pch.h) +add_precompiled_header(Telegram ../../Telegram/SourceFiles/stdafx.h) +add_precompiled_header(lib_base ../../Telegram/SourceFiles/base/base_pch.h) +add_precompiled_header(lib_export ../../Telegram/SourceFiles/export/export_pch.h) +add_precompiled_header(lib_storage ../../Telegram/SourceFiles/storage/storage_pch.h) # vim: ft=cmake # -------------- debian/CMakeLists.inj end -------------- @@ -6,7 +6,7 @@ # https://github.com/mymedia2/tdesktop pkgname=telegram-desktop-systemqt-notoemoji -pkgver=1.3.10 +pkgver=1.3.15 pkgrel=1 pkgdesc='Official Telegram Desktop client (with noto emoji)' arch=('x86_64') @@ -43,8 +43,8 @@ sha512sums=('SKIP' '376a4860e37b0f60892f362e954f976a563c632579167003b4aacbb24b6fea6aabb4e6952baf6d1a546b961936935cc49cf0e0ce9570320245b6bb326cb149e5' 'fa7042f370ae4e2e14d083395743cdee25bfedc39ab5273b5d1ab12fb074757cf76dab065f2abcb44cad018920e711142fbf24a2b9cd30f517c5a5b46d6a6182' 'b87414ceaae19185a8a5749cea1f6d9f3fc3c69b8dd729e3db8790cde00b987c3c827cd30baf0eac579d1884e34aa2f37bb90778c3c0bc9ca211d75a82891b9d' - '2647251940f0d3a2d41ca8a32a592f1ab1e23fe02d3b11d8dc3a54ef34df7c290c9cbf3df76b09970e1cba15c149bc38d49fc824a173d4b21c54edb3c5d5a3da' - '00b4307143cf599859d9b9b6d7ac4acbe8b407da55a1e3833921e113dc3aed8c61f2e5f2c1c37e81a261ba4b9e6f40d9bf5f8c90c20dcf0820cfb73852cb091d' + '95f6fe5e39a8c376280be93c93d92511c2bc5d6172e85059aa2e7e5adce86aa47003c97230f7cfa4076f2189dc0364da2d789d1f02b70824792cc082cfab0175' + '251c01424e74a5dce0a70bf4640f1b806017590f5c6db06a07bb7c83b793024a06b7d5e172a01854af44dd34af586096d74129db8c9456f1b766cce65366a9b4' '7a37e0ca582145a56a411585aec0bc94889dc18a80cc038d2efa237e19eebf8b67d56825e068be88f7566b08316ce068d7f20c25729caa33d0e9d6c370325025' 'd60694dc701aa985b0e82a12c9732b945082470441c687b33167a94f94efcf253baf43bb7280ec160ba338485ee5c62de138e4804cae05f27cc5cf4298166d39') diff --git a/tdesktop.patch b/tdesktop.patch index ff87d80154c4..717d0adf88cf 100644 --- a/tdesktop.patch +++ b/tdesktop.patch @@ -1,5 +1,5 @@ diff --git a/Telegram/Resources/qrc/telegram_linux.qrc b/Telegram/Resources/qrc/telegram_linux.qrc -index 0554fa17..3ea02740 100644 +index 0554fa179..3ea027406 100644 --- a/Telegram/Resources/qrc/telegram_linux.qrc +++ b/Telegram/Resources/qrc/telegram_linux.qrc @@ -1,5 +1,4 @@ @@ -9,10 +9,10 @@ index 0554fa17..3ea02740 100644 </qresource> </RCC> diff --git a/Telegram/SourceFiles/core/launcher.cpp b/Telegram/SourceFiles/core/launcher.cpp -index bf21d14d..6b63016e 100644 +index d4bdadc17..8a420c74b 100644 --- a/Telegram/SourceFiles/core/launcher.cpp +++ b/Telegram/SourceFiles/core/launcher.cpp -@@ -44,9 +44,10 @@ void Launcher::init() { +@@ -39,9 +39,10 @@ void Launcher::init() { QCoreApplication::setApplicationName(qsl("TelegramDesktop")); @@ -25,7 +25,7 @@ index bf21d14d..6b63016e 100644 initHook(); } -@@ -64,6 +65,13 @@ int Launcher::exec() { +@@ -59,6 +60,13 @@ int Launcher::exec() { Logs::start(this); // must be started before Platform is started Platform::start(); // must be started before QApplication is created @@ -40,10 +40,10 @@ index bf21d14d..6b63016e 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 e9e349be..d82963fa 100644 +index 6f93d69cd..df185d5a2 100644 --- a/Telegram/SourceFiles/platform/linux/linux_libs.h +++ b/Telegram/SourceFiles/platform/linux/linux_libs.h -@@ -30,7 +30,7 @@ extern "C" { +@@ -17,7 +17,7 @@ extern "C" { } // extern "C" #ifndef TDESKTOP_DISABLE_UNITY_INTEGRATION @@ -54,7 +54,7 @@ index e9e349be..d82963fa 100644 diff --git a/Telegram/SourceFiles/qt_functions.cpp b/Telegram/SourceFiles/qt_functions.cpp new file mode 100644 -index 00000000..4a722b8d +index 000000000..4a722b8d7 --- /dev/null +++ b/Telegram/SourceFiles/qt_functions.cpp @@ -0,0 +1,94 @@ @@ -153,10 +153,10 @@ index 00000000..4a722b8d + flags |= QTextItem::StrikeOut; +} diff --git a/Telegram/SourceFiles/qt_static_plugins.cpp b/Telegram/SourceFiles/qt_static_plugins.cpp -index b975c7a8..f2f876b3 100644 +index e29f348c8..122ff0f5d 100644 --- a/Telegram/SourceFiles/qt_static_plugins.cpp +++ b/Telegram/SourceFiles/qt_static_plugins.cpp -@@ -28,13 +28,4 @@ Q_IMPORT_PLUGIN(QWebpPlugin) +@@ -15,13 +15,4 @@ Q_IMPORT_PLUGIN(QWebpPlugin) Q_IMPORT_PLUGIN(QCocoaIntegrationPlugin) Q_IMPORT_PLUGIN(QGenericEnginePlugin) #elif defined Q_OS_LINUX // Q_OS_WIN | Q_OS_MAC @@ -171,10 +171,10 @@ index b975c7a8..f2f876b3 100644 -Q_IMPORT_PLUGIN(QHimePlatformInputContextPlugin) #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 7d34a19b..a4b3d31a 100644 +index 944f58479..887c1982f 100644 --- a/Telegram/SourceFiles/ui/text/text.cpp +++ b/Telegram/SourceFiles/ui/text/text.cpp -@@ -1707,11 +1707,11 @@ private: +@@ -1750,11 +1750,11 @@ private: if (item == -1) return; @@ -190,10 +190,10 @@ index 7d34a19b..a4b3d31a 100644 auto blockIndex = _lineStartBlock; auto currentBlock = _t->_blocks[blockIndex].get(); diff --git a/Telegram/SourceFiles/ui/text/text_block.cpp b/Telegram/SourceFiles/ui/text/text_block.cpp -index a10b5393..4e1eb62d 100644 +index 2959cec77..04ad00645 100644 --- a/Telegram/SourceFiles/ui/text/text_block.cpp +++ b/Telegram/SourceFiles/ui/text/text_block.cpp -@@ -333,6 +333,9 @@ TextBlock::TextBlock(const style::font &font, const QString &str, QFixed minResi +@@ -332,6 +332,9 @@ TextBlock::TextBlock(const style::font &font, const QString &str, QFixed minResi QStackTextEngine engine(part, blockFont->f); BlockParser parser(&engine, this, minResizeWidth, _from, part); @@ -204,10 +204,10 @@ index a10b5393..4e1eb62d 100644 CrashReports::ClearAnnotationRef("CrashString"); } diff --git a/Telegram/SourceFiles/ui/twidget.cpp b/Telegram/SourceFiles/ui/twidget.cpp -index dacb848a..f64c9b66 100644 +index 71f318229..461f52278 100644 --- a/Telegram/SourceFiles/ui/twidget.cpp +++ b/Telegram/SourceFiles/ui/twidget.cpp -@@ -248,9 +248,9 @@ void sendSynteticMouseEvent(QWidget *widget, QEvent::Type type, Qt::MouseButton +@@ -233,9 +233,9 @@ void sendSynteticMouseEvent(QWidget *widget, QEvent::Type type, Qt::MouseButton , button , QGuiApplication::mouseButtons() | button , QGuiApplication::keyboardModifiers() @@ -220,10 +220,10 @@ index dacb848a..f64c9b66 100644 ev.setTimestamp(getms()); QGuiApplication::sendEvent(windowHandle, &ev); diff --git a/Telegram/gyp/PrecompiledHeader.cmake b/Telegram/gyp/PrecompiledHeader.cmake -index 5d6830e9..c3f08d3f 100644 +index a0e1e0489..223113081 100644 --- a/Telegram/gyp/PrecompiledHeader.cmake +++ b/Telegram/gyp/PrecompiledHeader.cmake -@@ -112,7 +112,7 @@ function(add_precompiled_header _target _input) +@@ -114,7 +114,7 @@ function(add_precompiled_header _target _input) set(_compiler_FLAGS "@${_pch_c_flags_file}") add_custom_command( OUTPUT "${_output_c}" @@ -232,7 +232,7 @@ index 5d6830e9..c3f08d3f 100644 DEPENDS "${_pchfile}" "${_pch_c_flags_file}" IMPLICIT_DEPENDS C "${_pch_header}" COMMENT "Precompiling ${_name} for ${_target} (C)") -@@ -123,7 +123,7 @@ function(add_precompiled_header _target _input) +@@ -125,7 +125,7 @@ function(add_precompiled_header _target _input) set(_compiler_FLAGS "@${_pch_cpp_flags_file}") add_custom_command( OUTPUT "${_output_cxx}" @@ -240,27 +240,28 @@ index 5d6830e9..c3f08d3f 100644 + COMMAND "${CMAKE_CXX_COMPILER}" ${_compiler_FLAGS} "$(CXX_DEFINES)" "$(CXX_INCLUDES)" "$(CXX_FLAGS)" -x c++-header -o "${_output_cxx}" -c "${_pchfile}" DEPENDS "${_pchfile}" "${_pch_cpp_flags_file}" IMPLICIT_DEPENDS CXX "${_pch_header}" - COMMENT "Precompiling ${_name} for ${_target} (C++)") + COMMENT "Precompiling header ${_name} for ${_target} (C++)") diff --git a/Telegram/gyp/Telegram.gyp b/Telegram/gyp/Telegram.gyp -index 84a06153..fd7ca47f 100644 +index 1cab5ae29..cc794d341 100644 --- a/Telegram/gyp/Telegram.gyp +++ b/Telegram/gyp/Telegram.gyp -@@ -82,13 +82,11 @@ +@@ -75,7 +75,6 @@ 'codegen.gyp:codegen_numbers', 'codegen.gyp:codegen_style', 'tests/tests.gyp:tests', - 'utils.gyp:Updater', '../ThirdParty/libtgvoip/libtgvoip.gyp:libtgvoip', 'crl.gyp:crl', - 'lib_export.gyp:lib_export', + 'lib_base.gyp:lib_base', +@@ -84,7 +83,6 @@ ], 'defines': [ - 'AL_LIBTYPE_STATIC', 'AL_ALEXT_PROTOTYPES', 'TGVOIP_USE_CXX11_LIB', - '<!@(python -c "for s in \'<(build_defines)\'.split(\',\'): print(s)")', -@@ -97,15 +95,7 @@ + 'XXH_INLINE_ALL', +@@ -94,15 +92,7 @@ 'include_dirs': [ '<(src_loc)', '<(SHARED_INTERMEDIATE_DIR)', @@ -278,10 +279,10 @@ index 84a06153..fd7ca47f 100644 '<(submodules_loc)/GSL/include', '<(submodules_loc)/variant/include', diff --git a/Telegram/gyp/qt.gypi b/Telegram/gyp/qt.gypi -index dea127a3..62c95e68 100644 +index 0b783ec21..3f917765a 100644 --- a/Telegram/gyp/qt.gypi +++ b/Telegram/gyp/qt.gypi -@@ -27,25 +27,21 @@ +@@ -14,25 +14,21 @@ [ 'build_macold', { 'qt_version%': '5.3.2', }, { @@ -309,7 +310,7 @@ index dea127a3..62c95e68 100644 }] ] }, -@@ -85,32 +81,13 @@ +@@ -72,32 +68,13 @@ ], }], [ 'build_linux', { @@ -345,7 +346,7 @@ index dea127a3..62c95e68 100644 ], }], ], -@@ -140,11 +117,6 @@ +@@ -127,11 +104,6 @@ # '<!@(python <(DEPTH)/list_sources.py [sources] <(qt_moc_list_sources_arg))' # where [sources] contains all your source files 'qt_moc_list_sources_arg': '--moc-prefix SHARED_INTERMEDIATE_DIR/<(_target_name)/moc/moc_', @@ -357,7 +358,7 @@ index dea127a3..62c95e68 100644 }, 'configurations': { -@@ -193,14 +165,14 @@ +@@ -180,14 +152,14 @@ }, 'include_dirs': [ @@ -380,7 +381,7 @@ index dea127a3..62c95e68 100644 ], 'library_dirs': [ '<(qt_loc)/lib', -@@ -225,17 +197,10 @@ +@@ -212,17 +184,10 @@ ], 'libraries': [ '<(PRODUCT_DIR)/obj.target/liblinux_glibc_wraps.a', @@ -399,7 +400,7 @@ index dea127a3..62c95e68 100644 '-lglib-2.0', '-lpthread', ], -@@ -243,7 +208,6 @@ +@@ -230,7 +195,6 @@ '<(qt_loc)/mkspecs/linux-g++', ], 'ldflags': [ @@ -408,10 +409,10 @@ index dea127a3..62c95e68 100644 '-rdynamic', ], diff --git a/Telegram/gyp/qt_moc.gypi b/Telegram/gyp/qt_moc.gypi -index fae668dc..99e184a3 100644 +index 464d3c818..f350da8f3 100644 --- a/Telegram/gyp/qt_moc.gypi +++ b/Telegram/gyp/qt_moc.gypi -@@ -25,7 +25,7 @@ +@@ -12,7 +12,7 @@ '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)/moc/moc_<(RULE_INPUT_ROOT).cpp', ], 'action': [ @@ -421,10 +422,10 @@ index fae668dc..99e184a3 100644 # Silence "Note: No relevant classes found. No output generated." '--no-notes', diff --git a/Telegram/gyp/qt_rcc.gypi b/Telegram/gyp/qt_rcc.gypi -index eebc6967..19a346fe 100644 +index f5624a82b..1129a95c5 100644 --- a/Telegram/gyp/qt_rcc.gypi +++ b/Telegram/gyp/qt_rcc.gypi -@@ -28,7 +28,7 @@ +@@ -15,7 +15,7 @@ '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)/qrc/qrc_<(RULE_INPUT_ROOT).cpp', ], 'action': [ @@ -434,10 +435,10 @@ index eebc6967..19a346fe 100644 '-no-compress', '<(RULE_INPUT_PATH)', diff --git a/Telegram/gyp/settings_linux.gypi b/Telegram/gyp/settings_linux.gypi -index b93bace4..0fcdfd56 100644 +index 17219fa2c..b00fd50ea 100644 --- a/Telegram/gyp/settings_linux.gypi +++ b/Telegram/gyp/settings_linux.gypi -@@ -24,7 +24,6 @@ +@@ -11,7 +11,6 @@ 'linux_common_flags': [ '-pipe', '-Wall', @@ -445,6 +446,15 @@ index b93bace4..0fcdfd56 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': [ @@ -454,10 +464,10 @@ index b93bace4..0fcdfd56 100644 ], 'cflags_c': [ diff --git a/Telegram/gyp/telegram_linux.gypi b/Telegram/gyp/telegram_linux.gypi -index f6918c22..50f0d8c7 100644 +index 80259c687..5f33ff961 100644 --- a/Telegram/gyp/telegram_linux.gypi +++ b/Telegram/gyp/telegram_linux.gypi -@@ -33,10 +33,11 @@ +@@ -23,10 +23,11 @@ 'linux_path_va%': '/usr/local', 'linux_path_vdpau%': '/usr/local', 'linux_path_breakpad%': '/usr/local', @@ -470,7 +480,7 @@ index f6918c22..50f0d8c7 100644 '/usr/local/include', '<(linux_path_ffmpeg)/include', '<(linux_path_openal)/include', -@@ -45,6 +46,7 @@ +@@ -35,6 +36,7 @@ '<(linux_path_range)/include', ], 'library_dirs': [ @@ -478,7 +488,7 @@ index f6918c22..50f0d8c7 100644 '/usr/local/lib', '<(linux_path_ffmpeg)/lib', '<(linux_path_openal)/lib', -@@ -53,25 +55,16 @@ +@@ -43,25 +45,16 @@ '<(linux_path_breakpad)/lib', ], 'libraries': [ @@ -514,7 +524,14 @@ index f6918c22..50f0d8c7 100644 # '<!(pkg-config 2> /dev/null --libs <@(pkgconfig_libs))', ], 'cflags_cc': [ -@@ -118,10 +110,8 @@ +@@ -90,16 +83,14 @@ + }, + }, + 'conditions': [ +- [ '"<!(uname -p)" != "x86_64"', { ++ [ '"<!(uname -m)" != "x86_64"', { + 'ldflags': [ + '-Wl,-wrap,__divmoddi4', ], }], ['not_need_gtk!="True"', { 'cflags_cc': [ @@ -528,10 +545,10 @@ index f6918c22..50f0d8c7 100644 }] ], diff --git a/Telegram/gyp/telegram_sources.txt b/Telegram/gyp/telegram_sources.txt -index 5d2f627e..defd475d 100644 +index dd4f848db..22cf8866c 100644 --- a/Telegram/gyp/telegram_sources.txt +++ b/Telegram/gyp/telegram_sources.txt -@@ -713,14 +713,7 @@ +@@ -765,14 +765,7 @@ <(emoji_suggestions_loc)/emoji_suggestions.cpp <(emoji_suggestions_loc)/emoji_suggestions.h @@ -545,5 +562,5 @@ index 5d2f627e..defd475d 100644 -<(minizip_loc)/unzip.h +<(src_loc)/qt_functions.cpp - platforms: mac - <(sp_media_key_tap_loc)/SPMediaKeyTap.m + platforms: win + <(res_loc)/winrc/Telegram.rc |