diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2011-06-30 10:25:56 +0000 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2011-06-30 10:25:56 +0000 |
commit | 09b8bfb6da2cb1680e4df5f931c21ba7bffec7a7 (patch) | |
tree | d6ca81e792cec03525292096ab7326b5a159b633 /games-emulation | |
parent | Add support for zabbix (diff) | |
download | gentoo-2-09b8bfb6da2cb1680e4df5f931c21ba7bffec7a7.tar.gz gentoo-2-09b8bfb6da2cb1680e4df5f931c21ba7bffec7a7.tar.bz2 gentoo-2-09b8bfb6da2cb1680e4df5f931c21ba7bffec7a7.zip |
Fix overflow. Bug #349464
(Portage version: 2.1.10.3/cvs/Linux x86_64)
Diffstat (limited to 'games-emulation')
-rw-r--r-- | games-emulation/xmess/ChangeLog | 8 | ||||
-rw-r--r-- | games-emulation/xmess/files/xmess-0.106-overflow.patch | 11 | ||||
-rw-r--r-- | games-emulation/xmess/xmess-0.106.ebuild | 11 |
3 files changed, 22 insertions, 8 deletions
diff --git a/games-emulation/xmess/ChangeLog b/games-emulation/xmess/ChangeLog index 2921cfe34314..13f1c2465728 100644 --- a/games-emulation/xmess/ChangeLog +++ b/games-emulation/xmess/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for games-emulation/xmess -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-emulation/xmess/ChangeLog,v 1.64 2009/11/10 21:12:23 ssuominen Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/xmess/ChangeLog,v 1.65 2011/06/30 10:25:56 tupone Exp $ + + 30 Jun 2011; Tupone Alfredo <tupone@gentoo.org> xmess-0.106.ebuild, + +files/xmess-0.106-overflow.patch: + Fix overflow. Bug #349464 by Diego Elio Pettenò 10 Nov 2009; Samuli Suominen <ssuominen@gentoo.org> xmess-0.106.ebuild: Remove USE arts (deprecated). diff --git a/games-emulation/xmess/files/xmess-0.106-overflow.patch b/games-emulation/xmess/files/xmess-0.106-overflow.patch new file mode 100644 index 000000000000..0c4c2ac10606 --- /dev/null +++ b/games-emulation/xmess/files/xmess-0.106-overflow.patch @@ -0,0 +1,11 @@ +--- mess/machine/corvushd.c.old 2011-06-30 11:41:55.987772189 +0200 ++++ mess/machine/corvushd.c 2011-06-30 11:42:15.215986836 +0200 +@@ -243,7 +243,7 @@ + /* */ + struct { + UINT8 status; /* Status code returned by command executed */ +- UINT8 firmware[32]; /* Firmware message */ ++ UINT8 firmware[33]; /* Firmware message */ + UINT8 rom_version; /* ROM Version */ + struct { + UINT8 sectors_per_track; /* Sectors/Track */ diff --git a/games-emulation/xmess/xmess-0.106.ebuild b/games-emulation/xmess/xmess-0.106.ebuild index 3cc08abbf68c..f2a9d21133c7 100644 --- a/games-emulation/xmess/xmess-0.106.ebuild +++ b/games-emulation/xmess/xmess-0.106.ebuild @@ -1,6 +1,7 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-emulation/xmess/xmess-0.106.ebuild,v 1.11 2009/11/10 21:12:23 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-emulation/xmess/xmess-0.106.ebuild,v 1.12 2011/06/30 10:25:56 tupone Exp $ +EAPI=2 inherit flag-o-matic toolchain-funcs eutils games @@ -56,12 +57,9 @@ toggle_feature2() { use $1 && toggle_feature $2 $3 } -src_unpack() { +src_prepare() { local mycpu - unpack ${A} - cd "${S}" - case ${ARCH} in x86) mycpu="i386";; ia64) mycpu="ia64";; @@ -143,6 +141,7 @@ EOF -e 's/doinstallsuid/doinstall/' \ -e '/^QUIET/s:^:#:' src/unix/unix.mak \ || die "sed src/unix/unix.mak failed" + epatch "${FILESDIR}"/${P}-overflow.patch } src_compile() { |