dev-games/clanlib: Fix building with GCC-6
authorPeter Levine <plevine457@gmail.com>
Wed, 11 Oct 2017 05:24:28 +0000 (01:24 -0400)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Fri, 13 Oct 2017 19:27:09 +0000 (21:27 +0200)
Closes: https://bugs.gentoo.org/596112
Closes: https://github.com/gentoo/gentoo/pull/5915
Package-Manager: Portage-2.3.10, Repoman-2.3.3

dev-games/clanlib/clanlib-0.8.1.ebuild
dev-games/clanlib/files/clanlib-0.8.1-gcc6.patch [new file with mode: 0644]

index 0e13a37d97d2eca6ad49cf51009a2e10ed7b17a6..dbd437a41db71eaefc4962c278242da07762d3ac 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=5
@@ -40,6 +40,7 @@ src_prepare() {
                "${FILESDIR}"/${P}-gcc43.patch \
                "${FILESDIR}"/${P}-gcc44.patch \
                "${FILESDIR}"/${P}-gcc47.patch \
+               "${FILESDIR}"/${P}-gcc6.patch \
                "${FILESDIR}"/${P}-libpng15.patch
 }
 
diff --git a/dev-games/clanlib/files/clanlib-0.8.1-gcc6.patch b/dev-games/clanlib/files/clanlib-0.8.1-gcc6.patch
new file mode 100644 (file)
index 0000000..95284c2
--- /dev/null
@@ -0,0 +1,16 @@
+Bug: https://bugs.gentoo.org/596112
+
+--- a/Sources/Core/IOData/Generic/datafile_inputprovider.h
++++ b/Sources/Core/IOData/Generic/datafile_inputprovider.h
+@@ -142,9 +142,9 @@
+               void insert(const std::string &resource_id, int data_pos, int data_size)
+               {
+                       cache.insert(
+-                              std::make_pair<std::string const, std::pair<int, int> >(
++                              std::pair<std::string const, std::pair<int, int> >(
+                               resource_id,
+-                              std::make_pair<int,int>(data_pos, data_size)));
++                              std::pair<int,int>(data_pos, data_size)));
+               }
+ 
+       private: