commit 38677d2a0be71dcd77e65d7bdd4d4dfbe56037d6
Author: Petr Menšík <pemensik(a)redhat.com>
Date: Thu Feb 29 00:25:35 2024 +0100
Fix build on powerpc platforms
https://github.com/etlegacy/etlegacy/pull/2492
etlegacy-2.81-ppc64-altivec.patch | 26 ++++++++++++++++++++++++++
etlegacy.spec | 7 ++++++-
2 files changed, 32 insertions(+), 1 deletion(-)
---
diff --git a/etlegacy-2.81-ppc64-altivec.patch b/etlegacy-2.81-ppc64-altivec.patch
new file mode 100644
index 0000000..7a4ec36
--- /dev/null
+++ b/etlegacy-2.81-ppc64-altivec.patch
@@ -0,0 +1,26 @@
+From 3b24871a262eae418c6f58df903e8efdd590ed36 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= <pemensik(a)fedoraproject.org>
+Date: Tue, 27 Feb 2024 21:33:06 +0100
+Subject: [PATCH] Fix PowerPC build where SDL_HasAltiVec is undefined
+
+Use proper includes for SDL definitions, which are needed for PPC
+specific initialization of altivec variable.
+---
+ src/qcommon/common.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/qcommon/common.c b/src/qcommon/common.c
+index a26e55bfc..b530a9263 100644
+--- a/src/qcommon/common.c
++++ b/src/qcommon/common.c
+@@ -39,6 +39,7 @@
+
+ #ifndef DEDICATED
+ #include "../sys/sys_local.h"
++#include "../sdl/sdl_defs.h"
+ #include "../client/client.h"
+ #endif
+ #include "../server/server.h"
+--
+2.43.2
+
diff --git a/etlegacy.spec b/etlegacy.spec
index 332f1f8..a96bd3b 100644
--- a/etlegacy.spec
+++ b/etlegacy.spec
@@ -15,7 +15,7 @@
Name: etlegacy
Version: 2.81.1
-Release: 3%{?snapinfo:.%{snapinfo}}%{?dist}
+Release: 4%{?snapinfo:.%{snapinfo}}%{?dist}
Summary: Fully compatible client and server for the game Wolfenstein: Enemy
Territory
License: GPLv3
@@ -29,6 +29,8 @@ Source4: com.etlegacy.ETLegacy.installer.desktop
#
https://github.com/etlegacy/etlegacy/pull/2289
Patch2: etlegacy-2.81-cjson-devel.patch
+#
https://github.com/etlegacy/etlegacy/pull/2492
+Patch3: etlegacy-2.81-ppc64-altivec.patch
BuildRequires: gcc gcc-c++
BuildRequires: cmake
@@ -138,6 +140,9 @@ appstream-util validate-relax --nonet
%{buildroot}%{_metainfodir}/com.etlegacy.E
%{_datadir}/applications/com.etlegacy.ETLegacy.installer.desktop
%changelog
+* Wed Feb 28 2024 Petr Menšík <pemensik(a)redhat.com> - 2.81.1-4
+- Fix build on powerpc platforms
+
* Sun Feb 04 2024 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> -
2.81.1-3
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild