The package rpms/stockfish.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/stockfish.git/commit/?id=0489dff3....
Change:
+%ifarch s390x
Thanks.
Full change:
============
commit 032d53432457db9a153da88882f5e604e2ae8d31
Merge: 34fd8f5 6cdd942
Author: Ondrej Mosnacek <omosnace(a)redhat.com>
Date: Wed Apr 20 19:48:34 2022 +0200
Merge branch 'epel8' into rawhide
commit 6cdd942aa3af19829f739be4456b6bb37d024454
Author: Ondrej Mosnacek <omosnace(a)redhat.com>
Date: Tue Apr 19 21:14:03 2022 +0200
Make spec file generic w.r.t. Fedora and EPEL
This will allow to merge the epel8 branch back into rawhide and keep all
branches in sync.
Signed-off-by: Ondrej Mosnacek <omosnace(a)redhat.com>
diff --git a/stockfish.spec b/stockfish.spec
index 39d1c4b..f360786 100644
--- a/stockfish.spec
+++ b/stockfish.spec
@@ -80,6 +80,7 @@ sed -e 's,\(EngineDir = \).*,\1%{_bindir},' \
# the use of -O3 here:
# Architecture | armv7hl | i686 | x86_64 | aarch64 | ppc64le | s390x
# -O3 speedup | 1%% | 14%% | 13%% | 10%% | 31%% | 1%%
+%if 0%{?el8}
%ifarch s390x
# (EPEL8 only):
# during GIMPLE pass: vect
@@ -91,6 +92,7 @@ sed -e 's,\(EngineDir = \).*,\1%{_bindir},' \
# according to the benchmarks above, the impact is trivial on s390x anyway.
sed -r -i 's/-O3//' src/Makefile
%endif
+%endif
%make_build -C src build ARCH=%sfarch \
EXTRACXXFLAGS="%{build_cxxflags}" \
EXTRALDFLAGS="%{build_ldflags}"
commit 34fd8f5ee3cc29a0b308cd91bb9c0ba4617b8306
Author: Ondrej Mosnacek <omosnace(a)redhat.com>
Date: Tue Apr 19 20:50:19 2022 +0200
Bump to version 15
Signed-off-by: Ondrej Mosnacek <omosnace(a)redhat.com>
diff --git a/sources b/sources
index 80d177e..4242d9a 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-SHA512 (sf_14.1.zip) =
531a54a7a792a722438aacfdf61d064b107365672852599c1b027bd2c0c3f903e6600c8eedc95c60c734d169562f9977cb7f5dc3ede18d8fc20627c7c23cafba
-SHA512 (nn-13406b1dcbe0.nnue) =
89b1242262d10aba9de168d5fdcaf70b36f9ad84d79eca7245591174c679473d60251b30d8a05100967fd5bf0e8e59632749d6d77f2bbdce0a3f77b8d15dd5cc
+SHA512 (sf_15.zip) =
96e0e5bc11d678c39b4b16286a6e1ec511fd75bcae704422fd65907930dda33bad28aa9b7d24d1d4092cc765dcc2a1fbe3d047916a26a0016e465788512c0913
+SHA512 (nn-6877cd24400e.nnue) =
456961b01c7b7a852ac23eb9de8aca65204d5d0566868c998eb8918abd9c9eef7f7fb08ac08a7750eaede451859f93a15e92e1a14ecc269268dadb9a7b0eb135
diff --git a/stockfish.spec b/stockfish.spec
index 4f2cc1c..1f0995d 100644
--- a/stockfish.spec
+++ b/stockfish.spec
@@ -1,9 +1,9 @@
%global srcname Stockfish
-%global nnuehash 13406b1dcbe0
+%global nnuehash 6877cd24400e
Name: stockfish
-Version: 14.1
-Release: 2%{?dist}
+Version: 15
+Release: 1%{?dist}
#Source0: %%{url}/files/%%{name}-%%{version}-linux.zip
Source0:
https://github.com/official-%{name}/%{srcname}/archive/sf_%{version}.zip
Summary: Powerful open source chess engine
@@ -109,6 +109,10 @@ cp -p polyglot.ini %{buildroot}%{_sysconfdir}/%{name}
%changelog
+* Tue Apr 19 2022 Ondrej Mosnacek <omosnace(a)redhat.com> - 15-1
+- Bump to version 15
+- Resolves: rhbz#2076750
+
* Sat Jan 22 2022 Fedora Release Engineering <releng(a)fedoraproject.org> - 14.1-2
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
commit 34a38cfdd2eace0901a9e650ce41e05dcd642423
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Sat Jan 22 01:43:54 2022 +0000
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>
diff --git a/stockfish.spec b/stockfish.spec
index 718ff8b..4f2cc1c 100644
--- a/stockfish.spec
+++ b/stockfish.spec
@@ -3,7 +3,7 @@
Name: stockfish
Version: 14.1
-Release: 1%{?dist}
+Release: 2%{?dist}
#Source0: %%{url}/files/%%{name}-%%{version}-linux.zip
Source0:
https://github.com/official-%{name}/%{srcname}/archive/sf_%{version}.zip
Summary: Powerful open source chess engine
@@ -109,6 +109,9 @@ cp -p polyglot.ini %{buildroot}%{_sysconfdir}/%{name}
%changelog
+* Sat Jan 22 2022 Fedora Release Engineering <releng(a)fedoraproject.org> - 14.1-2
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
+
* Mon Nov 08 2021 Ondrej Mosnacek <omosnace(a)redhat.com> - 14.1-1
- Adapt spec file for NNUE support
- Use upstream buildsystem
commit 0489dff32fc713852db2adf9fa1df29412fabe62
Author: Benjamin A. Beasley <code(a)musicinmybrain.net>
Date: Fri Dec 10 11:39:08 2021 -0500
Reduce optimization level on s390x
This works around a gcc bug (internal compiler error) on that
architecture in EPEL8.
diff --git a/stockfish.spec b/stockfish.spec
index 718ff8b..39d1c4b 100644
--- a/stockfish.spec
+++ b/stockfish.spec
@@ -80,6 +80,17 @@ sed -e 's,\(EngineDir = \).*,\1%{_bindir},' \
# the use of -O3 here:
# Architecture | armv7hl | i686 | x86_64 | aarch64 | ppc64le | s390x
# -O3 speedup | 1%% | 14%% | 13%% | 10%% | 31%% | 1%%
+%ifarch s390x
+# (EPEL8 only):
+# during GIMPLE pass: vect
+# main.cpp: In function 'main':
+# main.cpp:33:5: internal compiler error: Segmentation fault
+# int main(int argc, char* argv[]) {
+# ^
+# Reducing the optimization level fixes this at the cost of some performance;
+# according to the benchmarks above, the impact is trivial on s390x anyway.
+sed -r -i 's/-O3//' src/Makefile
+%endif
%make_build -C src build ARCH=%sfarch \
EXTRACXXFLAGS="%{build_cxxflags}" \
EXTRALDFLAGS="%{build_ldflags}"