diff options
author | nat <nat> | 2014-03-26 01:42:48 +0000 |
---|---|---|
committer | nat <nat> | 2014-03-26 01:42:48 +0000 |
commit | 1f64d75f7d30c25fc17eec56f9026f125d1ebddb (patch) | |
tree | ab96e07d820d875089d0d6c6082a9499c1e6636f /emulators | |
parent | ce3cede936a63578b5f76a9f07441baab4429f9b (diff) | |
download | pkgsrc-1f64d75f7d30c25fc17eec56f9026f125d1ebddb.tar.gz |
Fixed crash on startup.
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/mame/Makefile | 3 | ||||
-rw-r--r-- | emulators/mame/Makefile.common | 4 | ||||
-rw-r--r-- | emulators/mame/distinfo | 3 | ||||
-rw-r--r-- | emulators/mame/patches/patch-src_emu_emualloc.c | 18 |
4 files changed, 24 insertions, 4 deletions
diff --git a/emulators/mame/Makefile b/emulators/mame/Makefile index 6d362712f33..af40b40be7c 100644 --- a/emulators/mame/Makefile +++ b/emulators/mame/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.27 2014/02/06 10:40:19 wiz Exp $ +# $NetBSD: Makefile,v 1.28 2014/03/26 01:42:48 nat Exp $ DISTNAME= mame0152s PKGNAME= ${DISTNAME:S/0/-0./:S/s$//} +PKGREVISION= 1 MASTER_SITES= http://mamedev.org/downloader.php?file=releases/ COMMENT= Multiple Arcade Machine Emulator diff --git a/emulators/mame/Makefile.common b/emulators/mame/Makefile.common index 6f289852659..1999232873f 100644 --- a/emulators/mame/Makefile.common +++ b/emulators/mame/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.13 2014/01/25 10:30:07 wiz Exp $ +# $NetBSD: Makefile.common,v 1.14 2014/03/26 01:42:48 nat Exp $ # # used by emulators/mame/Makefile # used by emulators/mess/Makefile @@ -29,7 +29,7 @@ MAKE_FILE= makefile # 0.141 has too many conversion warnings MAKE_ENV= NOWERROR=1 # we don't want to pull in qt4 -MAKE_ENV= NO_USE_QTDEBUG=1 +MAKE_ENV+= NO_USE_QTDEBUG=1 .include "../../mk/compiler.mk" .if !empty(PKGSRC_COMPILER:Mclang) diff --git a/emulators/mame/distinfo b/emulators/mame/distinfo index 5aef2ce4550..0966f84fcf4 100644 --- a/emulators/mame/distinfo +++ b/emulators/mame/distinfo @@ -1,8 +1,9 @@ -$NetBSD: distinfo,v 1.18 2014/02/06 10:40:19 wiz Exp $ +$NetBSD: distinfo,v 1.19 2014/03/26 01:42:48 nat Exp $ SHA1 (mame0152s.zip) = 2e11509b39c13dc1336a48a102813589b0793788 RMD160 (mame0152s.zip) = d8f4accbd639e085c6165374d7b7ebd427d3c4d7 Size (mame0152s.zip) = 36247883 bytes +SHA1 (patch-src_emu_emualloc.c) = 6df67d1d1aaf982444db3db65c066bc83644ae9b SHA1 (patch-src_emu_emualloc.h) = 22cdfbc002cda8053125ef8cedf3bcceea04deaf SHA1 (patch-src_emu_netlist_nl__base.h) = 9ee165f601da849a339699f560c371bc58dd0d83 SHA1 (patch-src_emu_netlist_nl__lists.h) = d31c9cf715f66520e4a1a09584f1c52bbea74fef diff --git a/emulators/mame/patches/patch-src_emu_emualloc.c b/emulators/mame/patches/patch-src_emu_emualloc.c new file mode 100644 index 00000000000..408829725c5 --- /dev/null +++ b/emulators/mame/patches/patch-src_emu_emualloc.c @@ -0,0 +1,18 @@ +$NetBSD: patch-src_emu_emualloc.c,v 1.1 2014/03/26 01:42:48 nat Exp $ + +This resolves a crash on startup. + +--- src/emu/emualloc.c.orig 2013-10-15 22:14:50.000000000 +0000 ++++ src/emu/emualloc.c +@@ -266,6 +266,11 @@ void resource_pool::add(resource_pool_it + memory_entry *entry = memory_entry::find(item.m_ptr); + if (entry == NULL) + entry = memory_entry::find(reinterpret_cast<UINT8 *>(item.m_ptr) - sizeof(size_t)); ++ if (entry == NULL) { ++ osd_lock_release(m_listlock); ++ return; ++ } ++ + assert(entry != NULL); + item.m_id = entry->m_id; + if (LOG_ALLOCS) |