[mame] 02/04: Add patch to fix build on PPC le targets.

Jordi Mallach jordi at moszumanska.debian.org
Sat May 14 23:20:16 UTC 2016


This is an automated email from the git hooks/post-receive script.

jordi pushed a commit to branch master
in repository mame.

commit 2e3b76d92db11381953feea530b6416cc92d6318
Author: Jordi Mallach <jordi at debian.org>
Date:   Sun May 15 00:26:26 2016 +0200

    Add patch to fix build on PPC le targets.
---
 debian/changelog                    |  2 ++
 debian/patches/arch_ppc_fixes.patch | 24 ++++++++++++++++++++++++
 debian/patches/series               |  1 +
 3 files changed, 27 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index eb31e79..e2b0975 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
 mame (0.173-4) UNRELEASED; urgency=medium
 
   * Define arch bits for ppc64 and mips64el.
+  * Add arch_ppc_fixes.patch: cherrypick from git to fix compilation on
+    Little Endian PPC targets.
 
  -- Jordi Mallach <jordi at debian.org>  Sun, 15 May 2016 00:16:30 +0200
 
diff --git a/debian/patches/arch_ppc_fixes.patch b/debian/patches/arch_ppc_fixes.patch
new file mode 100644
index 0000000..5109cff
--- /dev/null
+++ b/debian/patches/arch_ppc_fixes.patch
@@ -0,0 +1,24 @@
+commit 689c19720ae7854ec50024972ae8ab1232837d15
+Author: Vas Crabb <vas at vastheman.com>
+Date:   Sat May 14 16:50:14 2016 +1000
+
+    Hopefully fix PPC targets
+
+diff --git a/src/emu/video/rgbvmx.h b/src/emu/video/rgbvmx.h
+index f5829c1..95a7d45 100644
+--- a/src/emu/video/rgbvmx.h
++++ b/src/emu/video/rgbvmx.h
+@@ -28,11 +28,11 @@ protected:
+ 	typedef __vector unsigned int   VECU32;
+ 
+ public:
+-	inline rgbaint_t(): VECS8(0), VECU8(0), VECS16(0), VECU16(0), VECS32(0), VECU32(0) { }
++	inline rgbaint_t() { set(0, 0, 0, 0); }
+ 	inline rgbaint_t(UINT32 rgba) { set(rgba); }
+ 	inline rgbaint_t(INT32 a, INT32 r, INT32 g, INT32 b) { set(a, r, g, b); }
+ 	inline rgbaint_t(rgb_t& rgb) { set(rgb); }
+-	inline rgbaint_t(VECS32 rgba): VECS8(0), VECU8(0), VECS16(0), VECU16(0), VECS32(0), VECU32(0) { m_value = rgba; }
++	inline rgbaint_t(VECS32 rgba) m_value(rgba) { }
+ 
+ 	inline void set(rgbaint_t& other) { m_value = other.m_value; }
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 398c9c4..e564dca 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 ftbfs_v60_m_fetch_xor.patch
+arch_ppc_fixes.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/mame.git



More information about the Pkg-games-commits mailing list