From 2fdadd96256201a4d4dc445dfde27799a4d82249 Mon Sep 17 00:00:00 2001 From: John Zimmermann Date: Wed, 22 Jan 2020 01:04:35 +0100 Subject: [PATCH] telegram-desktop: update to 1.9.6. --- srcpkgs/telegram-desktop/patches/cxx17.patch | 19 +++++++++++++++++++ srcpkgs/telegram-desktop/template | 11 +++++++---- 2 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 srcpkgs/telegram-desktop/patches/cxx17.patch diff --git a/srcpkgs/telegram-desktop/patches/cxx17.patch b/srcpkgs/telegram-desktop/patches/cxx17.patch new file mode 100644 index 0000000000..f3b59223f6 --- /dev/null +++ b/srcpkgs/telegram-desktop/patches/cxx17.patch @@ -0,0 +1,19 @@ +Reason: Latest tagged range_v3 release does not work with cxx20 and + and causes gcc to segfault + +--- cmake/init_target.cmake 2020-01-21 21:30:05.000000000 +0100 ++++ - 2020-01-22 01:29:33.006630878 +0100 +@@ -15,11 +15,11 @@ + if (${ARGV1} STREQUAL cxx_std_14 OR ${ARGV1} STREQUAL cxx_std_11) + target_compile_features(${target_name} PUBLIC ${ARGV1}) + else() +- target_compile_features(${target_name} PUBLIC cxx_std_20) ++ target_compile_features(${target_name} PUBLIC cxx_std_17) + init_target_folder(${target_name} ${ARGV1}) + endif() + else() +- target_compile_features(${target_name} PUBLIC cxx_std_20) ++ target_compile_features(${target_name} PUBLIC cxx_std_17) + endif() + if (WIN32) + set_target_properties(${target_name} PROPERTIES diff --git a/srcpkgs/telegram-desktop/template b/srcpkgs/telegram-desktop/template index e0165669fe..39214dffd7 100644 --- a/srcpkgs/telegram-desktop/template +++ b/srcpkgs/telegram-desktop/template @@ -1,14 +1,17 @@ # Template file for 'telegram-desktop' pkgname=telegram-desktop -version=1.9.4 -revision=2 +version=1.9.6 +revision=1 wrksrc="tdesktop-${version}-full" build_style=cmake build_helper="qemu" configure_args="-DTDESKTOP_API_ID=209235 -DTDESKTOP_API_HASH=169ee702e1df4b6e66d80311db36cc43 -DDESKTOP_APP_USE_GLIBC_WRAPS=OFF -DTDESKTOP_USE_PACKAGED_TGVOIP=OFF - -DDESKTOP_APP_DISABLE_CRASH_REPORTS=ON -DTDESKTOP_DISABLE_GTK_INTEGRATION=ON" + -DDESKTOP_APP_DISABLE_CRASH_REPORTS=ON -DTDESKTOP_DISABLE_GTK_INTEGRATION=ON + -DTDESKTOP_LAUNCHER_BASENAME=telegramdesktop + -DTDESKTOP_DISABLE_DESKTOP_FILE_GENERATION=ON + -DTDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME=ON" hostmakedepends="pkg-config qt5-qmake qt5-host-tools python" makedepends="alsa-lib-devel ffmpeg-devel libdbusmenu-glib-devel libopenal-devel minizip-devel opus-devel xxHash-devel pulseaudio-devel qt5-devel range-v3 @@ -21,7 +24,7 @@ license="GPL-3.0-or-later WITH OpenSSL" homepage="https://desktop.telegram.org/" changelog="https://github.com/telegramdesktop/tdesktop/blob/v${version}/changelog.txt" distfiles="https://github.com/telegramdesktop/tdesktop/releases/download/v${version}/tdesktop-${version}-full.tar.gz" -checksum=9ef7ac0e97629dec7ff68aea54f517a40c4a41fa9197f205bd4431d0e37abad1 +checksum=5b0f1c916f903bdb1ed0cf4c530d2e1ffb5aa97ff462976fe82aa29677849a02 case $XBPS_TARGET_MACHINE in