summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2009-03-14 08:08:30 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2009-03-14 08:08:30 +0000
commitb3df561cae4b5d0eb2c7f47c845cdbc094f397fa (patch)
treef21dcc4fc85c27853841c145ae81216c0ef92d5f /games-emulation
parentupdated music version pointed out by Tim O'Kelly in bug #261544 (diff)
downloadgentoo-2-b3df561cae4b5d0eb2c7f47c845cdbc094f397fa.tar.gz
gentoo-2-b3df561cae4b5d0eb2c7f47c845cdbc094f397fa.tar.bz2
gentoo-2-b3df561cae4b5d0eb2c7f47c845cdbc094f397fa.zip
fix open call (patch from Magnus Granberg via bug #261676)
(Portage version: 2.1.6.7/cvs/Linux i686)
Diffstat (limited to 'games-emulation')
-rw-r--r--games-emulation/tuxnes/ChangeLog8
-rw-r--r--games-emulation/tuxnes/files/tuxnes-0.75-gcc43.patch11
-rw-r--r--games-emulation/tuxnes/tuxnes-0.75-r1.ebuild16
3 files changed, 24 insertions, 11 deletions
diff --git a/games-emulation/tuxnes/ChangeLog b/games-emulation/tuxnes/ChangeLog
index 782d0cbfa062..5807acd0568b 100644
--- a/games-emulation/tuxnes/ChangeLog
+++ b/games-emulation/tuxnes/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-emulation/tuxnes
-# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-emulation/tuxnes/ChangeLog,v 1.9 2007/07/02 16:11:11 nyhm Exp $
+# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/tuxnes/ChangeLog,v 1.10 2009/03/14 08:08:29 mr_bones_ Exp $
+
+ 14 Mar 2009; Michael Sterrett <mr_bones_@gentoo.org>
+ +files/tuxnes-0.75-gcc43.patch, tuxnes-0.75-r1.ebuild:
+ fix open call (patch from Magnus Granberg via bug #261676)
*tuxnes-0.75-r1 (02 Jul 2007)
diff --git a/games-emulation/tuxnes/files/tuxnes-0.75-gcc43.patch b/games-emulation/tuxnes/files/tuxnes-0.75-gcc43.patch
new file mode 100644
index 000000000000..ba035ef57b78
--- /dev/null
+++ b/games-emulation/tuxnes/files/tuxnes-0.75-gcc43.patch
@@ -0,0 +1,11 @@
+--- emu.c 2009-03-11 23:10:09.000000000 +0000
++++ emu.c 2009-03-11 23:17:13.000000000 +0000
+@@ -1271,7 +1271,7 @@
+ gamegenie = 0;
+
+ /* check for the default output device */
+- if ((audiofd = open (DSP, O_CREAT | O_WRONLY | O_APPEND)) < 0)
++ if ((audiofd = open (DSP, O_CREAT | O_WRONLY | O_APPEND, 0666)) < 0)
+ sound_config.audiofile = NULL;
+ else {
+ sound_config.audiofile = DSP;
diff --git a/games-emulation/tuxnes/tuxnes-0.75-r1.ebuild b/games-emulation/tuxnes/tuxnes-0.75-r1.ebuild
index 5ebb6c950c02..46292e683788 100644
--- a/games-emulation/tuxnes/tuxnes-0.75-r1.ebuild
+++ b/games-emulation/tuxnes/tuxnes-0.75-r1.ebuild
@@ -1,7 +1,8 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-emulation/tuxnes/tuxnes-0.75-r1.ebuild,v 1.1 2007/07/02 16:11:11 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/tuxnes/tuxnes-0.75-r1.ebuild,v 1.2 2009/03/14 08:08:29 mr_bones_ Exp $
+EAPI=2
inherit autotools eutils games
DESCRIPTION="emulator for the 8-bit Nintendo Entertainment System"
@@ -25,24 +26,21 @@ DEPEND="${RDEPEND}
x11-proto/xextproto
x11-proto/xproto )"
-src_unpack() {
- unpack ${A}
- cd "${S}"
+src_prepare() {
epatch \
"${FILESDIR}"/${P}-configure.in.patch \
"${FILESDIR}"/${P}-gcc34.patch \
+ "${FILESDIR}"/${P}-gcc43.patch \
"${FILESDIR}"/${P}-include.patch \
"${FILESDIR}"/${P}-exec-stack.patch
eautoreconf
}
-src_compile() {
+src_configure() {
egamesconf \
--without-w \
$(use_with ggi) \
- $(use_with X x) \
- || die
- emake || die "emake failed"
+ $(use_with X x)
}
src_install() {