commit: 5e3461b7fc187146997a8acfabd68b25574cc839 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Wed Mar 27 06:00:25 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Mar 27 06:00:25 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e3461b7
net-libs/srt: filter LTO ODR violations. Already reported upstream 3 years ago (by someone else). Closes: https://bugs.gentoo.org/861584 Signed-off-by: Sam James <sam <AT> gentoo.org> net-libs/srt/srt-1.5.1.ebuild | 8 ++++++-- net-libs/srt/srt-1.5.3.ebuild | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/net-libs/srt/srt-1.5.1.ebuild b/net-libs/srt/srt-1.5.1.ebuild index 9a90f0d612da..b23cb847814e 100644 --- a/net-libs/srt/srt-1.5.1.ebuild +++ b/net-libs/srt/srt-1.5.1.ebuild @@ -1,9 +1,9 @@ -# Copyright 2018-2023 Gentoo Authors +# Copyright 2018-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit cmake-multilib +inherit cmake-multilib flag-o-matic DESCRIPTION="Secure Reliable Transport (SRT) library and tools" HOMEPAGE="https://github.com/Haivision/srt" @@ -35,6 +35,10 @@ BDEPEND="virtual/pkgconfig test? ( >=dev-cpp/gtest-1.8[${MULTILIB_USEDEP}] )" src_configure() { + # ODR violations + # https://github.com/Haivision/srt/issues/2145 (bug #861584) + filter-lto + local mycmakeargs=( -DENABLE_STATIC=OFF -DENABLE_UNITTESTS=$(usex test) diff --git a/net-libs/srt/srt-1.5.3.ebuild b/net-libs/srt/srt-1.5.3.ebuild index b4dc27c9ac23..de20957ff470 100644 --- a/net-libs/srt/srt-1.5.3.ebuild +++ b/net-libs/srt/srt-1.5.3.ebuild @@ -1,9 +1,9 @@ -# Copyright 2018-2023 Gentoo Authors +# Copyright 2018-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit cmake-multilib +inherit cmake-multilib flag-o-matic DESCRIPTION="Secure Reliable Transport (SRT) library and tools" HOMEPAGE="https://github.com/Haivision/srt" @@ -35,6 +35,10 @@ BDEPEND="virtual/pkgconfig test? ( >=dev-cpp/gtest-1.10[${MULTILIB_USEDEP}] )" src_configure() { + # ODR violations + # https://github.com/Haivision/srt/issues/2145 (bug #861584) + filter-lto + local mycmakeargs=( -DUSE_CXX_STD=c++14 # Required for gtest -DENABLE_STATIC=OFF
