commit: 61d3ecd7b439ebd0d08613df3dd92b272bb523de Author: Peter Levine <plevine457 <AT> gmail <DOT> com> AuthorDate: Sun Jul 23 01:31:58 2017 +0000 Commit: David Seifert <soap <AT> gentoo <DOT> org> CommitDate: Sun Jul 30 09:09:27 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61d3ecd7
sci-biology/express: Fix building with GCC-6 Bug: https://bugs.gentoo.org/show_bug.cgi?id=610692 Package-Manager: Portage-2.3.6, Repoman-2.3.2 Closes: https://github.com/gentoo/gentoo/pull/5179 sci-biology/express/express-1.5.1.ebuild | 3 ++- sci-biology/express/files/express-1.5.1-gcc6.patch | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/sci-biology/express/express-1.5.1.ebuild b/sci-biology/express/express-1.5.1.ebuild index 5a7ef2f98f0..62e5361f529 100644 --- a/sci-biology/express/express-1.5.1.ebuild +++ b/sci-biology/express/express-1.5.1.ebuild @@ -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 @@ -26,6 +26,7 @@ S="${WORKDIR}/${P}-src" PATCHES=( "${FILESDIR}"/${P}-buildsystem.patch + "${FILESDIR}"/${P}-gcc6.patch ) src_configure() { diff --git a/sci-biology/express/files/express-1.5.1-gcc6.patch b/sci-biology/express/files/express-1.5.1-gcc6.patch new file mode 100644 index 00000000000..8a608b97b05 --- /dev/null +++ b/sci-biology/express/files/express-1.5.1-gcc6.patch @@ -0,0 +1,19 @@ +Bug: https://bugs.gentoo.org/610692 + +--- a/src/targets.cpp ++++ b/src/targets.cpp +@@ -113,12 +113,12 @@ + + double ll = LOG_1; + double tot_mass = mass(with_pseudo); +- double tot_eff_len = cached_effective_length(lib.bias_table); ++ double tot_eff_len = cached_effective_length(static_cast<bool>(lib.bias_table)); + if (neighbors) { + foreach (const Target* neighbor, *neighbors) { + tot_mass = log_add(tot_mass, neighbor->mass(with_pseudo)); + tot_eff_len = log_add(tot_eff_len, +- neighbor->cached_effective_length(lib.bias_table)); ++ neighbor->cached_effective_length(static_cast<bool>(lib.bias_table))); + } + } + ll += tot_mass - tot_eff_len;