public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/stockfish] rawhide: Fix EPEL 8 build
Date: Mon, 26 Oct 2026 12:53:38 GMT [thread overview]
Message-ID: <179301921854.1.6560659543152375706.rpms-stockfish-ecd72e9dbe4e@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/stockfish
Branch : rawhide
Commit : ecd72e9dbe4e418b04f0114c6890908b5a665b28
Author : Ondrej Mosnáček <omosnacek@gmail.com>
Date : 2026-10-26T10:00:17+01:00
Stats : +10/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/stockfish/c/ecd72e9dbe4e418b04f0114c6890908b5a665b28?branch=rawhide
Log:
Fix EPEL 8 build
Two workarounds are needed for RHEL-8's old GCC.
Signed-off-by: Ondrej Mosnáček <omosnacek@gmail.com>
---
diff --git a/stockfish.spec b/stockfish.spec
index cc9a3b7..a04a89c 100644
--- a/stockfish.spec
+++ b/stockfish.spec
@@ -54,6 +54,11 @@ test "%{nnuehash1}" = "$(sha256sum %{SOURCE1} | cut -c1-12)"
# This is currently only required for EPEL8 build to pass.
sed -i '/#error/d' src/types.h
+%if %{defined el8}
+# RHEL-8's GCC is too old to support -fconstexpr-ops-limit
+sed -i 's/-fconstexpr-ops-limit=[0-9][0-9]*//g' src/Makefile
+%endif
+
# Verify the NNUE net checksums match the defaults defined in the sources
grep -Fq '#define EvalFileDefaultName "nn-%{nnuehash1}.nnue"' src/evaluate.h
@@ -160,6 +165,11 @@ sed -r -i 's/-O3//' src/Makefile
%endif
%endif
+%if %{defined el8}
+# RHEL-8's GCC requires libstdc++fs to be linked for std::filesystem usage
+export LDFLAGS="$LDFLAGS -lstdc++fs"
+%endif
+
%make_build -C src profile-build ARCH=%sfarch
%install
reply other threads:[~2026-10-26 12:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179301921854.1.6560659543152375706.rpms-stockfish-ecd72e9dbe4e@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox