dev-ros/image_cb_detector: Fix build in C++11 mode.
authorAlexis Ballier <aballier@gentoo.org>
Sat, 28 Jan 2017 14:16:25 +0000 (15:16 +0100)
committerAlexis Ballier <aballier@gentoo.org>
Sat, 28 Jan 2017 15:26:55 +0000 (16:26 +0100)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

dev-ros/image_cb_detector/files/c11.patch [new file with mode: 0644]
dev-ros/image_cb_detector/image_cb_detector-0.10.14-r1.ebuild
dev-ros/image_cb_detector/image_cb_detector-9999.ebuild

diff --git a/dev-ros/image_cb_detector/files/c11.patch b/dev-ros/image_cb_detector/files/c11.patch
new file mode 100644 (file)
index 0000000..bddbce9
--- /dev/null
@@ -0,0 +1,13 @@
+Index: image_cb_detector/src/rgbd_cb_detector_action.cpp
+===================================================================
+--- image_cb_detector.orig/src/rgbd_cb_detector_action.cpp
++++ image_cb_detector/src/rgbd_cb_detector_action.cpp
+@@ -143,7 +143,7 @@ public:
+       for(size_t i = 0; i< features.image_points.size(); i++){
+         geometry_msgs::Point pixel = features.image_points[i];
+         float depth = *(depth_ptr+width*(unsigned int)pixel.y+(unsigned int)pixel.x);
+-        if ( isnan(depth) )
++        if ( std::isnan(depth) )
+         {
+           continue;
+         }
index 972abdce8d2f6d138dec7a72040d6cc05eb93fe7..59b223affa7d84fe5f012e3f66cc412317cf49f0 100644 (file)
@@ -29,4 +29,4 @@ RDEPEND="
        dev-libs/boost:=[threads]
 "
 DEPEND="${RDEPEND}"
-PATCHES=( "${FILESDIR}/gcc6.patch" )
+PATCHES=( "${FILESDIR}/gcc6.patch" "${FILESDIR}/c11.patch" )
index 972abdce8d2f6d138dec7a72040d6cc05eb93fe7..59b223affa7d84fe5f012e3f66cc412317cf49f0 100644 (file)
@@ -29,4 +29,4 @@ RDEPEND="
        dev-libs/boost:=[threads]
 "
 DEPEND="${RDEPEND}"
-PATCHES=( "${FILESDIR}/gcc6.patch" )
+PATCHES=( "${FILESDIR}/gcc6.patch" "${FILESDIR}/c11.patch" )