sci-biology/tophat: Allow for compiling with GCC 6
authorDavid Seifert <soap@gentoo.org>
Wed, 21 Sep 2016 21:18:29 +0000 (23:18 +0200)
committerDavid Seifert <soap@gentoo.org>
Thu, 22 Sep 2016 07:29:27 +0000 (09:29 +0200)
Gentoo-bug: 594544

Package-Manager: portage-2.3.1

sci-biology/tophat/files/tophat-2.1.1-fix-c++14.patch [new file with mode: 0644]
sci-biology/tophat/tophat-2.1.1-r1.ebuild

diff --git a/sci-biology/tophat/files/tophat-2.1.1-fix-c++14.patch b/sci-biology/tophat/files/tophat-2.1.1-fix-c++14.patch
new file mode 100644 (file)
index 0000000..e8168bb
--- /dev/null
@@ -0,0 +1,14 @@
+Fix building with C++14, which errors out due to broken perfect forwarding signature.
+See also: https://bugs.gentoo.org/show_bug.cgi?id=594544
+
+--- a/src/tophat_reports.cpp
++++ b/src/tophat_reports.cpp
+@@ -2705,7 +2705,7 @@
+                               junction_stat.gtf_match = true;
+                               junction_stat.accepted = true;
+ 
+-                              gtf_junctions.insert(make_pair<Junction, JunctionStats>(Junction(ref_id, left_coord, right_coord, antisense), junction_stat));
++                              gtf_junctions.insert(make_pair(Junction(ref_id, left_coord, right_coord, antisense), junction_stat));
+                       }
+               }
+               fprintf(stderr, "Loaded %d GFF junctions from %s.\n", (int)(gtf_junctions.size()), gtf_juncs.c_str());
index a8501758f5d91a9cbedc3107b7633a6566df34e8..6c6690a7a86e5a499e98b97b82d15fb65ef95e34 100644 (file)
@@ -28,6 +28,7 @@ DEPEND="${RDEPEND}
 
 PATCHES=(
        "${FILESDIR}/${P}-unbundle-seqan-samtools.patch"
+       "${FILESDIR}/${P}-fix-c++14.patch"
 )
 
 src_prepare() {