Fairly simple update to the latest version of mednafen (on SourceForge
at least, mednafen forums have a link to 0.9.36.1).

I did the hard work of testing this upgrade for the following systems:
Game Gear, Game Boy, Game Boy, Game Boy Color, Game Boy Advance,
Genesis, Lynx, NES, Neo-Geo Portable, PC Engine (CD and HuCard),
Master System, SNES, and Wonderswan.

One thing I noticed is that when I have a joystick plugged in, mednafen
runs fine but does not exit, and needs a kill -9.  However, it appears
this also happens with the current ports version, so it doesn't seem
related to the upgrade.  It's a use-after-free somewhere, since it works
fine with MALLOC_OPTIONS=-j.  Running in gdb, I get this backtrace when
exiting:

Program received signal SIGBUS, Bus error.
0x0000039e31d1733a in SDL_SYS_JoystickClose () from /usr/local/lib/libSDL.so.8.0
(gdb) bt
#0  0x0000039e31d1733a in SDL_SYS_JoystickClose () from 
/usr/local/lib/libSDL.so.8.0
#1  0x0000039e31cfc748 in SDL_JoystickClose () from /usr/local/lib/libSDL.so.8.0
#2  0x0000039c3067cf70 in trio_to_lower () from /usr/local/bin/mednafen
#3  0x0000039c3067e6e1 in trio_to_lower () from /usr/local/bin/mednafen
#4  0x0000039c3067b5e7 in trio_to_lower () from /usr/local/bin/mednafen
#5  0x0000039c30612253 in trio_to_lower () from /usr/local/bin/mednafen
#6  0x0000039c3059f0e1 in ?? () from /usr/local/bin/mednafen
#7  0x0000000000000000 in ?? ()

Tested on amd64.  I'll try to compile test on i386 tomorrow, but I
doubt there will be problems there.

OKs?

Thanks,
Jeremy

Index: Makefile
===================================================================
RCS file: /cvs/ports/emulators/mednafen/Makefile,v
retrieving revision 1.10
diff -u -p -r1.10 Makefile
--- Makefile    25 Nov 2013 14:16:22 -0000      1.10
+++ Makefile    24 Jun 2014 22:51:04 -0000
@@ -2,10 +2,8 @@
 
 COMMENT =      emulates numerous game consoles
 
-V =            0.9.28
-DISTNAME =     mednafen-${V}-wip
-PKGNAME =      mednafen-${V}
-REVISION =     0
+V =            0.9.35.1
+DISTNAME =     mednafen-${V}
 
 CATEGORIES =   emulators games
 HOMEPAGE =     http://mednafen.sourceforge.net/
Index: distinfo
===================================================================
RCS file: /cvs/ports/emulators/mednafen/distinfo,v
retrieving revision 1.4
diff -u -p -r1.4 distinfo
--- distinfo    23 Jan 2013 21:36:06 -0000      1.4
+++ distinfo    24 Jun 2014 22:50:55 -0000
@@ -1,2 +1,2 @@
-SHA256 (mednafen-0.9.28-wip.tar.bz2) = 
QVzgBVxDVg+45bIlEIz+svsjY4QcOcw36qHF5gVnW94=
-SIZE (mednafen-0.9.28-wip.tar.bz2) = 3901828
+SHA256 (mednafen-0.9.35.1.tar.bz2) = 
N+PPM68Io1ymlX4W4edDVglnJ+/ddYMixuTuV5sBCok=
+SIZE (mednafen-0.9.35.1.tar.bz2) = 4264648
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/emulators/mednafen/pkg/PLIST,v
retrieving revision 1.2
diff -u -p -r1.2 PLIST
--- pkg/PLIST   27 Sep 2012 04:13:17 -0000      1.2
+++ pkg/PLIST   24 Jun 2014 22:59:04 -0000
@@ -6,6 +6,7 @@ share/doc/mednafen/Makefile.in
 share/doc/mednafen/README.jpeg4a
 share/doc/mednafen/bwolf0.png
 share/doc/mednafen/bwolf1.png
+share/doc/mednafen/cheat.html
 share/doc/mednafen/cheats.txt
 share/doc/mednafen/debugger.html
 share/doc/mednafen/docgen.inc

Reply via email to