From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CF9A6138359 for ; Tue, 27 Oct 2020 08:17:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D6DD1E083E; Tue, 27 Oct 2020 08:17:31 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B4502E083D for ; Tue, 27 Oct 2020 08:17:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A1D39335D88 for ; Tue, 27 Oct 2020 08:17:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E3DFC3AB for ; Tue, 27 Oct 2020 08:17:27 +0000 (UTC) From: "Georgy Yakovlev" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Georgy Yakovlev" Message-ID: <1603786531.8ab45caf651ff9ad2c40e4784ad65cb8eabf1ccb.gyakovlev@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/telegram-desktop/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-im/telegram-desktop/metadata.xml net-im/telegram-desktop/telegram-desktop-2.4.4.ebuild X-VCS-Directories: net-im/telegram-desktop/ X-VCS-Committer: gyakovlev X-VCS-Committer-Name: Georgy Yakovlev X-VCS-Revision: 8ab45caf651ff9ad2c40e4784ad65cb8eabf1ccb X-VCS-Branch: master Date: Tue, 27 Oct 2020 08:17:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c35dd2fe-63f2-4d90-8eb7-c65de426dc76 X-Archives-Hash: 545a3e73b9a9b1aaa493b62a286594bb commit: 8ab45caf651ff9ad2c40e4784ad65cb8eabf1ccb Author: Georgy Yakovlev gentoo org> AuthorDate: Tue Oct 27 08:05:30 2020 +0000 Commit: Georgy Yakovlev gentoo org> CommitDate: Tue Oct 27 08:15:31 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ab45caf net-im/telegram-desktop: add lto useflag (WARNING: insane build times) tested on both gcc and clang. Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Georgy Yakovlev gentoo.org> net-im/telegram-desktop/metadata.xml | 1 + net-im/telegram-desktop/telegram-desktop-2.4.4.ebuild | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/net-im/telegram-desktop/metadata.xml b/net-im/telegram-desktop/metadata.xml index 3483ee3eee6..4e1022a426d 100644 --- a/net-im/telegram-desktop/metadata.xml +++ b/net-im/telegram-desktop/metadata.xml @@ -8,6 +8,7 @@ Enable the app-text/aspell spell-checking backend Enable the app-text/hunspell spell-checking backend + Enable Link Time Optimization (LTO / IPO) WebRTC based video call support diff --git a/net-im/telegram-desktop/telegram-desktop-2.4.4.ebuild b/net-im/telegram-desktop/telegram-desktop-2.4.4.ebuild index 09b08748d2d..d5937adb078 100644 --- a/net-im/telegram-desktop/telegram-desktop-2.4.4.ebuild +++ b/net-im/telegram-desktop/telegram-desktop-2.4.4.ebuild @@ -22,7 +22,7 @@ SRC_URI="https://github.com/telegramdesktop/tdesktop/releases/download/v${PV}/${ LICENSE="GPL-3-with-openssl-exception LGPL-2+ webrtc? ( BSD )" SLOT="0" KEYWORDS="~amd64 ~ppc64" -IUSE="+alsa +dbus enchant +gtk +hunspell libressl +pulseaudio +spell +webrtc +X" +IUSE="+alsa +dbus enchant +gtk +hunspell libressl lto +pulseaudio +spell +webrtc +X" RDEPEND=" !net-im/telegram-desktop-bin @@ -104,7 +104,11 @@ build_tg_owt() { einfo "Building tg_owt / webrtc" mkdir -v "${WORKDIR}/tg_owt_build" || die pushd "${WORKDIR}/tg_owt_build" > /dev/null || die - cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DTG_OWT_PACKAGED_BUILD=ON ../tg_owt || die + cmake -G Ninja \ + -DCMAKE_BUILD_TYPE=Release \ + -DTG_OWT_PACKAGED_BUILD=ON \ + $(usex lto "-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON" '') \ + ../tg_owt || die eninja popd > /dev/null || die } @@ -114,6 +118,7 @@ src_configure() { -Wno-deprecated-declarations -Wno-error=deprecated-declarations -Wno-switch + -Wno-unknown-warning-option ) append-cxxflags "${mycxxflags[@]}" @@ -138,6 +143,7 @@ src_configure() { -DDESKTOP_APP_DISABLE_SPELLCHECK="$(usex spell OFF ON)" # enables hunspell (recommended) -DDESKTOP_APP_DISABLE_WEBRTC_INTEGRATION="$(usex webrtc OFF ON)" # requires pulse AND alsa -DDESKTOP_APP_USE_ENCHANT="$(usex enchant ON OFF)" # enables enchant and disables hunspell + $(usex lto "-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON" '') $(usex webrtc "-Dtg_owt_DIR=${WORKDIR}/tg_owt_build" '') )