From: Peter Levine Date: Sat, 18 Mar 2017 01:10:16 +0000 (-0400) Subject: games-arcade/wop: Fix GCC-6 build X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=313fde3785bcf2d23478b9780535cf0ecc81a8db;p=gentoo.git 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 --- 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 000000000000..add9e06c83a5 --- /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 48669c9e6520..9f6811a6fbec 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() {