summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Porunov2019-11-11 14:19:09 +0400
committerDmitry Porunov2019-11-11 14:19:09 +0400
commit24c39fbb87df157bc5aea40fa75eb6e795fbf329 (patch)
tree40370504e0509a1838848f7327a81422f0178ff2
parentca0c3901be403d2e7a40adc30967c0d1fd87b57c (diff)
downloadaur-24c39fbb87df157bc5aea40fa75eb6e795fbf329.tar.gz
Fix patches
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD46
-rw-r--r--libtgvoip.patch2
-rw-r--r--tdesktop.patch315
-rw-r--r--tdesktop_lottie_animation_qtdebug.patch6
5 files changed, 246 insertions, 147 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7e032e96323b..65c750545a26 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = kotatogram-desktop
pkgdesc = Experimental Telegram Desktop fork with option to select custom fonts.
- pkgver = 1.1
- pkgrel = 2
+ pkgver = 1.1.1
+ pkgrel = 1
url = https://github.com/kotatogram/kotatogram-desktop
arch = x86_64
license = GPL3
@@ -20,7 +20,7 @@ pkgbase = kotatogram-desktop
depends = qt5-imageformats
depends = openssl
optdepends = libnotify: desktop notifications
- source = kdesktop::git+https://github.com/kotatogram/kotatogram-desktop.git#tag=k1.1
+ source = kdesktop::git+https://github.com/kotatogram/kotatogram-desktop.git#tag=k1.1.1
source = Catch2::git+https://github.com/catchorg/Catch2.git
source = crl::git+https://github.com/telegramdesktop/crl.git
source = GSL::git+https://github.com/Microsoft/GSL.git
@@ -29,6 +29,15 @@ pkgbase = kotatogram-desktop
source = rlottie::git+https://github.com/desktop-app/rlottie.git
source = variant::git+https://github.com/mapbox/variant
source = xxHash::git+https://github.com/Cyan4973/xxHash.git
+ source = codegen::git+https://github.com/desktop-app/codegen.git
+ source = lib_base::git+https://github.com/desktop-app/lib_base.git
+ source = lib_crl::git+https://github.com/desktop-app/lib_crl
+ source = lib_lottie::git+https://github.com/desktop-app/lib_lottie
+ source = lib_rlottie::git+https://github.com/desktop-app/lib_rlottie
+ source = lib_rpl::git+https://github.com/desktop-app/lib_rpl
+ source = lib_spellcheck::git+https://github.com/desktop-app/lib_spellcheck
+ source = lib_tl::git+https://github.com/desktop-app/lib_tl
+ source = lib_ui::git+https://github.com/kotatogram/lib_ui.git
source = CMakeLists.inj
source = libtgvoip.patch
source = no-gtk2.patch
@@ -47,6 +56,15 @@ pkgbase = kotatogram-desktop
sha512sums = SKIP
sha512sums = SKIP
sha512sums = SKIP
+ sha512sums = SKIP
+ sha512sums = SKIP
+ sha512sums = SKIP
+ sha512sums = SKIP
+ sha512sums = SKIP
+ sha512sums = SKIP
+ sha512sums = SKIP
+ sha512sums = SKIP
+ sha512sums = SKIP
sha512sums = b759e45282c7bd04e1fdcbfd0c009773782bebde36d96363db9869a9d78e7fad41314ad311b7afbfa57db4e66c0265da17e9f81f6d62a972466cb71d19d4b47c
sha512sums = d60694dc701aa985b0e82a12c9732b945082470441c687b33167a94f94efcf253baf43bb7280ec160ba338485ee5c62de138e4804cae05f27cc5cf4298166d39
sha512sums = 117b0c2bae3d3d3aa94d41382621be4e05c3314a2831dba59e1bcfb443e7b8ff4bcd0403544fa0cb6def85b444146bf59eef9da25f96b041d3ce8f5429b4a867
diff --git a/PKGBUILD b/PKGBUILD
index fb0c24d8d317..0b89c6acb889 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,8 +4,8 @@
# https://github.com/mymedia2/tdesktop
pkgname=kotatogram-desktop
-pkgver=1.1
-pkgrel=2
+pkgver=1.1.1
+pkgrel=1
pkgdesc="Experimental Telegram Desktop fork with option to select custom fonts."
arch=(x86_64)
url="https://github.com/kotatogram/kotatogram-desktop"
@@ -41,7 +41,16 @@ source=(
"rlottie::git+https://github.com/desktop-app/rlottie.git"
"variant::git+https://github.com/mapbox/variant"
"xxHash::git+https://github.com/Cyan4973/xxHash.git"
-
+ "codegen::git+https://github.com/desktop-app/codegen.git"
+ "lib_base::git+https://github.com/desktop-app/lib_base.git"
+ "lib_crl::git+https://github.com/desktop-app/lib_crl"
+ "lib_lottie::git+https://github.com/desktop-app/lib_lottie"
+ "lib_rlottie::git+https://github.com/desktop-app/lib_rlottie"
+ "lib_rpl::git+https://github.com/desktop-app/lib_rpl"
+ "lib_spellcheck::git+https://github.com/desktop-app/lib_spellcheck"
+ "lib_tl::git+https://github.com/desktop-app/lib_tl"
+ "lib_ui::git+https://github.com/kotatogram/lib_ui.git"
+
"CMakeLists.inj"
"libtgvoip.patch"
"no-gtk2.patch"
@@ -62,6 +71,15 @@ sha512sums=(
'SKIP'
'SKIP'
'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
'b759e45282c7bd04e1fdcbfd0c009773782bebde36d96363db9869a9d78e7fad41314ad311b7afbfa57db4e66c0265da17e9f81f6d62a972466cb71d19d4b47c'
'd60694dc701aa985b0e82a12c9732b945082470441c687b33167a94f94efcf253baf43bb7280ec160ba338485ee5c62de138e4804cae05f27cc5cf4298166d39'
'117b0c2bae3d3d3aa94d41382621be4e05c3314a2831dba59e1bcfb443e7b8ff4bcd0403544fa0cb6def85b444146bf59eef9da25f96b041d3ce8f5429b4a867'
@@ -77,6 +95,7 @@ sha512sums=(
prepare() {
cd "$srcdir/kdesktop"
git submodule init
+
git config submodule.Telegram/ThirdParty/Catch.url "$srcdir/Catch2"
git config submodule.Telegram/ThirdParty/crl.url "$srcdir/crl"
git config submodule.Telegram/ThirdParty/GSL.url "$srcdir/GSL"
@@ -87,20 +106,31 @@ prepare() {
git config submodule.Telegram/ThirdParty/SPMediaKeyTap.url "$srcdir/SPMediaKeyTap"
git config submodule.Telegram/ThirdParty/variant.url "$srcdir/variant"
git config submodule.Telegram/ThirdParty/xxHash.url "$srcdir/xxHash"
+
+ git config submodule.Telegram/codegen.url "$srcdir/codegen"
+ git config submodule.Telegram/lib_base.url "$srcdir/lib_base"
+ git config submodule.Telegram/lib_crl.url "$srcdir/lib_crl"
+ git config submodule.Telegram/lib_lottie.url "$srcdir/lib_lottie"
+ git config submodule.Telegram/lib_rlottie.url "$srcdir/lib_rlottie"
+ git config submodule.Telegram/lib_rpl.url "$srcdir/lib_rpl"
+ git config submodule.Telegram/lib_spellcheck.url "$srcdir/lib_spellcheck"
+ git config submodule.Telegram/lib_tl.url "$srcdir/lib_tl"
+ git config submodule.Telegram/lib_ui.url "$srcdir/lib_ui"
+
git submodule update
dos2unix "$srcdir/kdesktop/.appveyor/install.bat"
- patch -Np1 -i "$srcdir/tdesktop.patch"
patch -Np1 -i "$srcdir/no-gtk2.patch"
+ # patch -Np1 -i "$srcdir/Revert-Change-some-private-header-includes.patch"
# patch -Np1 -i "$srcdir/Revert-Disable-DemiBold-fallback-for-Semibold.patch"
- patch -Np1 -i "$srcdir/tdesktop_lottie_animation_qtdebug.patch"
- patch -Np1 -i "$srcdir/Revert-Change-some-private-header-includes.patch"
+ # patch -Np1 -i "$srcdir/tdesktop_lottie_animation_qtdebug.patch"
# patch -Np1 -i "$srcdir/Use-system-wide-font.patch"
+ patch -Np1 -i "$srcdir/tdesktop.patch"
unix2dos "$srcdir/kdesktop/.appveyor/install.bat"
# disable static-qt for rlottie
- sed "/RLOTTIE_WITH_STATIC_QT/d" -i "$srcdir/kdesktop/Telegram/gyp/lib_rlottie.gyp"
+ sed "/RLOTTIE_WITH_STATIC_QT/d" -i "$srcdir/kdesktop/Telegram/lib_rlottie/lib_rlottie.gyp"
cd "$srcdir/kdesktop"
cd "Telegram/ThirdParty/libtgvoip"
@@ -110,7 +140,7 @@ prepare() {
build() {
cd "$srcdir/kdesktop"
export LANG=en_US.UTF-8
- export GYP_DEFINES="TDESKTOP_DISABLE_CRASH_REPORTS,TDESKTOP_DISABLE_AUTOUPDATE,TDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME,TDESKTOP_DISABLE_DESKTOP_FILE_GENERATION"
+ export GYP_DEFINES="DESKTOP_APP_DISABLE_CRASH_REPORTS,TDESKTOP_DISABLE_AUTOUPDATE,TDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME,TDESKTOP_DISABLE_DESKTOP_FILE_GENERATION"
export EXTRA_FLAGS="-Winvalid-pch"
export CPPFLAGS="$CPPFLAGS $EXTRA_FLAGS"
export CXXFLAGS="$CXXFLAGS $EXTRA_FLAGS"
diff --git a/libtgvoip.patch b/libtgvoip.patch
index 8e838df34ba1..a8936d74a54e 100644
--- a/libtgvoip.patch
+++ b/libtgvoip.patch
@@ -5,7 +5,7 @@ index 52fbea1..9a4dfb7 100644
@@ -13,11 +13,12 @@
'variables': {
'tgvoip_src_loc': '.',
- 'official_build_target%': '',
+ 'special_build_target%': '',
- 'linux_path_opus_include%': '<(DEPTH)/../../../Libraries/opus/include',
+ 'linux_path_opus_include%': '/usr/include/opus',
},
diff --git a/tdesktop.patch b/tdesktop.patch
index b59eb7f43cd6..5398684eb439 100644
--- a/tdesktop.patch
+++ b/tdesktop.patch
@@ -1,21 +1,10 @@
-diff --git a/Telegram/Resources/qrc/linux.qrc b/Telegram/Resources/qrc/linux.qrc
-index 164e8d4f2..12319be14 100644
---- a/Telegram/Resources/qrc/linux.qrc
-+++ b/Telegram/Resources/qrc/linux.qrc
-@@ -1,6 +1,5 @@
- <RCC>
- <qresource prefix="/qt">
-- <file alias="etc/qt.conf">../etc/qt_linux.conf</file>
- </qresource>
- <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 3ba28309b..e280c44fa 100644
+index 7768510a0..1e4447c5b 100644
--- a/Telegram/SourceFiles/core/launcher.cpp
+++ b/Telegram/SourceFiles/core/launcher.cpp
-@@ -272,6 +272,19 @@ int Launcher::exec() {
- Logs::start(this); // must be started before Platform is started
- Platform::start(); // must be started before Sandbox is created
+@@ -278,6 +278,19 @@ int Launcher::exec() {
+ Platform::start();
+ Ui::DisableCustomScaling();
+ // I don't know why path is not in QT_PLUGIN_PATH by default
+ QCoreApplication::addLibraryPath("/usr/lib/qt/plugins");
@@ -32,7 +21,7 @@ index 3ba28309b..e280c44fa 100644
+
auto result = executeApplication();
- DEBUG_LOG(("Telegram finished, result: %1").arg(result));
+ DEBUG_LOG(("Kotatogram finished, result: %1").arg(result));
diff --git a/Telegram/SourceFiles/qt_functions.cpp b/Telegram/SourceFiles/qt_functions.cpp
new file mode 100644
index 000000000..4a722b8d7
@@ -134,14 +123,13 @@ index 000000000..4a722b8d7
+ flags |= QTextItem::StrikeOut;
+}
diff --git a/Telegram/SourceFiles/qt_static_plugins.cpp b/Telegram/SourceFiles/qt_static_plugins.cpp
-index a757d085f..122ff0f5d 100644
+index cc1a767cf..be47222bc 100644
--- a/Telegram/SourceFiles/qt_static_plugins.cpp
+++ b/Telegram/SourceFiles/qt_static_plugins.cpp
-@@ -15,14 +15,4 @@ Q_IMPORT_PLUGIN(QWebpPlugin)
+@@ -20,13 +20,4 @@ Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)
Q_IMPORT_PLUGIN(QCocoaIntegrationPlugin)
Q_IMPORT_PLUGIN(QGenericEnginePlugin)
#elif defined Q_OS_LINUX // Q_OS_WIN | Q_OS_MAC
--Q_IMPORT_PLUGIN(QWebpPlugin)
-Q_IMPORT_PLUGIN(QXcbIntegrationPlugin)
-Q_IMPORT_PLUGIN(QConnmanEnginePlugin)
-Q_IMPORT_PLUGIN(QGenericEnginePlugin)
@@ -152,43 +140,11 @@ index a757d085f..122ff0f5d 100644
-Q_IMPORT_PLUGIN(QHimePlatformInputContextPlugin)
-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 7891995be..eaeb52b35 100644
---- a/Telegram/SourceFiles/ui/text/text.cpp
-+++ b/Telegram/SourceFiles/ui/text/text.cpp
-@@ -1968,11 +1968,11 @@ private:
- if (item == -1)
- return;
-
--#ifdef OS_MAC_OLD
-+#if defined(OS_MAC_OLD) || QT_VERSION < QT_VERSION_CHECK(5, 6, 0)
- auto end = _e->findItem(line.from + line.length - 1);
--#else // OS_MAC_OLD
-+#else
- auto end = _e->findItem(line.from + line.length - 1, item);
--#endif // OS_MAC_OLD
-+#endif
-
- 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 29173c5c2..b47a53d76 100644
---- a/Telegram/SourceFiles/ui/text/text_block.cpp
-+++ b/Telegram/SourceFiles/ui/text/text_block.cpp
-@@ -334,6 +334,9 @@ TextBlock::TextBlock(const style::font &font, const QString &str, QFixed minResi
-
- QStackTextEngine engine(part, blockFont->f);
- BlockParser parser(&engine, this, minResizeWidth, _from, part);
-+ QTextLayout layout(part, blockFont->f);
-+ layout.beginLayout();
-+ layout.createLine();
- }
- }
-
-diff --git a/Telegram/gyp/PrecompiledHeader.cmake b/Telegram/gyp/PrecompiledHeader.cmake
-index dfe1193be..0b13fc098 100644
---- a/Telegram/gyp/PrecompiledHeader.cmake
-+++ b/Telegram/gyp/PrecompiledHeader.cmake
+Submodule Telegram/gyp/helpers contains modified content
+diff --git a/Telegram/gyp/helpers/PrecompiledHeader.cmake b/Telegram/gyp/helpers/PrecompiledHeader.cmake
+index 9508bd8..15952e5 100644
+--- a/Telegram/gyp/helpers/PrecompiledHeader.cmake
++++ b/Telegram/gyp/helpers/PrecompiledHeader.cmake
@@ -114,7 +114,7 @@ function(add_precompiled_header _target _input)
set(_compiler_FLAGS "@${_pch_c_flags_file}")
add_custom_command(
@@ -207,10 +163,10 @@ index dfe1193be..0b13fc098 100644
DEPENDS "${_pchfile}" "${_pch_cpp_flags_file}"
IMPLICIT_DEPENDS CXX "${_pch_header}"
COMMENT "Precompiling header ${_name} for ${_target} (C++)")
-diff --git a/Telegram/gyp/common/linux.gypi b/Telegram/gyp/common/linux.gypi
-index cdcdef1dc..667fbb7f3 100644
---- a/Telegram/gyp/common/linux.gypi
-+++ b/Telegram/gyp/common/linux.gypi
+diff --git a/Telegram/gyp/helpers/common/linux.gypi b/Telegram/gyp/helpers/common/linux.gypi
+index 12b91b0..507a6b9 100644
+--- a/Telegram/gyp/helpers/common/linux.gypi
++++ b/Telegram/gyp/helpers/common/linux.gypi
@@ -11,7 +11,6 @@
'linux_common_flags': [
'-pipe',
@@ -219,7 +175,7 @@ index cdcdef1dc..667fbb7f3 100644
'-W',
'-fPIC',
'-Wno-unused-variable',
-@@ -86,7 +85,6 @@
+@@ -87,7 +86,6 @@
],
'defines': [
'_REENTRANT',
@@ -227,39 +183,56 @@ index cdcdef1dc..667fbb7f3 100644
'QT_PLUGIN',
],
'cflags_c': [
-diff --git a/Telegram/gyp/modules/qt.gypi b/Telegram/gyp/modules/qt.gypi
-index 0b783ec21..3f917765a 100644
---- a/Telegram/gyp/modules/qt.gypi
-+++ b/Telegram/gyp/modules/qt.gypi
-@@ -14,25 +14,21 @@
- [ 'build_macold', {
- 'qt_version%': '5.3.2',
+diff --git a/Telegram/gyp/helpers/modules/openssl.gypi b/Telegram/gyp/helpers/modules/openssl.gypi
+index 91f1a99..d01c463 100644
+--- a/Telegram/gyp/helpers/modules/openssl.gypi
++++ b/Telegram/gyp/helpers/modules/openssl.gypi
+@@ -56,10 +56,6 @@
+ '<(libs_loc)/openssl/include',
+ ],
+ }]],
+- }], [ 'build_linux', {
+- 'include_dirs': [
+- '/usr/local/desktop-app/openssl-1.1.1/include',
+- ],
+ }],
+ ],
+ }
+diff --git a/Telegram/gyp/helpers/modules/qt.gypi b/Telegram/gyp/helpers/modules/qt.gypi
+index e329211..7c2b8b0 100644
+--- a/Telegram/gyp/helpers/modules/qt.gypi
++++ b/Telegram/gyp/helpers/modules/qt.gypi
+@@ -14,27 +14,17 @@
+ [ 'build_osx', {
+ 'qt_version%': '5.6.2',
}, {
-- 'qt_version%': '5.6.2',
+- 'qt_version%': '5.12.5',
+ 'qt_version%': '<!(echo /usr/include/qt/QtCore/*/ | grep -Po "\d+\.\d+\.\d+")',
}]
],
},
- 'qt_libs': [
+ 'qt_libs_5_12_5': [
- 'qwebp',
+- 'qgif',
+- 'qjpeg',
- 'Qt5PrintSupport',
-- 'Qt5PlatformSupport',
+- 'Qt5AccessibilitySupport',
+- 'Qt5FontDatabaseSupport',
+- 'Qt5EventDispatcherSupport',
+- 'Qt5ThemeSupport',
'Qt5Network',
'Qt5Widgets',
'Qt5Gui',
-- 'qtharfbuzzng',
+- 'qtharfbuzz',
+- 'qtlibpng',
],
'qt_version%': '<(qt_version)',
- 'conditions': [
- [ 'build_macold', {
- 'linux_path_qt%': '/usr/local/macold/Qt-<(qt_version)',
- }, {
-- 'linux_path_qt%': '/usr/local/tdesktop/Qt-<(qt_version)',
-+ 'linux_path_qt%': '/usr/lib/qt',
- }]
- ]
+- 'linux_path_qt%': '/usr/local/desktop-app/Qt-<(qt_version)',
++ 'linux_path_qt%': '/usr/lib/qt',
},
-@@ -72,32 +68,13 @@
+ 'qt_version%': '<(qt_version)',
+ 'qt_loc_unix': '<(linux_path_qt)',
+@@ -87,32 +77,13 @@
],
}],
[ 'build_linux', {
@@ -272,21 +245,21 @@ index 0b783ec21..3f917765a 100644
'qt_libs': [
- 'qxcb',
- 'Qt5XcbQpa',
+- 'Qt5LinuxAccessibilitySupport',
+- 'Qt5ServiceSupport',
+- 'Qt5EdidSupport',
- 'qconnmanbearer',
- 'qgenericbearer',
- 'qnmbearer',
- '<@(qt_libs)',
+ '<@(qt_libs_5_12_5)',
'Qt5DBus',
'Qt5Core',
-- 'qtpcre',
-- 'Xi',
-- 'Xext',
-- 'Xfixes',
+- 'qtpcre2',
- 'SM',
- 'ICE',
- 'fontconfig',
-- 'expat',
- 'freetype',
+- 'expat',
- 'z',
- 'xcb-shm',
- 'xcb-xfixes',
@@ -295,19 +268,19 @@ index 0b783ec21..3f917765a 100644
],
}],
],
-@@ -127,11 +104,6 @@
+@@ -142,11 +113,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_',
-
- 'linux_path_xkbcommon%': '/usr/local',
-- 'linux_lib_ssl%': '/usr/local/ssl/lib/libssl.a',
-- 'linux_lib_crypto%': '/usr/local/ssl/lib/libcrypto.a',
+- 'linux_lib_ssl%': '/usr/local/desktop-app/openssl-1.1.1/lib/libssl.a',
+- 'linux_lib_crypto%': '/usr/local/desktop-app/openssl-1.1.1/lib/libcrypto.a',
- 'linux_lib_icu%': 'libicutu.a libicui18n.a libicuuc.a libicudata.a',
},
'configurations': {
-@@ -180,14 +152,14 @@
+@@ -205,14 +171,14 @@
},
'include_dirs': [
@@ -330,17 +303,23 @@ index 0b783ec21..3f917765a 100644
],
'library_dirs': [
'<(qt_loc)/lib',
-@@ -212,17 +184,10 @@
+@@ -236,24 +202,12 @@
+ '<(DEPTH)/helpers/platform/linux/linux_glibc_wraps.gyp:linux_glibc_wraps',
],
'libraries': [
- '<(PRODUCT_DIR)/obj.target/liblinux_glibc_wraps.a',
-- '<(linux_path_xkbcommon)/lib/libxkbcommon.a',
+- '-lcomposeplatforminputcontextplugin',
+- '-libusplatforminputcontextplugin',
+- '-lfcitxplatforminputcontextplugin',
+- '-lhimeplatforminputcontextplugin',
+- '-lnimfplatforminputcontextplugin',
'<@(qt_libs_release)',
-- '<(linux_lib_ssl)',
-- '<(linux_lib_crypto)',
+- '<(linux_path_xkbcommon)/lib/libxkbcommon.a',
+- '<(linux_path_xkbcommon)/lib/libxkbcommon-x11.a',
+ '<(PRODUCT_DIR)/obj.target/helpers/platform/linux/liblinux_glibc_wraps.a',
+ #'<(linux_lib_ssl)', # added in lib_ton
+ #'<(linux_lib_crypto)', # added in lib_ton
- '<!@(python -c "for s in \'<(linux_lib_icu)\'.split(\' \'): print(s)")',
- '-lxcb',
-+ '-lcrypto',
'-lX11',
- '-lX11-xcb',
- '-ldbus-1',
@@ -349,7 +328,7 @@ index 0b783ec21..3f917765a 100644
'-lglib-2.0',
'-lpthread',
],
-@@ -230,7 +195,6 @@
+@@ -261,7 +215,6 @@
'<(qt_loc)/mkspecs/linux-g++',
],
'ldflags': [
@@ -357,10 +336,10 @@ index 0b783ec21..3f917765a 100644
'-pthread',
'-rdynamic',
],
-diff --git a/Telegram/gyp/modules/qt_moc.gypi b/Telegram/gyp/modules/qt_moc.gypi
-index ebee90a15..75424d4bb 100644
---- a/Telegram/gyp/modules/qt_moc.gypi
-+++ b/Telegram/gyp/modules/qt_moc.gypi
+diff --git a/Telegram/gyp/helpers/modules/qt_moc.gypi b/Telegram/gyp/helpers/modules/qt_moc.gypi
+index 33cc236..b47ff9e 100644
+--- a/Telegram/gyp/helpers/modules/qt_moc.gypi
++++ b/Telegram/gyp/helpers/modules/qt_moc.gypi
@@ -15,7 +15,7 @@
'<(SHARED_INTERMEDIATE_DIR)/<(_target_name)/moc/moc_<(RULE_INPUT_ROOT).cpp',
],
@@ -370,24 +349,11 @@ index ebee90a15..75424d4bb 100644
# Silence "Note: No relevant classes found. No output generated."
'--no-notes',
-diff --git a/Telegram/gyp/modules/qt_rcc.gypi b/Telegram/gyp/modules/qt_rcc.gypi
-index f5624a82b..1129a95c5 100644
---- a/Telegram/gyp/modules/qt_rcc.gypi
-+++ b/Telegram/gyp/modules/qt_rcc.gypi
-@@ -15,7 +15,7 @@
- '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)/qrc/qrc_<(RULE_INPUT_ROOT).cpp',
- ],
- 'action': [
-- '<(qt_loc)/bin/rcc<(exe_ext)',
-+ '/usr/bin/rcc',
- '-name', '<(RULE_INPUT_ROOT)',
- '-no-compress',
- '<(RULE_INPUT_PATH)',
diff --git a/Telegram/gyp/telegram/linux.gypi b/Telegram/gyp/telegram/linux.gypi
-index 385f2b89f..f3ddf7e83 100644
+index ba6bc45e8..73af2b27d 100644
--- a/Telegram/gyp/telegram/linux.gypi
+++ b/Telegram/gyp/telegram/linux.gypi
-@@ -19,27 +19,21 @@
+@@ -19,9 +19,11 @@
#'xkbcommon',
],
},
@@ -396,16 +362,12 @@ index 385f2b89f..f3ddf7e83 100644
+ '/usr/lib/openssl',
+ ],
'libraries': [
+- '-Wl,-Bstatic',
- '-lbreakpad_client',
-- '-lcomposeplatforminputcontextplugin',
-- '-libusplatforminputcontextplugin',
-- '-lfcitxplatforminputcontextplugin',
-- '-lhimeplatforminputcontextplugin',
-- '-lnimfplatforminputcontextplugin',
-- '-llzma',
+ '-llzma',
'-lopenal',
'-lavformat',
- '-lavcodec',
+@@ -29,19 +31,10 @@
'-lswresample',
'-lswscale',
'-lavutil',
@@ -417,11 +379,17 @@ index 385f2b89f..f3ddf7e83 100644
- '-lvdpau',
- '-ldrm',
'-lz',
-+ '-llzma',
+- '-lXi',
+- '-lXext',
+- '-lXfixes',
+- '-lXrender',
+- '<(linux_lib_ssl)',
+- '<(linux_lib_crypto)',
++ '-lcrypto',
# '<!(pkg-config 2> /dev/null --libs <@(pkgconfig_libs))',
],
'cflags_cc': [
-@@ -51,7 +45,6 @@
+@@ -53,7 +46,6 @@
'-Wl,-wrap,secure_getenv',
'-Wl,-wrap,clock_gettime',
'-Wl,--no-as-needed,-lrt',
@@ -429,7 +397,7 @@ index 385f2b89f..f3ddf7e83 100644
],
'configurations': {
'Release': {
-@@ -75,9 +68,8 @@
+@@ -77,9 +69,8 @@
],
}], ['not_need_gtk!="True"', {
'cflags_cc': [
@@ -442,10 +410,10 @@ index 385f2b89f..f3ddf7e83 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 38d9d0e64..459919abf 100644
+index e3ccb66db..7cf07e97e 100644
--- a/Telegram/gyp/telegram/sources.txt
+++ b/Telegram/gyp/telegram/sources.txt
-@@ -863,14 +863,7 @@
+@@ -842,14 +842,7 @@
<(src_loc)/settings.cpp
<(src_loc)/settings.h
@@ -461,6 +429,89 @@ index 38d9d0e64..459919abf 100644
platforms: win
<(res_loc)/winrc/Telegram.rc
---
-2.23.0
-
+diff --git a/Telegram/gyp/tests/tests.gyp b/Telegram/gyp/tests/tests.gyp
+index 43ae1d696..05fe0fbba 100644
+--- a/Telegram/gyp/tests/tests.gyp
++++ b/Telegram/gyp/tests/tests.gyp
+@@ -140,8 +140,7 @@
+ ],
+ }], [ 'build_linux', {
+ 'libraries': [
+- '<(linux_lib_ssl)',
+- '<(linux_lib_crypto)',
++ 'crypto',
+ ],
+ }]],
+ }],
+diff --git a/Telegram/gyp/utils.gyp b/Telegram/gyp/utils.gyp
+index 7d5dafaba..e250edb2b 100644
+--- a/Telegram/gyp/utils.gyp
++++ b/Telegram/gyp/utils.gyp
+@@ -73,8 +73,7 @@
+ }],
+ [ 'build_linux', {
+ 'libraries': [
+- '<(linux_lib_ssl)',
+- '<(linux_lib_crypto)',
++ 'crypto',
+ 'lzma',
+ ],
+ }],
+Submodule Telegram/lib_ui contains modified content
+diff --git a/Telegram/lib_ui/gyp/qrc_rule.gypi b/Telegram/lib_ui/gyp/qrc_rule.gypi
+index eb4654c..22419d2 100644
+--- a/Telegram/lib_ui/gyp/qrc_rule.gypi
++++ b/Telegram/lib_ui/gyp/qrc_rule.gypi
+@@ -60,7 +60,7 @@
+ '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)/qrc/qrc_<(RULE_INPUT_ROOT).cpp',
+ ],
+ 'action': [
+- '<(qt_loc)/bin/rcc<(exe_ext)',
++ '/usr/bin/rcc',
+ '-name', '<(RULE_INPUT_ROOT)',
+ '-no-compress',
+ '<(RULE_INPUT_PATH)',
+diff --git a/Telegram/lib_ui/qt_conf/linux.qrc b/Telegram/lib_ui/qt_conf/linux.qrc
+index b9f5692..990e7fa 100644
+--- a/Telegram/lib_ui/qt_conf/linux.qrc
++++ b/Telegram/lib_ui/qt_conf/linux.qrc
+@@ -1,6 +1,5 @@
+ <RCC>
+ <qresource prefix="/qt/etc">
+- <file alias="qt.conf">qt_linux.conf</file>
+ </qresource>
+ <qresource prefix="/fc">
+ <file>fc-custom.conf</file>
+diff --git a/Telegram/lib_ui/ui/text/text.cpp b/Telegram/lib_ui/ui/text/text.cpp
+index 724000b..ec693a1 100644
+--- a/Telegram/lib_ui/ui/text/text.cpp
++++ b/Telegram/lib_ui/ui/text/text.cpp
+@@ -1967,11 +1967,11 @@ private:
+ if (item == -1)
+ return;
+
+-#ifdef OS_MAC_OLD
++#if defined(OS_MAC_OLD) || QT_VERSION < QT_VERSION_CHECK(5, 6, 0)
+ auto end = _e->findItem(line.from + line.length - 1);
+-#else // OS_MAC_OLD
++#else
+ auto end = _e->findItem(line.from + line.length - 1, item);
+-#endif // OS_MAC_OLD
++#endif
+
+ auto blockIndex = _lineStartBlock;
+ auto currentBlock = _t->_blocks[blockIndex].get();
+diff --git a/Telegram/lib_ui/ui/text/text_block.cpp b/Telegram/lib_ui/ui/text/text_block.cpp
+index 314adb7..2de07bd 100644
+--- a/Telegram/lib_ui/ui/text/text_block.cpp
++++ b/Telegram/lib_ui/ui/text/text_block.cpp
+@@ -333,6 +333,9 @@ TextBlock::TextBlock(const style::font &font, const QString &str, QFixed minResi
+
+ QStackTextEngine engine(part, blockFont->f);
+ BlockParser parser(&engine, this, minResizeWidth, _from, part);
++ QTextLayout layout(part, blockFont->f);
++ layout.beginLayout();
++ layout.createLine();
+ }
+ }
+
diff --git a/tdesktop_lottie_animation_qtdebug.patch b/tdesktop_lottie_animation_qtdebug.patch
index 55a2e35520fe..16a0c989418f 100644
--- a/tdesktop_lottie_animation_qtdebug.patch
+++ b/tdesktop_lottie_animation_qtdebug.patch
@@ -1,7 +1,7 @@
-diff --git a/Telegram/SourceFiles/lottie/lottie_animation.cpp b/Telegram/SourceFiles/lottie/lottie_animation.cpp
+diff --git a/Telegram/lib_lottie/lottie/lottie_animation.cpp b/Telegram/lib_lottie/lottie/lottie_animation.cpp
index f681c9220..8f80640e1 100644
---- a/Telegram/SourceFiles/lottie/lottie_animation.cpp
-+++ b/Telegram/SourceFiles/lottie/lottie_animation.cpp
+--- a/Telegram/lib_lottie/lottie/lottie_animation.cpp
++++ b/Telegram/lib_lottie/lottie/lottie_animation.cpp
@@ -15,6 +15,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "logs.h"