From owner-svn-ports-all@freebsd.org Tue Nov 8 19:54:17 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 47C01C369A5; Tue, 8 Nov 2016 19:54:17 +0000 (UTC) (envelope-from tcberner@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F13D6806; Tue, 8 Nov 2016 19:54:16 +0000 (UTC) (envelope-from tcberner@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uA8JsGHj072084; Tue, 8 Nov 2016 19:54:16 GMT (envelope-from tcberner@FreeBSD.org) Received: (from tcberner@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uA8JsGIh072083; Tue, 8 Nov 2016 19:54:16 GMT (envelope-from tcberner@FreeBSD.org) Message-Id: <201611081954.uA8JsGIh072083@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tcberner set sender to tcberner@FreeBSD.org using -f From: "Tobias C. Berner" Date: Tue, 8 Nov 2016 19:54:16 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r425760 - head/math/kmplot/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Nov 2016 19:54:17 -0000 Author: tcberner Date: Tue Nov 8 19:54:15 2016 New Revision: 425760 URL: https://svnweb.freebsd.org/changeset/ports/425760 Log: Fix build with newer gcc versions. Add upstream patch [1] that uses * isnan() -> std::isnan() * isinf() -> std::isinf() This fixes compilation with gcc5. [1] https://quickgit.kde.org/?p=kmplot.git&a=commit&h=e903ca56ad26311fcaeb650acf96046c726fb809 PR: 213993 Reported by: Kenneth Salerno Approved by: rakuco (mentor) Obtained from: https://quickgit.kde.org/?p=kmplot.git&a=commit&h=e903ca56ad26311fcaeb650acf96046c726fb809 Added: head/math/kmplot/files/ head/math/kmplot/files/patch-git_e903ca5 (contents, props changed) Added: head/math/kmplot/files/patch-git_e903ca5 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/kmplot/files/patch-git_e903ca5 Tue Nov 8 19:54:15 2016 (r425760) @@ -0,0 +1,49 @@ +Backport of the the commit e903ca5 to old kmplot. + +From e903ca56ad26311fcaeb650acf96046c726fb809 Mon Sep 17 00:00:00 2001 +From: Albert Astals Cid +Date: Wed, 23 Mar 2016 20:56:55 +0100 +Subject: [PATCH] use std::isnan/isinf since we're including cmath + +--- kmplot/view.cpp.orig 2014-09-17 13:01:07 UTC ++++ kmplot/view.cpp +@@ -477,7 +477,7 @@ QPointF View::toPixel( const QPointF & r + double x = pixel.x(); + double y = pixel.y(); + +- if ( isnan(x) ) ++ if ( std::isnan(x) ) + { + xclipflg = true; + x = pixelIfNaN.x(); +@@ -497,14 +497,14 @@ QPointF View::toPixel( const QPointF & r + } + else + { +- if ( isinf(x) == -1 ) ++ if ( std::isinf(x) == -1 ) + x = 0; + +- else if ( isinf(x) == 1 ) ++ else if ( std::isinf(x) == 1 ) + x = m_clipRect.right(); + } + +- if ( isnan(y) ) ++ if ( std::isnan(y) ) + { + yclipflg = true; + y = pixelIfNaN.y(); +@@ -524,10 +524,10 @@ QPointF View::toPixel( const QPointF & r + } + else + { +- if ( isinf(y) == -1 ) ++ if ( std::isinf(y) == -1 ) + y = 0; + +- else if ( isinf(y) == 1 ) ++ else if ( std::isinf(y) == 1 ) + y = m_clipRect.bottom(); + } +