public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/stockfish] epel10: Make the build pass on EPEL 8
Date: Sun, 25 Oct 2026 09:33:23 GMT	[thread overview]
Message-ID: <179292080346.1.458108619889660420.rpms-stockfish-256e09c17f1a@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/stockfish
            Branch : epel10
            Commit : 256e09c17f1a8df4af2682c063dde072e8ae2fb0
            Author : Ondrej Mosnáček <omosnacek@gmail.com>
            Date   : 2026-02-03T21:32:25+01:00
            Stats  : +6/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/stockfish/c/256e09c17f1a8df4af2682c063dde072e8ae2fb0?branch=epel10

            Log:
            Make the build pass on EPEL 8

SF 18 introduced a build-time assert for minimum GCC version to avoid a
Windows bug. Deactivate this assert so that the package still builds on
EPEL 8.

Signed-off-by: Ondrej Mosnáček <omosnacek@gmail.com>

---
diff --git a/stockfish.spec b/stockfish.spec
index 25b8f11..e0ecf4e 100644
--- a/stockfish.spec
+++ b/stockfish.spec
@@ -52,6 +52,12 @@ test %nnuehash2 = "$(sha256sum %{SOURCE2} | cut -c1-12)"
 #%%autosetup -n%%{name}-%%{version}-linux
 %autosetup -p1 -n%{srcname}-sf_%{version}
 
+# Disable minimum GCC version check, as it only guards against
+# a bug that only affects Windows - see:
+# https://github.com/official-stockfish/Stockfish/issues/3216
+# This is currently only required for EPEL8 build to pass.
+sed -i '/#error/d' src/types.h
+
 # Verify the NNUE net checksums match the defaults defined in the sources
 grep -Fq '#define EvalFileDefaultNameBig "nn-%{nnuehash1}.nnue"' src/evaluate.h
 grep -Fq '#define EvalFileDefaultNameSmall "nn-%{nnuehash2}.nnue"' src/evaluate.h

                 reply	other threads:[~2026-10-25  9:33 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=179292080346.1.458108619889660420.rpms-stockfish-256e09c17f1a@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