From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1608156-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id D0D6E158041
	for <garchives@archives.gentoo.org>; Thu,  7 Mar 2024 11:51:07 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 8A2CFE29E2;
	Thu,  7 Mar 2024 11:51:06 +0000 (UTC)
Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 6E536E29D2
	for <gentoo-commits@lists.gentoo.org>; Thu,  7 Mar 2024 11:51:06 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 5531D343079
	for <gentoo-commits@lists.gentoo.org>; Thu,  7 Mar 2024 11:51:05 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 9CE8314EF
	for <gentoo-commits@lists.gentoo.org>; Thu,  7 Mar 2024 11:51:03 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org>
Message-ID: <1709811986.47a5f36df8789f2d55065407af24e0ee83a8a118.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/indilib/
X-VCS-Repository: repo/gentoo
X-VCS-Files: sci-libs/indilib/indilib-2.0.4.ebuild sci-libs/indilib/indilib-2.0.6.ebuild
X-VCS-Directories: sci-libs/indilib/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: 47a5f36df8789f2d55065407af24e0ee83a8a118
X-VCS-Branch: master
Date: Thu,  7 Mar 2024 11:51:03 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: cbe9da84-6db5-47e3-8c02-f8f93d171655
X-Archives-Hash: 8d43008b0e9027a0388ab012e8957074

commit:     47a5f36df8789f2d55065407af24e0ee83a8a118
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Thu Mar  7 07:21:26 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Mar  7 11:46:26 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47a5f36d

sci-libs/indilib: mark as LTO-unsafe

Closes: https://bugs.gentoo.org/878525
Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-libs/indilib/indilib-2.0.4.ebuild | 9 +++++++--
 sci-libs/indilib/indilib-2.0.6.ebuild | 7 ++++++-
 2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/sci-libs/indilib/indilib-2.0.4.ebuild b/sci-libs/indilib/indilib-2.0.4.ebuild
index 9f35ab2702f0..e12626c36f03 100644
--- a/sci-libs/indilib/indilib-2.0.4.ebuild
+++ b/sci-libs/indilib/indilib-2.0.4.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 cmake udev
+inherit cmake flag-o-matic udev
 
 DESCRIPTION="INDI Astronomical Control Protocol library"
 HOMEPAGE="https://www.indilib.org/"
@@ -41,6 +41,11 @@ DEPEND="${RDEPEND}
 "
 
 src_configure() {
+	# -Werror=odr
+	# https://bugs.gentoo.org/878525
+	# https://github.com/indilib/indi/issues/2023
+	filter-lto
+
 	local mycmakeargs=(
 		-DINDI_BUILD_QT5_CLIENT=OFF
 		-DINDI_BUILD_SHARED=ON

diff --git a/sci-libs/indilib/indilib-2.0.6.ebuild b/sci-libs/indilib/indilib-2.0.6.ebuild
index afe230a6d6ed..c351ca438f79 100644
--- a/sci-libs/indilib/indilib-2.0.6.ebuild
+++ b/sci-libs/indilib/indilib-2.0.6.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit cmake udev
+inherit cmake flag-o-matic udev
 
 DESCRIPTION="INDI Astronomical Control Protocol library"
 HOMEPAGE="https://www.indilib.org/"
@@ -43,6 +43,11 @@ DEPEND="${RDEPEND}
 "
 
 src_configure() {
+	# -Werror=odr
+	# https://bugs.gentoo.org/878525
+	# https://github.com/indilib/indi/issues/2023
+	filter-lto
+
 	local mycmakeargs=(
 		-DINDI_SYSTEM_HTTPLIB=ON
 		-DINDI_SYSTEM_JSONLIB=ON