From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1421717-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) server-digest SHA256)
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id B287D158094
	for <garchives@archives.gentoo.org>; Mon, 25 Jul 2022 10:56:03 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id EA548E0FB0;
	Mon, 25 Jul 2022 10:56:02 +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) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id BFAFAE0FB0
	for <gentoo-commits@lists.gentoo.org>; Mon, 25 Jul 2022 10:56:02 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(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 A2826340E50
	for <gentoo-commits@lists.gentoo.org>; Mon, 25 Jul 2022 10:56:01 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 5BDD54FA
	for <gentoo-commits@lists.gentoo.org>; Mon, 25 Jul 2022 10:56:00 +0000 (UTC)
From: "Duje Mihanović" <duje.mihanovic@skole.hr>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Duje Mihanović" <duje.mihanovic@skole.hr>
Message-ID: <1658746425.0080fcb188264b62ff506e7caed01adc80336fc8.duje.mihanovic@gentoo>
Subject: [gentoo-commits] repo/proj/guru:dev commit in: games-fps/assaultcube/
X-VCS-Repository: repo/proj/guru
X-VCS-Files: games-fps/assaultcube/assaultcube-1.3.0.2.ebuild
X-VCS-Directories: games-fps/assaultcube/
X-VCS-Committer: duje.mihanovic
X-VCS-Committer-Name: Duje Mihanović
X-VCS-Revision: 0080fcb188264b62ff506e7caed01adc80336fc8
X-VCS-Branch: dev
Date: Mon, 25 Jul 2022 10:56:00 +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: cb7a890c-9f31-465b-8887-2118d8107fab
X-Archives-Hash: 59e60cc3803781a17fa6b01be1b3ea2c

commit:     0080fcb188264b62ff506e7caed01adc80336fc8
Author:     Duje Mihanović <duje.mihanovic <AT> skole <DOT> hr>
AuthorDate: Mon Jul 25 10:53:45 2022 +0000
Commit:     Duje Mihanović <duje.mihanovic <AT> skole <DOT> hr>
CommitDate: Mon Jul 25 10:53:45 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0080fcb1

games-fps/assaultcube: force disable LTO

Migrating the package to GCC would probably be a better long-term solution.

Closes: https://bugs.gentoo.org/859991
Signed-off-by: Duje Mihanović <duje.mihanovic <AT> skole.hr>

 games-fps/assaultcube/assaultcube-1.3.0.2.ebuild | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild b/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild
index ef8e8f81f..a1169191a 100644
--- a/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild
+++ b/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit desktop xdg-utils
+inherit desktop xdg-utils flag-o-matic
 
 DESCRIPTION="Free multiplayer FPS based on the Cube engine"
 HOMEPAGE="https://assault.cubers.net/"
@@ -22,14 +22,15 @@ RDEPEND="sys-libs/zlib
 DEPEND="${RDEPEND}"
 BDEPEND="sys-devel/clang"
 PATCHES=(
-	"${FILESDIR}/assaultcube-1.3.0.2-respect-ldflags.patch"
-	"${FILESDIR}/assaultcube-1.3.0.2-fix-checkinstall.patch" # a script which checks for required libs and certain parts of the game
+	"${FILESDIR}/${PN}-1.3.0.2-respect-ldflags.patch"
+	"${FILESDIR}/${PN}-1.3.0.2-fix-checkinstall.patch" # a script which checks for required libs and certain parts of the game
 )
 IUSE="debug"
 
 src_prepare() {
 	default
 	sed -i 's|//#define PRODUCTION|#define PRODUCTION|' "${S}/source/src/cube.h"
+	filter-lto
 }
 
 src_compile() {