commit:     fe4cfd2ba2efef2336196921b72952c966537e2f
Author:     Esteve Varela Colominas <esteve.varela <AT> gmail <DOT> com>
AuthorDate: Wed Nov 30 00:12:54 2022 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Fri Dec  2 22:48:26 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe4cfd2b

net-im/telegram-desktop: Fix call issue

Fixes an issue regarding ABI incompatibility, that would cause the
application to crash during calls.

Closes: https://bugs.gentoo.org/866055
Thanks-to: Matteo Pacini <m+gentoo <AT> matteopacini.me>
Signed-off-by: Esteve Varela Colominas <esteve.varela <AT> gmail.com>
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 ...egram-desktop-4.3.4.ebuild => telegram-desktop-4.3.4-r1.ebuild} | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/net-im/telegram-desktop/telegram-desktop-4.3.4.ebuild 
b/net-im/telegram-desktop/telegram-desktop-4.3.4-r1.ebuild
similarity index 96%
rename from net-im/telegram-desktop/telegram-desktop-4.3.4.ebuild
rename to net-im/telegram-desktop/telegram-desktop-4.3.4-r1.ebuild
index 2f1d55aaabb3..839dae189ee7 100644
--- a/net-im/telegram-desktop/telegram-desktop-4.3.4.ebuild
+++ b/net-im/telegram-desktop/telegram-desktop-4.3.4-r1.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 PYTHON_COMPAT=( python3_{8..11} )
 
-inherit xdg cmake python-any-r1 optfeature
+inherit xdg cmake python-any-r1 optfeature flag-o-matic
 
 DESCRIPTION="Official desktop client for Telegram"
 HOMEPAGE="https://desktop.telegram.org";
@@ -124,6 +124,11 @@ src_prepare() {
 }
 
 src_configure() {
+       # The ABI of media-libs/tg_owt breaks if the -DNDEBUG flag doesn't keep
+       # the same state across both projects.
+       # See https://bugs.gentoo.org/866055
+       append-cppflags '-DNDEBUG'
+
        local mycmakeargs=(
                -DCMAKE_DISABLE_FIND_PACKAGE_tl-expected=ON  # header only lib, 
some git version. prevents warnings.
                -DQT_VERSION_MAJOR=$(usex qt6 6 5)

Reply via email to