app-i18n/zinnia: Fix gcc6 support, bug #594048 by milan hodoscek and Peter Levine.
authorPacho Ramos <pacho@gentoo.org>
Tue, 4 Apr 2017 11:39:43 +0000 (13:39 +0200)
committerPacho Ramos <pacho@gentoo.org>
Tue, 4 Apr 2017 12:05:05 +0000 (14:05 +0200)
Package-Manager: Portage-2.3.5, Repoman-2.3.2

app-i18n/zinnia/files/zinnia-0.06-gcc6.patch [new file with mode: 0644]
app-i18n/zinnia/zinnia-0.06-r3.ebuild

diff --git a/app-i18n/zinnia/files/zinnia-0.06-gcc6.patch b/app-i18n/zinnia/files/zinnia-0.06-gcc6.patch
new file mode 100644 (file)
index 0000000..f6ea7e1
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/old/trainer.cpp b/zinnia-0.06/trainer.cpp
+index fdb044c..8b21e6c 100644
+--- a/old/trainer.cpp
++++ b/zinnia-0.06/trainer.cpp
+@@ -103,7 +103,7 @@ class TrainerImpl: public Trainer {
+     if (!fn) {
+       return false;
+     }
+-    x_.push_back(std::make_pair<std::string, FeatureNode *>(y, fn));
++    x_.push_back(std::make_pair(y, fn));
+     return true;
+   }
index bd046fc8a32cd50590216f69a31e0ba3d6b9ad01..660166d01089e02cc5ecdfb088424e1d23949fd2 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -18,6 +18,7 @@ DOCS=( AUTHORS ChangeLog NEWS README )
 PATCHES=(
        "${FILESDIR}/${P}-ricedown.patch"
        "${FILESDIR}/${P}-perl.patch"
+       "${FILESDIR}/${P}-gcc6.patch"
 )
 AUTOTOOLS_AUTORECONF=yes