commit: 86155b599c5599a84831e1893214f65f3132a9e4
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 28 14:16:25 2017 +0000
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Sat Jan 28 15:26:55 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86155b59
dev-ros/image_cb_detector: Fix build in C++11 mode.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
dev-ros/image_cb_detector/files/c11.patch | 13 +++++++++++++
.../image_cb_detector/image_cb_detector-0.10.14-r1.ebuild | 2 +-
dev-ros/image_cb_detector/image_cb_detector-9999.ebuild | 2 +-
3 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/dev-ros/image_cb_detector/files/c11.patch
b/dev-ros/image_cb_detector/files/c11.patch
new file mode 100644
index 00000000..bddbce9
--- /dev/null
+++ b/dev-ros/image_cb_detector/files/c11.patch
@@ -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;
+ }
diff --git a/dev-ros/image_cb_detector/image_cb_detector-0.10.14-r1.ebuild
b/dev-ros/image_cb_detector/image_cb_detector-0.10.14-r1.ebuild
index 972abdc..59b223a 100644
--- a/dev-ros/image_cb_detector/image_cb_detector-0.10.14-r1.ebuild
+++ b/dev-ros/image_cb_detector/image_cb_detector-0.10.14-r1.ebuild
@@ -29,4 +29,4 @@ RDEPEND="
dev-libs/boost:=[threads]
"
DEPEND="${RDEPEND}"
-PATCHES=( "${FILESDIR}/gcc6.patch" )
+PATCHES=( "${FILESDIR}/gcc6.patch" "${FILESDIR}/c11.patch" )
diff --git a/dev-ros/image_cb_detector/image_cb_detector-9999.ebuild
b/dev-ros/image_cb_detector/image_cb_detector-9999.ebuild
index 972abdc..59b223a 100644
--- a/dev-ros/image_cb_detector/image_cb_detector-9999.ebuild
+++ b/dev-ros/image_cb_detector/image_cb_detector-9999.ebuild
@@ -29,4 +29,4 @@ RDEPEND="
dev-libs/boost:=[threads]
"
DEPEND="${RDEPEND}"
-PATCHES=( "${FILESDIR}/gcc6.patch" )
+PATCHES=( "${FILESDIR}/gcc6.patch" "${FILESDIR}/c11.patch" )