summaryrefslogtreecommitdiff
path: root/games-emulation/desmume
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2021-09-19 13:40:05 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2021-09-19 13:40:05 +0000
commitc3e380abeb6a8b6f648df61aab556a3cefa167b5 (patch)
tree15b2366f3f06eb0e59654531eeb103178fd2f33a /games-emulation/desmume
parent63822c217487de884f9232cdb02a2f66b266b39e (diff)
downloadbaldeagleos-repo-c3e380abeb6a8b6f648df61aab556a3cefa167b5.tar.gz
baldeagleos-repo-c3e380abeb6a8b6f648df61aab556a3cefa167b5.tar.xz
baldeagleos-repo-c3e380abeb6a8b6f648df61aab556a3cefa167b5.zip
Adding metadata
Diffstat (limited to 'games-emulation/desmume')
-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
2 files changed, 17 insertions, 0 deletions
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)