games-simulation/crrcsim: Fix building with GCC-6
authorPeter Levine <plevine457@gmail.com>
Sun, 23 Jul 2017 06:31:56 +0000 (02:31 -0400)
committerMichael Palimaka <kensington@gentoo.org>
Sun, 23 Jul 2017 12:39:59 +0000 (22:39 +1000)
Bug: https://bugs.gentoo.org/show_bug.cgi?id=610560
Package-Manager: Portage-2.3.6, Repoman-2.3.2

games-simulation/crrcsim/crrcsim-0.9.13.ebuild
games-simulation/crrcsim/files/crrcsim-0.9.13-gcc6.patch [new file with mode: 0644]

index d3b2bb8e0140902763db93a2ae3d846e518f39eb..ef5b5ce752df351db042efe21e8fc46146abf110 100644 (file)
@@ -20,7 +20,10 @@ RDEPEND="media-libs/libsdl[X,sound,joystick,opengl,video]
        portaudio? ( media-libs/portaudio )"
 DEPEND="${RDEPEND}"
 
-PATCHES=( "${FILESDIR}"/${P}-buildsystem.patch )
+PATCHES=(
+       "${FILESDIR}"/${P}-buildsystem.patch
+       "${FILESDIR}"/${P}-gcc6.patch
+)
 
 src_prepare() {
        default
diff --git a/games-simulation/crrcsim/files/crrcsim-0.9.13-gcc6.patch b/games-simulation/crrcsim/files/crrcsim-0.9.13-gcc6.patch
new file mode 100644 (file)
index 0000000..b11550f
--- /dev/null
@@ -0,0 +1,14 @@
+Bug: https://bugs.gentoo.org/610560
+Upstream commit: https://sourceforge.net/p/crrcsim/code/ci/28ed9ba57011371cab8b637550acc716b973c47d
+
+--- a/src/mod_video/crrc_animation.cpp
++++ b/src/mod_video/crrc_animation.cpp
+@@ -84,7 +84,7 @@
+       else
+       {
+         std::cerr << "createAnimation: unknown animation type \'"
+-                  << type << "\'" << std::cerr;
++                  << type << "\'" << std::endl;
+       }
+       
+       if (anim != NULL)