summaryrefslogtreecommitdiff
path: root/games/snes9x/snes9x.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2016-09-28 04:26:59 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-10-01 07:29:16 +0700
commit5bae02f310b28e7a2516a8d476a526bbef197438 (patch)
tree3127559e8ae2711beaf084243477dd2e3cc99be1 /games/snes9x/snes9x.SlackBuild
parent40260794b97b31ac67ac5eaea7d9922f1ae053aa (diff)
downloadslackbuilds-5bae02f310b28e7a2516a8d476a526bbef197438.tar.gz
games/snes9x: Fix crash in "open recent" menu.
Diffstat (limited to 'games/snes9x/snes9x.SlackBuild')
-rw-r--r--games/snes9x/snes9x.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/games/snes9x/snes9x.SlackBuild b/games/snes9x/snes9x.SlackBuild
index 48fafca1a3..1f54a10180 100644
--- a/games/snes9x/snes9x.SlackBuild
+++ b/games/snes9x/snes9x.SlackBuild
@@ -8,7 +8,7 @@
PRGNAM=snes9x
VERSION=${VERSION:-1.53}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -53,6 +53,15 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# Patch avoids crashes caused by the 'open recent' UI menu. Not been
+# able to reproduce the crash myself, but all the patch does is check
+# a pointer to make sure it's not null, before using it (can't see how
+# that could hurt anything).
+# Patch came from here:
+# https://git.archlinux.org/svntogit/community.git/plain/snes9x/repos/community-i686/snes9x-fix-crash.patch
+
+patch -p1 < $CWD/snes9x-fix-crash.patch
+
cd gtk
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \