Gentoo Archives: gentoo-commits

From: Ronny Gutbrod <gentoo@××××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-libs/mtxclient/
Date: Wed, 24 Aug 2022 15:52:20
Message-Id: 1660923993.0e70dbcc07413a6f106b7462c277ce919db08099.tastytea@gentoo
1 commit: 0e70dbcc07413a6f106b7462c277ce919db08099
2 Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
3 AuthorDate: Fri Aug 19 15:46:33 2022 +0000
4 Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
5 CommitDate: Fri Aug 19 15:46:33 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0e70dbcc
7
8 dev-libs/mtxclient: work around LTO build failure
9
10 Closes: https://bugs.gentoo.org/861731
11 Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>
12
13 dev-libs/mtxclient/mtxclient-0.8.0.ebuild | 10 +++++++++-
14 1 file changed, 9 insertions(+), 1 deletion(-)
15
16 diff --git a/dev-libs/mtxclient/mtxclient-0.8.0.ebuild b/dev-libs/mtxclient/mtxclient-0.8.0.ebuild
17 index 7b9d756dc..a3e74c2c7 100644
18 --- a/dev-libs/mtxclient/mtxclient-0.8.0.ebuild
19 +++ b/dev-libs/mtxclient/mtxclient-0.8.0.ebuild
20 @@ -3,7 +3,7 @@
21
22 EAPI=8
23
24 -inherit cmake
25 +inherit cmake flag-o-matic
26
27 DESCRIPTION="Client API library for Matrix, built on top of Boost.Asio"
28 HOMEPAGE="https://github.com/Nheko-Reborn/mtxclient"
29 @@ -33,6 +33,14 @@ PATCHES=(
30 "${FILESDIR}/0.6.0_remove_network_tests.patch"
31 )
32
33 +src_prepare() {
34 + if use test; then
35 + filter-lto # bug #861731
36 + fi
37 +
38 + cmake_src_prepare
39 +}
40 +
41 src_configure() {
42 local -a mycmakeargs=(
43 -DBUILD_LIB_TESTS="$(usex test)"