Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ros/depthimage_to_laserscan/files/, dev-ros/depthimage_to_laserscan/
Date: Wed, 08 Feb 2017 16:19:39
Message-Id: 1486570763.1e698bc6d1e4db57f8c3555cdb5b72f45db3b9a7.aballier@gentoo
1 commit: 1e698bc6d1e4db57f8c3555cdb5b72f45db3b9a7
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 8 16:19:23 2017 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 8 16:19:23 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e698bc6
7
8 dev-ros/depthimage_to_laserscan: Fix build with gcc 5, bug #608474
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 .../depthimage_to_laserscan-1.0.7-r1.ebuild | 3 ++-
13 dev-ros/depthimage_to_laserscan/files/isnan.patch | 13 +++++++++++++
14 2 files changed, 15 insertions(+), 1 deletion(-)
15
16 diff --git a/dev-ros/depthimage_to_laserscan/depthimage_to_laserscan-1.0.7-r1.ebuild b/dev-ros/depthimage_to_laserscan/depthimage_to_laserscan-1.0.7-r1.ebuild
17 index 18325b4605..69d11c294c 100644
18 --- a/dev-ros/depthimage_to_laserscan/depthimage_to_laserscan-1.0.7-r1.ebuild
19 +++ b/dev-ros/depthimage_to_laserscan/depthimage_to_laserscan-1.0.7-r1.ebuild
20 @@ -1,4 +1,4 @@
21 -# Copyright 1999-2015 Gentoo Foundation
22 +# Copyright 1999-2017 Gentoo Foundation
23 # Distributed under the terms of the GNU General Public License v2
24 # $Id$
25
26 @@ -23,3 +23,4 @@ RDEPEND="
27 dev-ros/sensor_msgs[${CATKIN_MESSAGES_CXX_USEDEP}]
28 "
29 DEPEND="${RDEPEND}"
30 +PATCHES=( "${FILESDIR}/isnan.patch" )
31
32 diff --git a/dev-ros/depthimage_to_laserscan/files/isnan.patch b/dev-ros/depthimage_to_laserscan/files/isnan.patch
33 new file mode 100644
34 index 0000000000..11254904e9
35 --- /dev/null
36 +++ b/dev-ros/depthimage_to_laserscan/files/isnan.patch
37 @@ -0,0 +1,13 @@
38 +Index: depthimage_to_laserscan-1.0.7/src/DepthImageToLaserScan.cpp
39 +===================================================================
40 +--- depthimage_to_laserscan-1.0.7.orig/src/DepthImageToLaserScan.cpp
41 ++++ depthimage_to_laserscan-1.0.7/src/DepthImageToLaserScan.cpp
42 +@@ -59,7 +59,7 @@ bool DepthImageToLaserScan::use_point(co
43 +
44 + // Infs are preferable over NaNs (more information)
45 + if(!new_finite && !old_finite){ // Both are not NaN or Inf.
46 +- if(!isnan(new_value)){ // new is not NaN, so use it's +-Inf value.
47 ++ if(!std::isnan(new_value)){ // new is not NaN, so use it's +-Inf value.
48 + return true;
49 + }
50 + return false; // Do not replace old_value