diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2012-09-24 08:45:18 +0000 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2012-09-24 08:45:18 +0000 |
commit | 77345dfe767e4584cdd048df4077b327465e01f3 (patch) | |
tree | c70bf28b0941d7b76dfead88e70d7b44698fdc25 /games-board/freedoko | |
parent | Move most test to their own phase. Thanks to debian/buntu guys :-) (diff) | |
download | gentoo-2-77345dfe767e4584cdd048df4077b327465e01f3.tar.gz gentoo-2-77345dfe767e4584cdd048df4077b327465e01f3.tar.bz2 gentoo-2-77345dfe767e4584cdd048df4077b327465e01f3.zip |
Fix build with gcc-4.7 Bug #428574
(Portage version: 2.1.11.20/cvs/Linux i686)
Diffstat (limited to 'games-board/freedoko')
-rw-r--r-- | games-board/freedoko/ChangeLog | 6 | ||||
-rw-r--r-- | games-board/freedoko/files/freedoko-0.7.10-gcc47.patch | 10 | ||||
-rw-r--r-- | games-board/freedoko/freedoko-0.7.10.ebuild | 7 |
3 files changed, 20 insertions, 3 deletions
diff --git a/games-board/freedoko/ChangeLog b/games-board/freedoko/ChangeLog index 8126d9055079..0b67cf162067 100644 --- a/games-board/freedoko/ChangeLog +++ b/games-board/freedoko/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for games-board/freedoko # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-board/freedoko/ChangeLog,v 1.18 2012/05/04 04:30:10 jdhore Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-board/freedoko/ChangeLog,v 1.19 2012/09/24 08:45:18 tupone Exp $ + + 24 Sep 2012; Tupone Alfredo <tupone@gentoo.org> freedoko-0.7.10.ebuild, + +files/freedoko-0.7.10-gcc47.patch: + Fix build with gcc-4.7 Bug #428574 by Diego 04 May 2012; Jeff Horelick <jdhore@gentoo.org> freedoko-0.7.8.ebuild, freedoko-0.7.10.ebuild: diff --git a/games-board/freedoko/files/freedoko-0.7.10-gcc47.patch b/games-board/freedoko/files/freedoko-0.7.10-gcc47.patch new file mode 100644 index 000000000000..5fc4292f81cb --- /dev/null +++ b/games-board/freedoko/files/freedoko-0.7.10-gcc47.patch @@ -0,0 +1,10 @@ +--- src/freedoko.cpp.old 2012-09-24 09:49:20.770335560 +0200 ++++ src/freedoko.cpp 2012-09-24 09:49:59.696057735 +0200 +@@ -37,6 +37,7 @@ + + #include "constants.h" + #include <time.h> ++#include <unistd.h> + #ifdef WINDOWS + // for 'mkdir' + #include <io.h> diff --git a/games-board/freedoko/freedoko-0.7.10.ebuild b/games-board/freedoko/freedoko-0.7.10.ebuild index 801e5d22d571..88de5544018d 100644 --- a/games-board/freedoko/freedoko-0.7.10.ebuild +++ b/games-board/freedoko/freedoko-0.7.10.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-board/freedoko/freedoko-0.7.10.ebuild,v 1.5 2012/05/04 04:30:10 jdhore Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-board/freedoko/freedoko-0.7.10.ebuild,v 1.6 2012/09/24 08:45:18 tupone Exp $ EAPI=2 inherit eutils games @@ -60,7 +60,10 @@ src_unpack() { fi } -PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) +PATCHES=( + "${FILESDIR}"/${P}-gentoo.patch + "${FILESDIR}"/${P}-gcc47.patch +) src_compile() { export CPPFLAGS="-DPUBLIC_DATA_DIRECTORY_VALUE='\"${GAMES_DATADIR}/${PN}\"'" |