sci-biology/cufflinks: Fix building with GCC-6
authorPeter Levine <plevine457@gmail.com>
Thu, 22 Jun 2017 05:25:12 +0000 (01:25 -0400)
committerDavid Seifert <soap@gentoo.org>
Sun, 25 Jun 2017 16:59:09 +0000 (18:59 +0200)
Bug: https://bugs.gentoo.org/show_bug.cgi?id=594904
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/4969

sci-biology/cufflinks/cufflinks-2.2.1-r2.ebuild
sci-biology/cufflinks/files/cufflinks-2.2.1-gcc6.patch [new file with mode: 0644]

index 9ff0a2c71112e9e9cef38b1d17ecb1d887785874..3e89f70a498eecf40344755356613f1c000ef715 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
@@ -22,6 +22,7 @@ RDEPEND="${DEPEND}"
 PATCHES=(
        "${FILESDIR}"/${P}-samtools-legacy.patch
        "${FILESDIR}"/${P}-flags.patch
+       "${FILESDIR}"/${P}-gcc6.patch
 )
 
 src_prepare() {
diff --git a/sci-biology/cufflinks/files/cufflinks-2.2.1-gcc6.patch b/sci-biology/cufflinks/files/cufflinks-2.2.1-gcc6.patch
new file mode 100644 (file)
index 0000000..6ee9bcf
--- /dev/null
@@ -0,0 +1,14 @@
+--- a/src/lemon/error.h
++++ b/src/lemon/error.h
+@@ -67,9 +67,9 @@
+     }
+ 
+     ExceptionMember& operator=(const ExceptionMember& copy) {
+-      if (ptr.get() == 0) return;
++      if (ptr.get() == 0) return *this;
+       try {
+-      if (!copy.valid()) return;
++      if (!copy.valid()) return *this;
+       *ptr = copy.get();
+       } catch (...) {}
+     }