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
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PATCHES=(
"${FILESDIR}"/${P}-samtools-legacy.patch
"${FILESDIR}"/${P}-flags.patch
+ "${FILESDIR}"/${P}-gcc6.patch
)
src_prepare() {
--- /dev/null
+--- 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 (...) {}
+ }