From 2c51d010ade81017cec9813c563b31c9fa2f1d56 Mon Sep 17 00:00:00 2001 From: Gerasim Troeglazov <3dEyes@gmail.com> Date: Sun, 18 Sep 2022 22:00:36 +1000 Subject: [PATCH] Telegram: disable stack protector for x86_gcc2 arch (fix build) --- net-im/telegram-desktop/telegram_desktop-4.2.0.recipe | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/net-im/telegram-desktop/telegram_desktop-4.2.0.recipe b/net-im/telegram-desktop/telegram_desktop-4.2.0.recipe index b5b80ea15..70a84b0d2 100644 --- a/net-im/telegram-desktop/telegram_desktop-4.2.0.recipe +++ b/net-im/telegram-desktop/telegram_desktop-4.2.0.recipe @@ -3,7 +3,7 @@ DESCRIPTION="Unofficial build of the original Telegram client for Haiku." HOMEPAGE="https://www.telegram.org/" COPYRIGHT="2013-2022 Telegram" LICENSE="GNU GPL v3" -REVISION="1" +REVISION="2" SOURCE_URI="https://github.com/telegramdesktop/tdesktop/releases/download/v$portVersion/tdesktop-$portVersion-full.tar.gz" CHECKSUM_SHA256="d3c78c6daa5b4e336d55dd1dd2dc0003e34dad501e6d212719b51ea8cad71dde" SOURCE_FILENAME="tdesktop-$portVersion-full.tar.gz" @@ -107,6 +107,12 @@ BUILD() { export DISABLE_ASLR=1 + # disable stack protector (fix build for x86_gcc2) + if [ $effectiveTargetArchitecture == x86_gcc2 ]; then + sed -i -e '/-fstack-protector-all/d' cmake/options_linux.cmake + sed -i -e '/_GLIBCXX_ASSERTIONS/d' cmake/options_linux.cmake + fi + # get API_ID and API_HASH from Debian local TELEGRAM_API_ID=`sed -n "/TDESKTOP_API_ID/p" $sourceDir2/rules | cut -d'=' -f2 | cut -d' ' -f1` local TELEGRAM_API_HASH=`sed -n "/TDESKTOP_API_HASH/p" $sourceDir2/rules | cut -d'=' -f2 | cut -d' ' -f1`