r8506 - in packages/trunk/teeworlds/debian: . patches
Gonéri Le Bouder
goneri at alioth.debian.org
Sun Dec 14 01:00:15 UTC 2008
Author: goneri
Date: 2008-12-14 01:00:15 +0000 (Sun, 14 Dec 2008)
New Revision: 8506
Added:
packages/trunk/teeworlds/debian/patches/fix-big-endian.diff
Modified:
packages/trunk/teeworlds/debian/changelog
packages/trunk/teeworlds/debian/patches/series
Log:
* Apply Michel Dänzer patch to avoid crash on big endian arch
(Closes: #504704)
Modified: packages/trunk/teeworlds/debian/changelog
===================================================================
--- packages/trunk/teeworlds/debian/changelog 2008-12-14 00:24:30 UTC (rev 8505)
+++ packages/trunk/teeworlds/debian/changelog 2008-12-14 01:00:15 UTC (rev 8506)
@@ -1,3 +1,11 @@
+teeworlds (0.4.3-2) experimental; urgency=low
+
+ [ Gonéri Le Bouder ]
+ * Apply Michel Dänzer patch to avoid crash on big endian arch
+ (Closes: #504704)
+
+ -- Gonéri Le Bouder <goneri at rulezlan.org> Sun, 14 Dec 2008 01:55:34 +0100
+
teeworlds (0.4.3-1) experimental; urgency=low
[ Ansgar Burchardt ]
Added: packages/trunk/teeworlds/debian/patches/fix-big-endian.diff
===================================================================
--- packages/trunk/teeworlds/debian/patches/fix-big-endian.diff (rev 0)
+++ packages/trunk/teeworlds/debian/patches/fix-big-endian.diff 2008-12-14 01:00:15 UTC (rev 8506)
@@ -0,0 +1,24 @@
+patch by Michel Dänzer <daenzer at debian.org>
+http://bugs.debian.org/504704
+Index: src/engine/e_datafile.c
+===================================================================
+--- src/engine/e_datafile.c.orig
++++ src/engine/e_datafile.c
+@@ -137,7 +137,7 @@
+ }
+
+ #if defined(CONF_ARCH_ENDIAN_BIG)
+- swap_endian(df->data, sizeof(int), header.swaplen);
++ swap_endian(df->data, sizeof(int), header.swaplen/sizeof(int));
+ #endif
+
+ if(DEBUG)
+@@ -261,7 +261,7 @@
+ return ptr;
+
+ #if defined(CONF_ARCH_ENDIAN_BIG)
+- swap_endian(ptr, sizeof(int), size);
++ swap_endian(ptr, sizeof(int), size/sizeof(int));
+ #endif
+
+ return ptr;
Modified: packages/trunk/teeworlds/debian/patches/series
===================================================================
--- packages/trunk/teeworlds/debian/patches/series 2008-12-14 00:24:30 UTC (rev 8505)
+++ packages/trunk/teeworlds/debian/patches/series 2008-12-14 01:00:15 UTC (rev 8506)
@@ -1,3 +1,4 @@
+fix-big-endian.diff -p0
dont-link-with-asound.diff
new-wavpack.patch
system-libs.patch
More information about the Pkg-games-commits
mailing list