From f2aae8c4fe208621d32512aa861536508d822828 Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Tue, 2 Nov 2010 14:48:59 +0000 Subject: Fix overflow. Bug #339122 (Portage version: 2.1.9.24/cvs/Linux i686) --- games-emulation/visualboyadvance/ChangeLog | 9 +++++++-- .../files/visualboyadvance-1.7.2-ovflfix.patch | 11 +++++++++++ .../visualboyadvance/visualboyadvance-1.7.2-r2.ebuild | 16 +++++++--------- 3 files changed, 25 insertions(+), 11 deletions(-) create mode 100644 games-emulation/visualboyadvance/files/visualboyadvance-1.7.2-ovflfix.patch (limited to 'games-emulation/visualboyadvance') diff --git a/games-emulation/visualboyadvance/ChangeLog b/games-emulation/visualboyadvance/ChangeLog index a5c6814defce..002fe3287020 100644 --- a/games-emulation/visualboyadvance/ChangeLog +++ b/games-emulation/visualboyadvance/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for games-emulation/visualboyadvance -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-emulation/visualboyadvance/ChangeLog,v 1.35 2009/06/13 15:50:14 nyhm Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/visualboyadvance/ChangeLog,v 1.36 2010/11/02 14:48:59 tupone Exp $ + + 02 Nov 2010; Tupone Alfredo + visualboyadvance-1.7.2-r2.ebuild, + +files/visualboyadvance-1.7.2-ovflfix.patch: + Fix overflow. Bug #339122 by flameeyes@gentoo.org 13 Jun 2009; Tristan Heaven visualboyadvance-1.7.2-r2.ebuild, diff --git a/games-emulation/visualboyadvance/files/visualboyadvance-1.7.2-ovflfix.patch b/games-emulation/visualboyadvance/files/visualboyadvance-1.7.2-ovflfix.patch new file mode 100644 index 000000000000..e3a7d7bb5db5 --- /dev/null +++ b/games-emulation/visualboyadvance/files/visualboyadvance-1.7.2-ovflfix.patch @@ -0,0 +1,11 @@ +--- src/sdl/debugger.cpp.old 2010-11-02 15:37:53.000000000 +0100 ++++ src/sdl/debugger.cpp 2010-11-02 15:38:13.000000000 +0100 +@@ -1389,7 +1389,7 @@ + { + char buffer[10]; + printf("Are you sure you want to quit (y/n)? "); +- fgets(buffer, 1024, stdin); ++ fgets(buffer, sizeof(buffer), stdin); + + if(buffer[0] == 'y' || buffer[0] == 'Y') { + debugger = false; diff --git a/games-emulation/visualboyadvance/visualboyadvance-1.7.2-r2.ebuild b/games-emulation/visualboyadvance/visualboyadvance-1.7.2-r2.ebuild index 732f70447bcd..f2df77e5a937 100644 --- a/games-emulation/visualboyadvance/visualboyadvance-1.7.2-r2.ebuild +++ b/games-emulation/visualboyadvance/visualboyadvance-1.7.2-r2.ebuild @@ -1,6 +1,7 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-emulation/visualboyadvance/visualboyadvance-1.7.2-r2.ebuild,v 1.3 2009/06/13 15:50:14 nyhm Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-emulation/visualboyadvance/visualboyadvance-1.7.2-r2.ebuild,v 1.4 2010/11/02 14:48:59 tupone Exp $ +EAPI=2 inherit eutils flag-o-matic games @@ -29,10 +30,7 @@ DEPEND="${RDEPEND} S=${WORKDIR}/VisualBoyAdvance-${PV} -src_unpack() { - unpack ${A} - cd "${S}" - +src_prepare() { sed -i \ -e 's:$(localedir):/usr/share/locale:' \ -e 's:$(datadir)/locale:/usr/share/locale:' \ @@ -51,10 +49,11 @@ src_unpack() { "${FILESDIR}"/${PV}-gcc41.patch \ "${WORKDIR}"/${P}-deprecatedsigc++.patch \ "${FILESDIR}"/${P}-uninit.patch \ - "${FILESDIR}"/${P}-glibc2.10.patch + "${FILESDIR}"/${P}-glibc2.10.patch \ + "${FILESDIR}"/${P}-ovflfix.patch } -src_compile() { +src_configure() { # -O3 causes GCC to behave badly and hog memory, bug #64670. replace-flags -O3 -O2 @@ -65,7 +64,6 @@ src_compile() { $(use_enable gtk gtk 2.4) \ $(use_enable nls) \ || die - emake || die "emake failed" } src_install() { -- cgit v1.2.3-65-gdbad