summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2003-09-27 08:06:13 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2003-09-27 08:06:13 +0000
commit91a9392504bf9d9216beebbd9146349dc943d035 (patch)
treebf924a88f0f233b19db45358d3b7c142e39a5358 /games-emulation/mupen64/files
parentMarked as stable (diff)
downloadhistorical-91a9392504bf9d9216beebbd9146349dc943d035.tar.gz
historical-91a9392504bf9d9216beebbd9146349dc943d035.tar.bz2
historical-91a9392504bf9d9216beebbd9146349dc943d035.zip
disable the riceplugin for anything < gcc 3.3 (bug 29206); other fixes
Diffstat (limited to 'games-emulation/mupen64/files')
-rw-r--r--games-emulation/mupen64/files/mupen649
1 files changed, 7 insertions, 2 deletions
diff --git a/games-emulation/mupen64/files/mupen64 b/games-emulation/mupen64/files/mupen64
index 14e7969ab83a..91f25bf47a02 100644
--- a/games-emulation/mupen64/files/mupen64
+++ b/games-emulation/mupen64/files/mupen64
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
if [ ! -d ~/.mupen64/save ] ; then
mkdir -p ~/.mupen64/save
@@ -6,7 +6,12 @@ if [ ! -d ~/.mupen64/save ] ; then
ln -s GENTOO_DIR/plugins plugins
ln -s GENTOO_DIR/mupen64 mupen64
ln -s GENTOO_DIR/mupen64_nogui mupen64_nogui
+ cp GENTOO_DIR/mupen64.ini .
fi
cd ~/.mupen64
-exec GENTOO_DIR/$(basename $0) "$@"
+# We must execute ./blah not /foo/bar/blah because mupen64 tries to
+# write to files in the directory from which the application is run.
+# It segfaults if it can't write to the directory. Upstream has been
+# notified of the problem.
+exec ./$(basename $0) "$@"