From: Peter Levine Date: Sun, 15 Oct 2017 03:52:48 +0000 (-0400) Subject: games-roguelike/powder: Fix building with GCC-6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0b360332de4c8f4ab442180cb9312262733b4cad;p=gentoo.git 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 --- 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 000000000000..3a9b7f2af541 --- /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('\\207') + welcome "%U to the main dungeon." + } + + BRANCH TRIDUDE + { +- symbol '\\211' ++ symbol static_cast('\\211') + welcome "%U a cave made of metal." + } + diff --git a/games-roguelike/powder/powder-117-r1.ebuild b/games-roguelike/powder/powder-117-r1.ebuild index b0199fe9fa0d..e7c6acc40057 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