summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2010-11-02 14:48:59 +0000
committerAlfredo Tupone <tupone@gentoo.org>2010-11-02 14:48:59 +0000
commitf2aae8c4fe208621d32512aa861536508d822828 (patch)
treedf0794af9b1db1659a05934bbd98bd92a61895bc /games-emulation/visualboyadvance
parentx86 stable per bug 297894 (diff)
downloadgentoo-2-f2aae8c4fe208621d32512aa861536508d822828.tar.gz
gentoo-2-f2aae8c4fe208621d32512aa861536508d822828.tar.bz2
gentoo-2-f2aae8c4fe208621d32512aa861536508d822828.zip
Fix overflow. Bug #339122
(Portage version: 2.1.9.24/cvs/Linux i686)
Diffstat (limited to 'games-emulation/visualboyadvance')
-rw-r--r--games-emulation/visualboyadvance/ChangeLog9
-rw-r--r--games-emulation/visualboyadvance/files/visualboyadvance-1.7.2-ovflfix.patch11
-rw-r--r--games-emulation/visualboyadvance/visualboyadvance-1.7.2-r2.ebuild16
3 files changed, 25 insertions, 11 deletions
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 <tupone@gentoo.org>
+ 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 <nyhm@gentoo.org>
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() {