From 2ea5b5d982ed56fcfa17d5c06c9f5a34fbaba727 Mon Sep 17 00:00:00 2001 From: David Seifert Date: Sat, 17 Sep 2016 16:25:59 +0200 Subject: [PATCH] sci-chemistry/gelemental: Allow for compiling with GCC 6 Gentoo-bug: 593994 Package-Manager: portage-2.3.0 --- .../files/gelemental-1.2.0-fix-c++14.patch | 14 ++++++++++++++ .../gelemental/gelemental-1.2.0-r1.ebuild | 3 ++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 sci-chemistry/gelemental/files/gelemental-1.2.0-fix-c++14.patch diff --git a/sci-chemistry/gelemental/files/gelemental-1.2.0-fix-c++14.patch b/sci-chemistry/gelemental/files/gelemental-1.2.0-fix-c++14.patch new file mode 100644 index 0000000000000..0965fe15b43ea --- /dev/null +++ b/sci-chemistry/gelemental/files/gelemental-1.2.0-fix-c++14.patch @@ -0,0 +1,14 @@ +Fix building with C++14, which errors out due to bool -> T* conversions +See also: https://bugs.gentoo.org/show_bug.cgi?id=593994 + +--- a/src/dialogs.cc ++++ b/src/dialogs.cc +@@ -255,7 +255,7 @@ + const Gtk::TreePath& tpath, bool) + { + Gtk::TreeIter iter = store->get_iter (tpath); +- return iter ? iter->get_value (cols.property) : false; ++ return iter ? iter->get_value (cols.property) : NULL; + } + + diff --git a/sci-chemistry/gelemental/gelemental-1.2.0-r1.ebuild b/sci-chemistry/gelemental/gelemental-1.2.0-r1.ebuild index e85ddb0478b34..43e2cb8cb57d7 100644 --- a/sci-chemistry/gelemental/gelemental-1.2.0-r1.ebuild +++ b/sci-chemistry/gelemental/gelemental-1.2.0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -40,6 +40,7 @@ PATCHES=( "${WORKDIR}"/debian/patches/fix_zinc_german_translation.patch "${WORKDIR}"/debian/patches/ftbfs_missing_limits.patch "${WORKDIR}"/debian/patches/lp673285_link_in_about.patch + "${FILESDIR}"/${PN}-1.2.0-fix-c++14.patch ) AUTOTOOLS_IN_SOURCE_BUILD=1