The package rpms/teeworlds.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/teeworlds.git/commit/?id=89f56eab....
Change:
-ExcludeArch: s390x
Thanks.
Full change:
============
commit 0e19323a208d3d364b67fb05147f18314a104840
Author: Gwyn Ciesla <gwync(a)protonmail.com>
Date: Mon Apr 29 09:06:25 2019 -0500
Add patches.
diff --git a/3ae7e85.patch b/3ae7e85.patch
new file mode 100644
index 0000000..0618817
--- /dev/null
+++ b/3ae7e85.patch
@@ -0,0 +1,22 @@
+From 3ae7e85738d4b11321f0d2a53e2d536aa1f2d81e Mon Sep 17 00:00:00 2001
+From: Jordy Ruiz <jordy.ruiz(a)univ-lille.fr>
+Date: Fri, 26 Apr 2019 17:55:03 +0200
+Subject: [PATCH] Fix s390x
+
+---
+ src/engine/shared/datafile.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/engine/shared/datafile.cpp b/src/engine/shared/datafile.cpp
+index 676800c637..c4e809738e 100644
+--- a/src/engine/shared/datafile.cpp
++++ b/src/engine/shared/datafile.cpp
+@@ -172,7 +172,7 @@ bool CDataFileReader::Open(class IStorage *pStorage, const char
*pFilename, int
+ m_pDataFile = pTmpDataFile;
+
+ #if defined(CONF_ARCH_ENDIAN_BIG)
+- swap_endian(m_pDataFile->m_pData, sizeof(int),
min(static_cast<unsigned>(Header.m_Swaplen), Size) / sizeof(int));
++ swap_endian(m_pDataFile->m_pData, sizeof(int),
min(static_cast<unsigned>(Header.m_Swaplen), static_cast<unsigned>(Size)) /
sizeof(int));
+ #endif
+
+ //if(DEBUG)
diff --git a/d0bfb6e9c651a8484d6f3bc2967495edb7a5307d.patch
b/d0bfb6e9c651a8484d6f3bc2967495edb7a5307d.patch
new file mode 100644
index 0000000..0c038a4
--- /dev/null
+++ b/d0bfb6e9c651a8484d6f3bc2967495edb7a5307d.patch
@@ -0,0 +1,19 @@
+From d0bfb6e9c651a8484d6f3bc2967495edb7a5307d Mon Sep 17 00:00:00 2001
+From: Jordy Ruiz <jordy.ruiz(a)univ-lille.fr>
+Date: Sat, 27 Apr 2019 21:59:39 +0200
+Subject: [PATCH] @oy's fix for s390x: instantiate templates in netban
+
+---
+ src/engine/shared/netban.cpp | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/engine/shared/netban.cpp b/src/engine/shared/netban.cpp
+index bfa6e42157..ed58b38bd8 100644
+--- a/src/engine/shared/netban.cpp
++++ b/src/engine/shared/netban.cpp
+@@ -621,3 +621,5 @@ void CNetBan::ConBansSave(IConsole::IResult *pResult, void *pUser)
+ // explicitly instantiate template for src/engine/server/server.cpp
+ template void CNetBan::MakeBanInfo<CNetRange>(CBan<CNetRange> *pBan, char
*pBuf, unsigned BufferSize, int Type, int *pLastInfoQuery);
+ template void CNetBan::MakeBanInfo<NETADDR>(CBan<NETADDR> *pBan, char *pBuf,
unsigned BufferSize, int Type, int *pLastInfoQuery);
++template int CNetBan::Ban<CNetBan::CBanPool<NETADDR, 1>
>(CNetBan::CBanPool<NETADDR, 1> *pBanPool, const NETADDR *pData, int Seconds,
const char *pReason);
++template int CNetBan::Ban<CNetBan::CBanPool<CNetRange, 16>
>(CNetBan::CBanPool<CNetRange, 16> *pBanPool, const CNetRange *pData, int
Seconds, const char *pReason);
commit 89f56eabf2921b7742dee326157a5c6b70031f5d
Author: Gwyn Ciesla <gwync(a)protonmail.com>
Date: Mon Apr 29 09:06:09 2019 -0500
Fix s390x build.
diff --git a/teeworlds.spec b/teeworlds.spec
index a2c8585..a4820b6 100644
--- a/teeworlds.spec
+++ b/teeworlds.spec
@@ -1,6 +1,6 @@
Name: teeworlds
Version: 0.7.3.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Online multi-player platform 2D shooter
# zlib: src/engine/externals/md5/*
@@ -17,8 +17,8 @@ Source4: %{name}-server@.service
Source5: server_dm.cfg
Source6: server_tdm.cfg
Source7: server_ctf.cfg
-# For now.
-ExcludeArch: s390x
+Patch0: 3ae7e85.patch
+Patch1: d0bfb6e9c651a8484d6f3bc2967495edb7a5307d.patch
BuildRequires: python3-devel
BuildRequires: cmake
@@ -135,6 +135,9 @@ exit 0
%attr(-,teeworlds,teeworlds)%{_sysconfdir}/%{name}/
%changelog
+* Mon Apr 29 2019 Gwyn Ciesla <gwync(a)protonmail.com> - 0.7.3.1-2
+- Patch to fix s390x build.
+
* Fri Apr 26 2019 Gwyn Ciesla <gwync(a)protonmail.com> - 0.7.3.1-1
- 0.7.3.1