diff options
author | Giovanni Santini | 2022-12-07 09:56:47 +0100 |
---|---|---|
committer | Giovanni Santini | 2022-12-07 09:56:47 +0100 |
commit | 43cb108dc50b915a735b1f0308379532be2179d9 (patch) | |
tree | 622fb3adebff764c6df686444ad01d2d9b32b303 /ensure_qt6_build.patch | |
parent | 9ef91d992f5326d3241ce729fe9a617e1c08f81a (diff) | |
download | aur-43cb108dc50b915a735b1f0308379532be2179d9.tar.gz |
upgpkg: telegram-desktop-dev 4.3.4-1
- Version bump.
- Switch build tool to ninja due to missing implicit rules within make.
- Ensure Qt6 is used on systems with both Qt5 and Qt6.
- Remove old patches.
Diffstat (limited to 'ensure_qt6_build.patch')
-rw-r--r-- | ensure_qt6_build.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ensure_qt6_build.patch b/ensure_qt6_build.patch new file mode 100644 index 000000000000..77330c3fb793 --- /dev/null +++ b/ensure_qt6_build.patch @@ -0,0 +1,23 @@ +# Patch made following the issue here: +# https://github.com/telegramdesktop/tdesktop/issues/25510 +# It seems that CMake has internal issues selecting between Qt5 and Qt6. +# Rewrite the find_package logic in order to make sure we use Qt5 only if Qt6 is not around. +# Thanks to @ilya-fedin for the code! +# Will soon be official: +# https://github.com/desktop-app/cmake_helpers/pull/245 +diff --git a/external/qt/package.cmake b/external/qt/package.cmake +index 2faa580..939475a 100644 +--- a/external/qt/package.cmake ++++ b/external/qt/package.cmake +@@ -25,7 +25,10 @@ if (NOT DESKTOP_APP_USE_PACKAGED) + endif() + + if (NOT DEFINED QT_VERSION_MAJOR) +- find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core) ++ find_package(QT NAMES Qt6 COMPONENTS Core) ++ if (NOT QT_FOUND) ++ find_package(QT NAMES Qt5 COMPONENTS Core REQUIRED) ++ endif() + endif() + + find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core Gui Widgets Network Svg REQUIRED) |