games-roguelike/scourge: Fix building with GCC-6
authorPeter Levine <plevine457@gmail.com>
Sun, 23 Jul 2017 07:17:15 +0000 (03:17 -0400)
committerMichael Palimaka <kensington@gentoo.org>
Sun, 23 Jul 2017 12:32:30 +0000 (22:32 +1000)
Bug: https://bugs.gentoo.org/show_bug.cgi?id=610492
Package-Manager: Portage-2.3.6, Repoman-2.3.2

games-roguelike/scourge/files/scourge-0.21.1-gcc6.patch [new file with mode: 0644]
games-roguelike/scourge/scourge-0.21.1-r1.ebuild

diff --git a/games-roguelike/scourge/files/scourge-0.21.1-gcc6.patch b/games-roguelike/scourge/files/scourge-0.21.1-gcc6.patch
new file mode 100644 (file)
index 0000000..fed15f4
--- /dev/null
@@ -0,0 +1,34 @@
+Bug: https://bugs.gentoo.org/610492
+Upstream ticket: https://sourceforge.net/p/scourge/patches/3/
+
+--- a/src/equip.cpp
++++ b/src/equip.cpp
+@@ -595,7 +595,7 @@
+               }
+       }
+       if ( !found ) {
+-              specialSkill = false;
++              specialSkill = NULL;
+               canvas->setTooltip( "" );
+       }
+       glDisable( GL_BLEND );
+--- a/src/render/map.cpp
++++ b/src/render/map.cpp
+@@ -3154,7 +3154,7 @@
+                       if ( shape )
+                               return shape;
+               }
+-              return false;
++              return NULL;
+       }
+       if ( y1 == y2 ) {
+               if ( x1 > x2 ) SWAP( x1, x2 );
+@@ -3163,7 +3163,7 @@
+                       if ( shape )
+                               return shape;
+               }
+-              return false;
++              return NULL;
+       }
index db3edafb19a6c2e1883b1132a3d229bab6e8d1c6..6f23afbb419669187da96401ba9d2a15f267c87a 100644 (file)
@@ -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
@@ -31,6 +31,7 @@ S=${WORKDIR}/${PN}
 
 PATCHES=(
        "${FILESDIR}"/${P}-gcc47.patch
+       "${FILESDIR}"/${P}-gcc6.patch
        "${FILESDIR}"/${P}-automake-1.13.patch
 )