commit:     0b360332de4c8f4ab442180cb9312262733b4cad
Author:     Peter Levine <plevine457 <AT> gmail <DOT> com>
AuthorDate: Sun Oct 15 03:52:48 2017 +0000
Commit:     Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sun Oct 22 21:47:18 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b360332

games-roguelike/powder: Fix building with GCC-6

Closes: https://bugs.gentoo.org/598928
Closes: https://github.com/gentoo/gentoo/pull/5949
Package-Manager: Portage-2.3.10, Repoman-2.3.3

 games-roguelike/powder/files/powder-117-gcc6.patch | 20 ++++++++++++++++++++
 games-roguelike/powder/powder-117-r1.ebuild        |  4 +++-
 2 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/games-roguelike/powder/files/powder-117-gcc6.patch 
b/games-roguelike/powder/files/powder-117-gcc6.patch
new file mode 100644
index 00000000000..3a9b7f2af54
--- /dev/null
+++ b/games-roguelike/powder/files/powder-117-gcc6.patch
@@ -0,0 +1,20 @@
+Bug: https://bugs.gentoo.org/598928
+
+--- a/source.txt
++++ b/source.txt
+@@ -13400,13 +13400,13 @@
+ 
+ BRANCH MAIN
+ {
+-    symbol    '\\207'
++    symbol    static_cast<u8>('\\207')
+     welcome   "%U <return> to the main dungeon."
+ }
+ 
+ BRANCH TRIDUDE
+ {
+-    symbol    '\\211'
++    symbol    static_cast<u8>('\\211')
+     welcome   "%U <enter> a cave made of metal."
+ }
+ 

diff --git a/games-roguelike/powder/powder-117-r1.ebuild 
b/games-roguelike/powder/powder-117-r1.ebuild
index b0199fe9fa0..e7c6acc4005 100644
--- a/games-roguelike/powder/powder-117-r1.ebuild
+++ b/games-roguelike/powder/powder-117-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -20,6 +20,8 @@ RDEPEND=${DEPEND}
 
 S=${WORKDIR}/${MY_P}
 
+PATCHES=( "${FILESDIR}"/${PN}-117-gcc6.patch )
+
 src_compile() {
        append-cxxflags -DCHANGE_WORK_DIRECTORY
        emake -C port/linux premake

Reply via email to