public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/stockfish] rawhide: Fix EPEL 8 build
@ 2026-10-26 12:53 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-10-26 12:53 UTC (permalink / raw)
  To: git-commits

            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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-26 12:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-26 12:53 [rpms/stockfish] rawhide: Fix EPEL 8 build 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox