Package: warsow Version: 0.31.dfsg-2 Severity: important Tags: patch
The attached patch fixes two problems on powerpc: * Define CPUSTRING and ARCH, so e.g. modules are correctly looked for as *_powerpc.so instead of *_Unknown.so. This is probably necessary for other architectures as well. * Fix the off-by-one definition of HEADER_LUMPS, so the size of dheader_t is calculated correctly, and all of its members are byte-swapped as needed. Without this, loading the demo (and probably at least some maps) fails on big endian systems. --- System information. --- Architecture: powerpc Kernel: Linux 2.6.21-2-powerpc Debian Release: lenny/sid 500 unstable mirror.switch.ch 500 stable security.debian.org 102 experimental ftp.ch.debian.org --- Package information. --- Depends (Version) | Installed =========================================-+-====================== libc6 (>= 2.6-1) | 2.6-2 libcurl3-gnutls (>= 7.16.2-1) | 7.16.2-6 libjpeg62 | 6b-13 libkrb53 (>= 1.6.dfsg.1) | 1.6.dfsg.1-6 libsdl1.2debian (>= 1.2.10-1) | 1.2.11-9 libvorbisfile3 (>= 1.1.2) | 1.1.2.dfsg-2 libx11-6 | 2:1.1.2-1 libxext6 | 1:1.0.3-2 libxinerama1 | 1:1.0.2-1 libxxf86dga1 | 2:1.0.1-2 libxxf86vm1 | 1:1.0.1-2 zlib1g (>= 1:1.2.3.3.dfsg-1) | 1:1.2.3.3.dfsg-5 warsow-data (>= 0.31) | 0.31-1 warsow-data (<< 0.32) | 0.31-1 -- Earthling Michel Dänzer | http://tungstengraphics.com Libre software enthusiast | Debian, X and DRI developer
diff -up -ru warsow-0.31.dfsg.orig/warsow_0.31/source/game/q_shared.h warsow-0.31.dfsg/warsow_0.31/source/game/q_shared.h --- warsow-0.31.dfsg.orig/warsow_0.31/source/game/q_shared.h 2007-06-21 00:40:48.000000000 +0200 +++ warsow-0.31.dfsg/warsow_0.31/source/game/q_shared.h 2007-07-18 19:20:10.000000000 +0200 @@ -173,6 +173,9 @@ typedef UINT_PTR quintptr; # elif defined(__alpha__) # define CPUSTRING "axp" # define ARCH "axp" +# elif defined(__powerpc__) +# define CPUSTRING "powerpc" +# define ARCH "powerpc" # else # define CPUSTRING "Unknown" # define ARCH "Unknown" diff -up -ru warsow-0.31.dfsg.orig/warsow_0.31/source/qcommon/qfiles.h warsow-0.31.dfsg/warsow_0.31/source/qcommon/qfiles.h --- warsow-0.31.dfsg.orig/warsow_0.31/source/qcommon/qfiles.h 2007-06-08 21:23:14.000000000 +0200 +++ warsow-0.31.dfsg/warsow_0.31/source/qcommon/qfiles.h 2007-07-18 13:18:20.000000000 +0200 @@ -425,7 +425,7 @@ typedef struct { #define LUMP_VISIBILITY 16 #define LUMP_LIGHTARRAY 17 -#define HEADER_LUMPS 17 // 16 for IDBSP +#define HEADER_LUMPS 18 // 17 for IDBSP typedef struct {