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") \