* [gentoo-commits] repo/gentoo:master commit in: kde-misc/kcollectd/files/, kde-misc/kcollectd/
@ 2017-03-19 23:12 Andreas Sturmlechner
0 siblings, 0 replies; only message in thread
From: Andreas Sturmlechner @ 2017-03-19 23:12 UTC (permalink / raw
To: gentoo-commits
commit: 7e7ffe5d302c447dfbdf02bcce2dda8debbc4542
Author: Peter Levine <plevine457 <AT> gmail <DOT> com>
AuthorDate: Sun Mar 19 21:26:59 2017 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Mar 19 23:11:56 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e7ffe5d
kde-misc/kcollectd: Fix building with gcc-6 (bug #613174)
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/4247
kde-misc/kcollectd/files/kcollectd-0.9-gcc6.patch | 52 +++++++++++++++++++++++
kde-misc/kcollectd/kcollectd-0.9-r1.ebuild | 3 +-
2 files changed, 54 insertions(+), 1 deletion(-)
diff --git a/kde-misc/kcollectd/files/kcollectd-0.9-gcc6.patch b/kde-misc/kcollectd/files/kcollectd-0.9-gcc6.patch
new file mode 100644
index 00000000000..bcf28d0a318
--- /dev/null
+++ b/kde-misc/kcollectd/files/kcollectd-0.9-gcc6.patch
@@ -0,0 +1,52 @@
+Description: fix FTBFS with gcc-6
+Author: Logan Rosen <logan@ubuntu.com>
+Acked-By: Mattia Rizzolo <mattia@debian.org>
+Bug-Debian: https://bugs.debian.org/831129
+Last-Update: 2016-10-10
+
+--- a/kcollectd/graph.cc
++++ b/kcollectd/graph.cc
+@@ -564,9 +564,9 @@
+ paint.setPen(Qt::NoPen);
+ paint.setBrush(QBrush(color_minmax[color_nr++ % 8]));
+ for(int i=0; i<size; ++i) {
+- while (i<size && (isnan(min_data[i]) || isnan(max_data[i]))) ++i;
++ while (i<size && (std::isnan(min_data[i]) || std::isnan(max_data[i]))) ++i;
+ int l = i;
+- while (i<size && !isnan(min_data[i]) && !isnan(max_data[i])) ++i;
++ while (i<size && !std::isnan(min_data[i]) && !std::isnan(max_data[i])) ++i;
+ const int asize = i-l;
+ points.resize(asize*2);
+ int k;
+@@ -597,9 +597,9 @@
+ if (!avg_data.empty()) {
+ paint.setPen(color_line[color_nr++ % 8]);
+ for(int i=0; i<size; ++i) {
+- while (i<size && isnan(avg_data[i])) ++i;
++ while (i<size && std::isnan(avg_data[i])) ++i;
+ int l = i;
+- while (i<size && !isnan(avg_data[i])) ++i;
++ while (i<size && !std::isnan(avg_data[i])) ++i;
+ const int asize = i-l;
+ points.resize(asize);
+ for(int k=0; k<asize; ++k, ++l) {
+--- a/kcollectd/misc.cc
++++ b/kcollectd/misc.cc
+@@ -119,7 +119,7 @@
+ // process avg_data
+ if (!avg_data.empty()) {
+ for(std::size_t i=0; i<size; ++i) {
+- if (isnan(avg_data[i])) continue;
++ if (std::isnan(avg_data[i])) continue;
+ valid = true;
+ if (min > avg_data[i]) min = avg_data[i];
+ if (max < avg_data[i]) max = avg_data[i];
+@@ -129,7 +129,7 @@
+ // process min/max-data
+ if (!min_data.empty() && !max_data.empty()) {
+ for(std::size_t i=0; i<size; ++i) {
+- if (isnan(min_data[i]) || isnan(max_data[i])) continue;
++ if (std::isnan(min_data[i]) || std::isnan(max_data[i])) continue;
+ valid = true;
+ if (min > min_data[i]) min = min_data[i];
+ if (max < min_data[i]) max = min_data[i];
diff --git a/kde-misc/kcollectd/kcollectd-0.9-r1.ebuild b/kde-misc/kcollectd/kcollectd-0.9-r1.ebuild
index 5e6837e8a65..4e654e720a6 100644
--- a/kde-misc/kcollectd/kcollectd-0.9-r1.ebuild
+++ b/kde-misc/kcollectd/kcollectd-0.9-r1.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
@@ -23,4 +23,5 @@ PATCHES=(
"${FILESDIR}/${P}-boost.patch"
"${FILESDIR}/${P}-cflags.patch"
"${FILESDIR}/${P}-desktop.patch"
+ "${FILESDIR}/${P}-gcc6.patch"
)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-03-19 23:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-19 23:12 [gentoo-commits] repo/gentoo:master commit in: kde-misc/kcollectd/files/, kde-misc/kcollectd/ Andreas Sturmlechner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox