From 6708cbb7fc2c495fb9bd14dc974ad7e09f3f4a7f Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Wed, 28 Feb 2024 23:21:46 -0500 Subject: [PATCH] net-p2p/rtorrent: mark as LTO-unsafe Closes: https://bugs.gentoo.org/861848 Signed-off-by: Eli Schwartz Signed-off-by: Sam James --- net-p2p/rtorrent/rtorrent-0.9.8-r2.ebuild | 7 ++++++- net-p2p/rtorrent/rtorrent-0.9.8-r3.ebuild | 9 +++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/net-p2p/rtorrent/rtorrent-0.9.8-r2.ebuild b/net-p2p/rtorrent/rtorrent-0.9.8-r2.ebuild index bc460bab122e2..cc07aef717a88 100644 --- a/net-p2p/rtorrent/rtorrent-0.9.8-r2.ebuild +++ b/net-p2p/rtorrent/rtorrent-0.9.8-r2.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit autotools linux-info systemd +inherit autotools flag-o-matic linux-info systemd DESCRIPTION="BitTorrent Client using libtorrent" HOMEPAGE="https://rakshasa.github.io/rtorrent/" @@ -56,6 +56,11 @@ src_prepare() { } src_configure() { + # -Werror=odr + # https://bugs.gentoo.org/861848 + # https://github.com/rakshasa/rtorrent/issues/1264 + filter-lto + default # configure needs bash or script bombs out on some null shift, bug #291229 diff --git a/net-p2p/rtorrent/rtorrent-0.9.8-r3.ebuild b/net-p2p/rtorrent/rtorrent-0.9.8-r3.ebuild index f2faf77326009..955a5c7770a9c 100644 --- a/net-p2p/rtorrent/rtorrent-0.9.8-r3.ebuild +++ b/net-p2p/rtorrent/rtorrent-0.9.8-r3.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit autotools linux-info systemd +inherit autotools flag-o-matic linux-info systemd DESCRIPTION="BitTorrent Client using libtorrent" HOMEPAGE="https://rakshasa.github.io/rtorrent/" @@ -57,6 +57,11 @@ src_prepare() { } src_configure() { + # -Werror=odr + # https://bugs.gentoo.org/861848 + # https://github.com/rakshasa/rtorrent/issues/1264 + filter-lto + # configure needs bash or script bombs out on some null shift, bug #291229 CONFIG_SHELL=${BASH} econf \ $(use_enable debug) \