From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1605620-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 85503158041
	for <garchives@archives.gentoo.org>; Fri,  1 Mar 2024 07:55:43 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id B0651E2A3B;
	Fri,  1 Mar 2024 07:55:42 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.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))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 9070FE2A37
	for <gentoo-commits@lists.gentoo.org>; Fri,  1 Mar 2024 07:55:42 +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))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id C2D093430F5
	for <gentoo-commits@lists.gentoo.org>; Fri,  1 Mar 2024 07:55:41 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 5D62914D7
	for <gentoo-commits@lists.gentoo.org>; Fri,  1 Mar 2024 07:55:40 +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: <1709279678.9e6ea59788793f9fb4a0e7781b1737c93c76123c.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/warzone2100/
X-VCS-Repository: repo/gentoo
X-VCS-Files: games-strategy/warzone2100/warzone2100-4.4.2.ebuild
X-VCS-Directories: games-strategy/warzone2100/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: 9e6ea59788793f9fb4a0e7781b1737c93c76123c
X-VCS-Branch: master
Date: Fri,  1 Mar 2024 07:55:40 +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: 600cccce-be42-4ee8-aa35-d1885d39ddfb
X-Archives-Hash: 539df23578e0b1ca47a26c21b14c82e5

commit:     9e6ea59788793f9fb4a0e7781b1737c93c76123c
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Mar  1 04:58:38 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Mar  1 07:54:38 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e6ea597

games-strategy/warzone2100: filter LTO (ODR violations)

There's a lot of bundled code in warzone, but the issue here is the standard
Bison yy_* remapping ODR thing.

Closes: https://bugs.gentoo.org/859268
Signed-off-by: Sam James <sam <AT> gentoo.org>

 games-strategy/warzone2100/warzone2100-4.4.2.ebuild | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/games-strategy/warzone2100/warzone2100-4.4.2.ebuild b/games-strategy/warzone2100/warzone2100-4.4.2.ebuild
index 42252a5e12cf..d3acd7fee1f3 100644
--- a/games-strategy/warzone2100/warzone2100-4.4.2.ebuild
+++ b/games-strategy/warzone2100/warzone2100-4.4.2.ebuild
@@ -1,10 +1,10 @@
-# Copyright 2022-2023 Gentoo Authors
+# Copyright 2022-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
 PLOCALES="af_ZA bg_BG ca_ES cs da de el en_GB eo es et_EE fa_IR fi fr fy ga he_IL hr hu id_ID id it ko la lt nb nl pl pt_BR pt ro ru sk sl tr tt_RU uk_UA zh_CN zh_TW"
-inherit cmake plocale xdg
+inherit cmake flag-o-matic plocale xdg
 
 MY_PV=$(ver_cut 1-2)
 VIDEOS_PV=2.2
@@ -87,6 +87,9 @@ src_prepare() {
 }
 
 src_configure() {
+	# ODR violations (bison, yy_*, bug #859268)
+	filter-lto
+
 	# TODO: unbundle dev-cpp/nlohmann_json
 	# TODO: unbundle dev-libs/libfmt
 	# TODO: unbundle SQLiteCpp