From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1631916-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 E1C0B1581D3
	for <garchives@archives.gentoo.org>; Fri, 17 May 2024 03:56:21 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id DD142E2A71;
	Fri, 17 May 2024 03:56:20 +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 38FE7E2A71
	for <gentoo-commits@lists.gentoo.org>; Fri, 17 May 2024 03:56:20 +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 29B1B343060
	for <gentoo-commits@lists.gentoo.org>; Fri, 17 May 2024 03:56:19 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 91F0E1AD1
	for <gentoo-commits@lists.gentoo.org>; Fri, 17 May 2024 03:56:17 +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: <1715918126.261c1089559f919eef2f79eada4301861b0af0d3.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/xsb/
X-VCS-Repository: repo/gentoo
X-VCS-Files: dev-lang/xsb/xsb-4.0.0-r1.ebuild
X-VCS-Directories: dev-lang/xsb/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: 261c1089559f919eef2f79eada4301861b0af0d3
X-VCS-Branch: master
Date: Fri, 17 May 2024 03:56:17 +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: 1233614a-27fe-4072-8576-153e2a3d7928
X-Archives-Hash: 12c30f7dd9e956dfb25f974dc090538a

commit:     261c1089559f919eef2f79eada4301861b0af0d3
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Thu May 16 05:22:34 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri May 17 03:55:26 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=261c1089

dev-lang/xsb: mark as LTO-unsafe, strict-aliasing unsafe

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

 dev-lang/xsb/xsb-4.0.0-r1.ebuild | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/dev-lang/xsb/xsb-4.0.0-r1.ebuild b/dev-lang/xsb/xsb-4.0.0-r1.ebuild
index fa64c0362321..bf99d5d3efb6 100644
--- a/dev-lang/xsb/xsb-4.0.0-r1.ebuild
+++ b/dev-lang/xsb/xsb-4.0.0-r1.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 PATCHSET_VER="3"
 
-inherit autotools java-pkg-opt-2
+inherit autotools flag-o-matic java-pkg-opt-2
 
 DESCRIPTION="XSB is a logic programming and deductive database system"
 HOMEPAGE="https://xsb.sourceforge.net"
@@ -55,6 +55,12 @@ src_prepare() {
 }
 
 src_configure() {
+	# -Werror=strict-aliasing, -Werror=lto-type-mismatch
+	# https://bugs.gentoo.org/855659
+	# https://sourceforge.net/p/xsb/bugs/264/
+	append-flags -fno-strict-aliasing
+	filter-lto
+
 	cd "${S}"/build
 
 	econf \