From d1558ae40885d2579b3551f56ff01add1d6568c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Tue, 27 Oct 2020 19:54:38 +0100 Subject: [PATCH] maelstrom: Fix build for 64bit targets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit | SDL_FrameBuf.cpp:852:14: error: cast from 'SDL_Rect*' to 'int' loses precision [-fpermissive] | 852 | (int)newlist | | ^~~~~~~ Signed-off-by: Andreas Müller --- ...eBuf.cpp-Fix-build-for-64Bit-targets.patch | 37 +++++++++++++++++++ recipes-games/maelstrom/maelstrom_3.0.6.bb | 1 + 2 files changed, 38 insertions(+) create mode 100644 recipes-games/maelstrom/maelstrom/0005-SDL_FrameBuf.cpp-Fix-build-for-64Bit-targets.patch diff --git a/recipes-games/maelstrom/maelstrom/0005-SDL_FrameBuf.cpp-Fix-build-for-64Bit-targets.patch b/recipes-games/maelstrom/maelstrom/0005-SDL_FrameBuf.cpp-Fix-build-for-64Bit-targets.patch new file mode 100644 index 0000000..8765fc1 --- /dev/null +++ b/recipes-games/maelstrom/maelstrom/0005-SDL_FrameBuf.cpp-Fix-build-for-64Bit-targets.patch @@ -0,0 +1,37 @@ +From da490238ae606cc4dcb704fb739d3e6f523b1976 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= +Date: Tue, 27 Oct 2020 19:50:25 +0100 +Subject: [PATCH] SDL_FrameBuf.cpp: Fix build for 64Bit targets +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Stolen from [1] + +[1] https://src.fedoraproject.org/rpms/Maelstrom/blob/master/f/Maelstrom-3.0.6-64bit.patch + +Upstream-Status: Pending + +Signed-off-by: Andreas Müller +--- + screenlib/SDL_FrameBuf.cpp | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/screenlib/SDL_FrameBuf.cpp b/screenlib/SDL_FrameBuf.cpp +index d1e087f..430e903 100644 +--- a/screenlib/SDL_FrameBuf.cpp ++++ b/screenlib/SDL_FrameBuf.cpp +@@ -848,8 +848,8 @@ FrameBuf:: AddDirtyRect(SDL_Rect *rect) + for ( i=0; i