From afb2d81f837d4d28e68cbc7f20721b9c79ec5d6f Mon Sep 17 00:00:00 2001 From: Martin Väth Date: Sat, 6 Feb 2021 09:30:07 +0100 Subject: games-emulation/sdlmame: attempt some fixes. Still fails here... MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Väth --- games-emulation/sdlmame/files/sdlmame-0.174-string.patch | 10 ++++++++++ games-emulation/sdlmame/files/sdlmame-0.174-tostring.patch | 11 +++++++++++ games-emulation/sdlmame/sdlmame-0.174-r2.ebuild | 2 ++ 3 files changed, 23 insertions(+) create mode 100644 games-emulation/sdlmame/files/sdlmame-0.174-string.patch create mode 100644 games-emulation/sdlmame/files/sdlmame-0.174-tostring.patch diff --git a/games-emulation/sdlmame/files/sdlmame-0.174-string.patch b/games-emulation/sdlmame/files/sdlmame-0.174-string.patch new file mode 100644 index 00000000..85077265 --- /dev/null +++ b/games-emulation/sdlmame/files/sdlmame-0.174-string.patch @@ -0,0 +1,10 @@ +--- 1/src/osd/modules/render/bgfx/effect.h ++++ 1/src/osd/modules/render/bgfx/effect.h +@@ -15,6 +15,7 @@ + + #include + #include ++#include + + class bgfx_uniform; + diff --git a/games-emulation/sdlmame/files/sdlmame-0.174-tostring.patch b/games-emulation/sdlmame/files/sdlmame-0.174-tostring.patch new file mode 100644 index 00000000..431856ac --- /dev/null +++ b/games-emulation/sdlmame/files/sdlmame-0.174-tostring.patch @@ -0,0 +1,11 @@ +--- 1/scripts/build/msgfmt.py ++++ 1/scripts/build/msgfmt.py +@@ -112,7 +112,7 @@ + 7*4, # start of key index + 7*4+len(keys)*8, # start of value index + 0, 0) # size and offset of hash table +- output += array.array("i", offsets).tostring() ++ output += array.array("i", offsets).tobytes() + output += ids + output += strs + return output diff --git a/games-emulation/sdlmame/sdlmame-0.174-r2.ebuild b/games-emulation/sdlmame/sdlmame-0.174-r2.ebuild index c06ca402..8a3809d1 100644 --- a/games-emulation/sdlmame/sdlmame-0.174-r2.ebuild +++ b/games-emulation/sdlmame/sdlmame-0.174-r2.ebuild @@ -77,6 +77,8 @@ src_prepare() { eapply \ "${FILESDIR}"/${P}-qt.patch \ "${FILESDIR}"/${P}-cxx14.patch \ + "${FILESDIR}"/${P}-string.patch \ + "${FILESDIR}"/${P}-tostring.patch \ "${FILESDIR}"/${P}-sdlSetWindow.patch # Disable using bundled libraries enable_feature USE_SYSTEM_LIB_EXPAT -- cgit v1.2.3-18-g5258