From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1387780-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 EC8FB15808D
	for <garchives@archives.gentoo.org>; Wed, 20 Apr 2022 16:52:02 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id AE6EBE0932;
	Wed, 20 Apr 2022 16:52:01 +0000 (UTC)
Received: from smtp.gentoo.org (mail.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 54B64E0932
	for <gentoo-commits@lists.gentoo.org>; Wed, 20 Apr 2022 16:52:00 +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 6AD01341BD2
	for <gentoo-commits@lists.gentoo.org>; Wed, 20 Apr 2022 16:51:59 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id CE07C105
	for <gentoo-commits@lists.gentoo.org>; Wed, 20 Apr 2022 16:51:57 +0000 (UTC)
From: "罗百科" <patrick@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, "罗百科" <patrick@gentoo.org>
Message-ID: <1650473516.2545fec8d0ff4095a0911b69eb76fc6391433c0b.patrick@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: games-board/stockfish/
X-VCS-Repository: repo/gentoo
X-VCS-Files: games-board/stockfish/stockfish-15-r1.ebuild games-board/stockfish/stockfish-15.ebuild
X-VCS-Directories: games-board/stockfish/
X-VCS-Committer: patrick
X-VCS-Committer-Name: 罗百科
X-VCS-Revision: 2545fec8d0ff4095a0911b69eb76fc6391433c0b
X-VCS-Branch: master
Date: Wed, 20 Apr 2022 16:51:57 +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: d3bd22d6-1177-4ba9-888c-321669edb57e
X-Archives-Hash: 2005d910d68fd95681b57f9307b61cff

commit:     2545fec8d0ff4095a0911b69eb76fc6391433c0b
Author:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 20 16:51:26 2022 +0000
Commit:     罗百科 <patrick <AT> gentoo <DOT> org>
CommitDate: Wed Apr 20 16:51:56 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2545fec8

games-board/stockfish: Switch to 'profile-build' makefile target

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org>

 .../stockfish/{stockfish-15.ebuild => stockfish-15-r1.ebuild}    | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/games-board/stockfish/stockfish-15.ebuild b/games-board/stockfish/stockfish-15-r1.ebuild
similarity index 88%
rename from games-board/stockfish/stockfish-15.ebuild
rename to games-board/stockfish/stockfish-15-r1.ebuild
index 42d1b704aea0..3bd9252b0553 100644
--- a/games-board/stockfish/stockfish-15.ebuild
+++ b/games-board/stockfish/stockfish-15-r1.ebuild
@@ -26,6 +26,9 @@ S="${WORKDIR}/Stockfish-sf_${PV}/src"
 src_prepare() {
 	default
 
+	# remove config sanity check that doesn't like our COMPILER settings
+	sed -i -e 's/ config-sanity//g' Makefile || die
+
 	cp "${DISTDIR}"/${P}-${NNUE_FILE} ${NNUE_FILE} || die "copying the nnue file failed"
 
 	# prevent pre-stripping
@@ -56,12 +59,10 @@ src_compile() {
 	use ppc && my_arch=ppc
 	use ppc64 && my_arch=ppc64
 
-	# Skip the "build" target and use "all" instead to avoid the config
-	# sanity check (which would throw a fit about our compiler). There's
-	# a nice hack in the Makefile that overrides the value of CXX with
+	# There's a nice hack in the Makefile that overrides the value of CXX with
 	# COMPILER to support Travis CI and we abuse it to make sure that we
 	# build with our compiler of choice.
-	emake all ARCH="${my_arch}" \
+	emake profile-build ARCH="${my_arch}" \
 		COMP="$(tc-getCXX)" \
 		COMPILER="$(tc-getCXX)" \
 		debug=$(usex debug "yes" "no") \