[packages/warzone2100] - fix build on x32

baggins baggins at pld-linux.org
Wed Oct 1 09:03:42 CEST 2025


commit a10a3629f0ae053798d683094aad74ce1ec8d160
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Oct 1 11:03:28 2025 +0200

    - fix build on x32

 warzone2100.spec |  2 ++
 x32.patch        | 11 +++++++++++
 2 files changed, 13 insertions(+)
---
diff --git a/warzone2100.spec b/warzone2100.spec
index 038ab46..1e3ee4d 100644
--- a/warzone2100.spec
+++ b/warzone2100.spec
@@ -7,6 +7,7 @@ License:	GPL v2+
 Group:		X11/Applications/Games/Strategy
 Source0:	https://downloads.sourceforge.net/warzone2100/releases/%{version}/%{name}_src.tar.xz
 # Source0-md5:	500e1a169f39454789bfc6bdb66b7582
+Patch0:		x32.patch
 URL:		https://www.wz2100.net/
 BuildRequires:	OpenAL-devel >= 0.0.8-4
 BuildRequires:	OpenGL-GLU-devel
@@ -55,6 +56,7 @@ Warzone 2100 data files
 
 %prep
 %setup -q -n %{name}
+%patch -P0 -p1
 
 %build
 mkdir -p build
diff --git a/x32.patch b/x32.patch
new file mode 100644
index 0000000..8bc0669
--- /dev/null
+++ b/x32.patch
@@ -0,0 +1,11 @@
+--- warzone2100/3rdparty/GameNetworkingSockets/src/public/minbase/minbase_types.h~	2025-09-16 18:42:25.000000000 +0200
++++ warzone2100/3rdparty/GameNetworkingSockets/src/public/minbase/minbase_types.h	2025-10-01 03:59:43.773333335 +0200
+@@ -75,7 +75,7 @@
+ // NOTE: int64_t must match the compiler stdint.h definition
+ // and so may not match the Steam int64.  Mixing the two is
+ // error-prone so always use the Steam non-_t types in Steam code.
+-#if defined(COMPILER_GCC) && defined(PLATFORM_64BITS) && !defined(__MINGW32__) && !IsOSX() && !(defined(IOS) || defined(TVOS))
++#if defined(COMPILER_GCC) && defined(PLATFORM_64BITS) && !defined(__ILP32__) && !defined(__MINGW32__) && !IsOSX() && !(defined(IOS) || defined(TVOS))
+ #define INT64_DIFFERENT_FROM_INT64_T 1
+ typedef long int int64_t;
+ typedef unsigned long int uint64_t;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/warzone2100.git/commitdiff/a10a3629f0ae053798d683094aad74ce1ec8d160



More information about the pld-cvs-commit mailing list