commit:     313fde3785bcf2d23478b9780535cf0ecc81a8db
Author:     Peter Levine <plevine457 <AT> gmail <DOT> com>
AuthorDate: Sat Mar 18 01:10:16 2017 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Mar 25 12:47:41 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=313fde37

games-arcade/wop: Fix GCC-6 build

Bug: https://bugs.gentoo.org/show_bug.cgi?id=612526
Closes: https://github.com/gentoo/gentoo/pull/4222

 games-arcade/wop/files/wop-0.4.3-gcc6.patch | 18 ++++++++++++++++++
 games-arcade/wop/wop-0.4.3-r1.ebuild        |  3 ++-
 2 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/games-arcade/wop/files/wop-0.4.3-gcc6.patch 
b/games-arcade/wop/files/wop-0.4.3-gcc6.patch
new file mode 100644
index 00000000000..add9e06c83a
--- /dev/null
+++ b/games-arcade/wop/files/wop-0.4.3-gcc6.patch
@@ -0,0 +1,18 @@
+diff -Naur wop-0.4.3.old/src/global.cpp wop-0.4.3/src/global.cpp
+--- wop-0.4.3.old/src/global.cpp       2017-03-16 18:48:49.114967592 -0400
++++ wop-0.4.3/src/global.cpp   2017-03-16 18:48:55.592903512 -0400
+@@ -44,10 +44,10 @@
+ #define GREEN(s)                 s
+ #define RED(s)                   s
+ #else
+-#define BLACK(s)                 "\033[0;1m"s"\033[0m"
+-#define BLINKINK_BLACK_ON_RED(s) "\033[05;1;41m"s"\033[0m"
+-#define GREEN(s)                 "\033[32m"s"\033[0m"
+-#define RED(s)                   "\033[31m"s"\033[0m"
++#define BLACK(s)                 "\033[0;1m" s "\033[0m"
++#define BLINKINK_BLACK_ON_RED(s) "\033[05;1;41m" s "\033[0m"
++#define GREEN(s)                 "\033[32m" s "\033[0m"
++#define RED(s)                   "\033[31m" s "\033[0m"
+ #endif
+ 
+ /**********************************************************/

diff --git a/games-arcade/wop/wop-0.4.3-r1.ebuild 
b/games-arcade/wop/wop-0.4.3-r1.ebuild
index 48669c9e652..9f6811a6fbe 100644
--- a/games-arcade/wop/wop-0.4.3-r1.ebuild
+++ b/games-arcade/wop/wop-0.4.3-r1.ebuild
@@ -37,7 +37,8 @@ src_prepare() {
                woprc \
                || die "sed failed"
        epatch "${FILESDIR}"/${P}-Makefile.patch \
-               "${FILESDIR}"/${P}-gcc43.patch
+               "${FILESDIR}"/${P}-gcc43.patch \
+               "${FILESDIR}"/${P}-gcc6.patch
 }
 
 src_compile() {

Reply via email to