From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1536199-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 DFE5315800D
	for <garchives@archives.gentoo.org>; Sun,  9 Jul 2023 16:21:30 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 32BD6E088C;
	Sun,  9 Jul 2023 16:21:30 +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 1B4D5E088C
	for <gentoo-commits@lists.gentoo.org>; Sun,  9 Jul 2023 16:21:30 +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 36F34335D77
	for <gentoo-commits@lists.gentoo.org>; Sun,  9 Jul 2023 16:21:29 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 7EA4B51F
	for <gentoo-commits@lists.gentoo.org>; Sun,  9 Jul 2023 16:21:27 +0000 (UTC)
From: "Michael Orlitzky" <mjo@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, "Michael Orlitzky" <mjo@gentoo.org>
Message-ID: <1688919576.6a29b8c181bb98a32bc2a7c21589631d93ea6880.mjo@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/openblas/
X-VCS-Repository: repo/gentoo
X-VCS-Files: sci-libs/openblas/openblas-0.3.23.ebuild
X-VCS-Directories: sci-libs/openblas/
X-VCS-Committer: mjo
X-VCS-Committer-Name: Michael Orlitzky
X-VCS-Revision: 6a29b8c181bb98a32bc2a7c21589631d93ea6880
X-VCS-Branch: master
Date: Sun,  9 Jul 2023 16:21:27 +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: 37a974ac-74ee-40d7-aced-24d12e1fbdf8
X-Archives-Hash: 663726d192fc3119ef5950aba6db50b4

commit:     6a29b8c181bb98a32bc2a7c21589631d93ea6880
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Sun Jul  9 16:16:54 2023 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Sun Jul  9 16:19:36 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a29b8c1

sci-libs/openblas: disable LTO for now.

There's an upstream issue open for the type mismatches, but it doesn't
look like an easy fix. For now we work around it by disabling LTO, which
disables -Werror=lto-type-mismatch as well.

Closes: https://bugs.gentoo.org/878987
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 sci-libs/openblas/openblas-0.3.23.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sci-libs/openblas/openblas-0.3.23.ebuild b/sci-libs/openblas/openblas-0.3.23.ebuild
index a29cc595fcae..7638b7e3d707 100644
--- a/sci-libs/openblas/openblas-0.3.23.ebuild
+++ b/sci-libs/openblas/openblas-0.3.23.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit fortran-2 toolchain-funcs
+inherit flag-o-matic fortran-2 toolchain-funcs
 
 DESCRIPTION="Optimized BLAS library based on GotoBLAS2"
 HOMEPAGE="https://github.com/xianyi/OpenBLAS"
@@ -53,6 +53,9 @@ pkg_setup() {
 
 	# List of most configurable options - Makefile.rule
 
+	# not an easy fix, https://github.com/xianyi/OpenBLAS/issues/4128
+	filter-lto
+
 	# https://github.com/xianyi/OpenBLAS/pull/2663
 	tc-export CC FC LD AR AS RANLIB