pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/emulators/mame mame: add patch to fix running mame on ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/43a146acd957
branches: trunk
changeset: 445706:43a146acd957
user: wiz <wiz%pkgsrc.org@localhost>
date: Wed Jan 27 17:06:06 2021 +0000
description:
mame: add patch to fix running mame on NetBSD.
Bump PKGREVISION.
diffstat:
emulators/mame/Makefile | 3 +-
emulators/mame/distinfo | 3 +-
emulators/mame/patches/patch-src_osd_modules_lib_osdlib__unix.cpp | 19 ++++++++++
3 files changed, 23 insertions(+), 2 deletions(-)
diffs (49 lines):
diff -r 6f25c7d15d20 -r 43a146acd957 emulators/mame/Makefile
--- a/emulators/mame/Makefile Wed Jan 27 16:59:23 2021 +0000
+++ b/emulators/mame/Makefile Wed Jan 27 17:06:06 2021 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.128 2021/01/26 22:10:05 wiz Exp $
+# $NetBSD: Makefile,v 1.129 2021/01/27 17:06:06 wiz Exp $
DISTNAME= mame-0.228
+PKGREVISION= 1
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_GITHUB:=mamedev/}
GITHUB_TAG= ${DISTNAME:S/-//S/.//}
diff -r 6f25c7d15d20 -r 43a146acd957 emulators/mame/distinfo
--- a/emulators/mame/distinfo Wed Jan 27 16:59:23 2021 +0000
+++ b/emulators/mame/distinfo Wed Jan 27 17:06:06 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.101 2021/01/26 22:10:05 wiz Exp $
+$NetBSD: distinfo,v 1.102 2021/01/27 17:06:06 wiz Exp $
SHA1 (mame-0.228.tar.gz) = 96d46a78152d15a5e444a48c5f6531ef2ef70241
RMD160 (mame-0.228.tar.gz) = 2564296e3d99ab8fe3129e3fa931f80f311e7637
@@ -10,3 +10,4 @@
SHA1 (patch-3rdparty_genie_build_gmake.darwin_genie.make) = bb2e8c06d4b5f5869fb48e06390d5ca94a190056
SHA1 (patch-makefile) = 343fac4d165438a26e2e8077216db1c6c46a5d1e
SHA1 (patch-scripts_genie.lua) = 6c72b76c9a9ea952a787bf3994680f8711c8b64a
+SHA1 (patch-src_osd_modules_lib_osdlib__unix.cpp) = abc52d25f3d2fa65586c25154bb286ac733ce507
diff -r 6f25c7d15d20 -r 43a146acd957 emulators/mame/patches/patch-src_osd_modules_lib_osdlib__unix.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/mame/patches/patch-src_osd_modules_lib_osdlib__unix.cpp Wed Jan 27 17:06:06 2021 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-src_osd_modules_lib_osdlib__unix.cpp,v 1.1 2021/01/27 17:06:06 wiz Exp $
+
+Prepare mmap'd page for later mprotect().
+https://github.com/mamedev/mame/issues/7712
+
+--- src/osd/modules/lib/osdlib_unix.cpp.orig 2021-01-26 04:43:24.000000000 +0000
++++ src/osd/modules/lib/osdlib_unix.cpp
+@@ -189,7 +189,11 @@ void *virtual_memory_allocation::do_allo
+ // TODO: portable applications are supposed to use -1 for anonymous mappings - detect whatever requires 0 specifically
+ int const fd(0);
+ #endif
++#ifdef __NetBSD__
++ void *const result(mmap(nullptr, s, PROT_MPROTECT(PROT_EXEC|PROT_WRITE|PROT_READ), MAP_ANON | MAP_SHARED, fd, 0));
++#else
+ void *const result(mmap(nullptr, s, PROT_NONE, MAP_ANON | MAP_SHARED, fd, 0));
++#endif
+ if (result == (void *)-1)
+ return nullptr;
+ size = s;
Home |
Main Index |
Thread Index |
Old Index