r15519 - in packages/trunk/supertux/debian: . patches

Vincent Cheng vcheng at moszumanska.debian.org
Thu Aug 20 08:16:15 UTC 2015


Author: vcheng
Date: 2015-08-20 08:16:14 +0000 (Thu, 20 Aug 2015)
New Revision: 15519

Added:
   packages/trunk/supertux/debian/patches/fix_big_endian_ftbfs.patch
Modified:
   packages/trunk/supertux/debian/changelog
   packages/trunk/supertux/debian/patches/series
Log:
supertux: fix FTBFS on big-endian archs


Modified: packages/trunk/supertux/debian/changelog
===================================================================
--- packages/trunk/supertux/debian/changelog	2015-08-19 08:39:32 UTC (rev 15518)
+++ packages/trunk/supertux/debian/changelog	2015-08-20 08:16:14 UTC (rev 15519)
@@ -1,8 +1,10 @@
-supertux (0.3.5a-2) UNRELEASED; urgency=medium
+supertux (0.3.5a-2) unstable; urgency=medium
 
+  * Fix FTBFS on big-endian archs. Thanks to Fabian Greffrath for the patch!
+    (Closes: #787698)
   * Install high resolution icon. (Closes: #794358)
 
- -- Vincent Cheng <vcheng at debian.org>  Mon, 03 Aug 2015 19:00:45 -0700
+ -- Vincent Cheng <vcheng at debian.org>  Thu, 20 Aug 2015 01:07:00 -0700
 
 supertux (0.3.5a-1) unstable; urgency=medium
 

Added: packages/trunk/supertux/debian/patches/fix_big_endian_ftbfs.patch
===================================================================
--- packages/trunk/supertux/debian/patches/fix_big_endian_ftbfs.patch	                        (rev 0)
+++ packages/trunk/supertux/debian/patches/fix_big_endian_ftbfs.patch	2015-08-20 08:16:14 UTC (rev 15519)
@@ -0,0 +1,20 @@
+Description: Fix FTBFS on big-endian archs
+Origin: upstream, https://github.com/SuperTux/supertux/commit/818534a09da32fe192043630d2d32d11ba1dd333
+Author: Fabian Greffrath <fabian at greffrath.com>
+Bug: https://github.com/SuperTux/supertux/issues/80
+Bug-Debian: https://bugs.debian.org/787698
+Last-Update: 2015-08-20
+
+diff --git a/src/audio/wav_sound_file.cpp b/src/audio/wav_sound_file.cpp
+index 2a1c8bd..d6fd36e 100644
+--- a/src/audio/wav_sound_file.cpp
++++ b/src/audio/wav_sound_file.cpp
+@@ -159,7 +159,7 @@ WavSoundFile::read(void* buffer, size_t buffer_size)
+     tmp[2*i+1] = c;
+   }
+ 
+-  *buffer = tmp;
++  *(char *)buffer = *tmp;
+ #endif
+ 
+   return readsize;

Modified: packages/trunk/supertux/debian/patches/series
===================================================================
--- packages/trunk/supertux/debian/patches/series	2015-08-19 08:39:32 UTC (rev 15518)
+++ packages/trunk/supertux/debian/patches/series	2015-08-20 08:16:14 UTC (rev 15519)
@@ -1,2 +1,3 @@
 embedded_libsquirrel.patch
 fix_desktop_file.patch
+fix_big_endian_ftbfs.patch




More information about the Pkg-games-commits mailing list