summaryrefslogtreecommitdiff
path: root/games-emulation/desmume
diff options
context:
space:
mode:
Diffstat (limited to 'games-emulation/desmume')
-rw-r--r--games-emulation/desmume/Manifest3
-rw-r--r--games-emulation/desmume/desmume-0.9.11_p20210409-r1.ebuild1
-rw-r--r--games-emulation/desmume/files/desmume-0.9.11_p20210409-clang.patch16
3 files changed, 19 insertions, 1 deletions
diff --git a/games-emulation/desmume/Manifest b/games-emulation/desmume/Manifest
index 6052ded6d01a..4c0ca8882c3d 100644
--- a/games-emulation/desmume/Manifest
+++ b/games-emulation/desmume/Manifest
@@ -1,5 +1,6 @@
+AUX desmume-0.9.11_p20210409-clang.patch 564 BLAKE2B 598a4f20ab5e8d7876ad4add3db0352b11af1dac44f8725b5f0b168c80f71fb5ace51c52ec975455c99994eefe03181e9c2e4c27ce335b3af735646695df90bc SHA512 839897604d7ce126d5f8d3eb2f5325532c57abb847479ecf54e19cb10d61c178a62a3624ff4a0e86589dec8568ea44129da8650cd7ab0697093d13452245c9ba
AUX desmume-0.9.11_p20210409-fix-gtk-cliopts.patch 2969 BLAKE2B 8aa75d966e74a1d274f923636c9984558a738566b9e3bb101c30182d5929753c2ce528341708a69ab5db68c348e34a79590c79e8b8a6181f639248eb5381edb6 SHA512 a438cbebb2ba06ab66b9643df9ec9b1e922f02478a50d5cdc81cdb18ff688f48ea28fc289305dc5daa2f553760dcd0b1a02c729d48e9fd9b35f03a79a9096c07
AUX desmume-0.9.11_p20210409-openal-automagic.patch 315 BLAKE2B cf203d506460deb88b6bc366d993e2376ebb6b2ac6d4e9c1d8eeda3aba0e0ab4ffe994c5855cf58babd2d25f86807289dbe48a37cace30732ecdc47363cdcbba SHA512 5d584a18595584ec8f23b74ceef5e3667d4e91a3b35def7cab715a9325a797f1b457dcff4dc804088aa047be49b0f828a28800a4713929ac4073bdf7a99b3b25
DIST desmume-0.9.11_p20210409.tar.gz 13157043 BLAKE2B f8e582005555357cb632478ba8d2730e51a5cb8dbbee05d4af138df19a015ced6cff721fb53f87224774aed8287f91a01da5600f5548189fd0e264e5b3037fd8 SHA512 1897b3b35c7e997876ff53a36849a39b85bd49c737dab61f68c376e3cb294486f9edded98924275e8ee91e5b008e9d3814987edaab7306217c17dbc094f69348
-EBUILD desmume-0.9.11_p20210409-r1.ebuild 1134 BLAKE2B 530c34eb5db5934ec48dc253328c6f19932d07b6438eee17faed79839a6b567e7a0a62159c132e6e2637e58466138672aef9052c34a5472f69e7aa1c61717749 SHA512 3c910c91405227139f3d2b478d957230b64186a50b8f444f2bf07cf0d19049642e4981c1c45e10171c3ba17af4a7cdf1c75f8e7ba6e36aff1553e75ab581b517
+EBUILD desmume-0.9.11_p20210409-r1.ebuild 1166 BLAKE2B 393123312822a6862020fe1ed472f1b31f73024fc55331757f2a7e25542b8bc44918e85123e6e35188abd5ef08ada0298b329d1ec14a7b6a5842c54bbeeb7db2 SHA512 329b20e867bacb8edba5b22ed18e47266192b47b63dec8318e20ec6627ea6d7a8d6b3618354c13fa8a2793a5027b68aabbbf55a3c8d349fd669664348047933d
MISC metadata.xml 634 BLAKE2B 91988d51bd4fc569685d68014de840113a5c046c33fe07f638af08d57c35cb92976a5004c23047e1fdcab2349426a70e2411ca654b46b639a335ee2a1d58a97f SHA512 28e671fab8e8aaef4d6573fe8d5cf490d1e1288d756240b27370eb58a631af96c2078a2fdbdc17320515b28c86cd90f3399299f7d00f9af6f1c91ce7312a8301
diff --git a/games-emulation/desmume/desmume-0.9.11_p20210409-r1.ebuild b/games-emulation/desmume/desmume-0.9.11_p20210409-r1.ebuild
index c3a847606182..9cc9dd366242 100644
--- a/games-emulation/desmume/desmume-0.9.11_p20210409-r1.ebuild
+++ b/games-emulation/desmume/desmume-0.9.11_p20210409-r1.ebuild
@@ -36,6 +36,7 @@ DEPEND="
PATCHES=(
"${FILESDIR}"/${P}-fix-gtk-cliopts.patch
"${FILESDIR}"/${P}-openal-automagic.patch
+ "${FILESDIR}"/${P}-clang.patch
)
DOCS=( ${PN}/{AUTHORS,ChangeLog,README,README.LIN,doc/.} )
diff --git a/games-emulation/desmume/files/desmume-0.9.11_p20210409-clang.patch b/games-emulation/desmume/files/desmume-0.9.11_p20210409-clang.patch
new file mode 100644
index 000000000000..164cb5af4836
--- /dev/null
+++ b/games-emulation/desmume/files/desmume-0.9.11_p20210409-clang.patch
@@ -0,0 +1,16 @@
+Fix build with clang https://bugs.gentoo.org/739144
+
+Fixed upstream in: https://github.com/TASVideos/desmume/commit/92cb90f
+--- a/desmume/src/texcache.cpp
++++ b/desmume/src/texcache.cpp
+@@ -1165,8 +1165,8 @@ void NDSTextureUnpack4x4(const size_t sr
+
+ for (size_t y = 0, d = 0; y < yTmpSize; y++)
+ {
+- u32 tmpPos[4]={(y<<2)*sizeX,((y<<2)+1)*sizeX,
+- ((y<<2)+2)*sizeX,((y<<2)+3)*sizeX};
++ u32 tmpPos[4]={u32(y<<2)*sizeX,u32((y<<2)+1)*sizeX,
++ u32((y<<2)+2)*sizeX,u32((y<<2)+3)*sizeX};
+ for (size_t x = 0; x < xTmpSize; x++, d++)
+ {
+ if (d >= limit)