Fix FTBFS on ppc64el, thanks to ChriSopht in #eigen
authorJochen Sprickerhof <git@jochen.sprickerhof.de>
Mon, 17 Aug 2015 09:58:21 +0000 (11:58 +0200)
committerJochen Sprickerhof <git@jochen.sprickerhof.de>
Mon, 17 Aug 2015 09:58:21 +0000 (11:58 +0200)
debian/patches/0009-Fix-THIS_METHOD_IS_ONLY_FOR_1x1_EXPRESSIONS.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/0009-Fix-THIS_METHOD_IS_ONLY_FOR_1x1_EXPRESSIONS.patch b/debian/patches/0009-Fix-THIS_METHOD_IS_ONLY_FOR_1x1_EXPRESSIONS.patch
new file mode 100644 (file)
index 0000000..afa33c8
--- /dev/null
@@ -0,0 +1,27 @@
+From f2b6da959300acc1d0199cf3a922dae0844f7a03 Mon Sep 17 00:00:00 2001
+From: Jochen Sprickerhof <git@jochen.sprickerhof.de>
+Date: Mon, 17 Aug 2015 11:53:28 +0200
+Subject: [PATCH] Fix THIS_METHOD_IS_ONLY_FOR_1x1_EXPRESSIONS
+
+see: https://buildd.debian.org/status/fetch.php?pkg=pcl&arch=ppc64el&ver=1.7.2-8&stamp=1438282347
+Thanks to ChriSopht in #eigen
+---
+ apps/in_hand_scanner/src/icp.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/apps/in_hand_scanner/src/icp.cpp b/apps/in_hand_scanner/src/icp.cpp
+index fcbd45c..6bbfad3 100644
+--- a/apps/in_hand_scanner/src/icp.cpp
++++ b/apps/in_hand_scanner/src/icp.cpp
+@@ -382,7 +382,7 @@ pcl::ihs::ICP::selectModelPoints (const MeshConstPtr&    mesh_model,
+   for (Mesh::VertexDataCloud::const_iterator it=cloud.begin (); it!=cloud.end (); ++it)
+   {
+     // Don't consider points that are facing away from the camera.
+-    if ((T_inv * it->getNormalVector4fMap ()).z () < 0.f)
++    if ((T_inv.lazyProduct (it->getNormalVector4fMap ())).z () < 0.f)
+     {
+       PointNormal pt;
+       pt.getVector4fMap ()       = it->getVector4fMap ();
+-- 
+2.5.0
+
index dcfa7f970550e7b461c7d161e24b7a5e4694d3e5..2a57aa745a4d8240f19dffdf14243427a439c523 100644 (file)
@@ -6,3 +6,4 @@
 0006-fixes-for-boost-1.56-and-Qt4.patch
 0007-Fix-for-boost-1.57.patch
 0008-Fixes-manual_registration-and-segmentation-demo-for-.patch
+0009-Fix-THIS_METHOD_IS_ONLY_FOR_1x1_EXPRESSIONS.patch