From: Jochen Sprickerhof Date: Fri, 19 Aug 2022 11:40:55 +0000 (+0200) Subject: Add upstream patch to fix build on armhf X-Git-Tag: archive/raspbian/1.14.0+dfsg-2+rpi1^2~33 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f61dc753ca2d4caa30c6aa9cb3065b36f0a63362;p=pcl.git Add upstream patch to fix build on armhf As seen on https://launchpad.net/ubuntu/+source/pcl/1.12.1+dfsg-4/+build/24168829 --- diff --git a/debian/patches/0009-Repair-sparse_matrix.hpp.patch b/debian/patches/0009-Repair-sparse_matrix.hpp.patch new file mode 100644 index 00000000..d1097c54 --- /dev/null +++ b/debian/patches/0009-Repair-sparse_matrix.hpp.patch @@ -0,0 +1,57 @@ +From: Thomas Dickerson +Date: Thu, 12 May 2022 14:28:41 -0400 +Subject: Repair sparse_matrix.hpp + +Unclear why nobody has noticed for a decade that this code was just totally uncompilable. `SparseMatrix` does not have methods `Columns()` or `Rows()`, and `m_ppElements[i]` is a pointer so can't possibly have anything called with `.`. +--- + .../pcl/surface/3rdparty/poisson4/sparse_matrix.hpp | 18 +++++++++--------- + 1 file changed, 9 insertions(+), 9 deletions(-) + +diff --git a/surface/include/pcl/surface/3rdparty/poisson4/sparse_matrix.hpp b/surface/include/pcl/surface/3rdparty/poisson4/sparse_matrix.hpp +index e6564cd..02c2db5 100644 +--- a/surface/include/pcl/surface/3rdparty/poisson4/sparse_matrix.hpp ++++ b/surface/include/pcl/surface/3rdparty/poisson4/sparse_matrix.hpp +@@ -250,9 +250,9 @@ namespace pcl + template + SparseMatrix& SparseMatrix::operator *= (const T& V) + { +- for (int i=0; iRows(); i++) ++ for (int i=0; i + SparseMatrix SparseMatrix::Multiply( const SparseMatrix& M ) const + { +- SparseMatrix R( this->Rows(), M.Columns() ); +- for(int i=0; i R( rows, M._maxEntriesPerRow ); ++ for(int i=0; i + SparseMatrix SparseMatrix::Transpose() const + { +- SparseMatrix M( this->Columns(), this->Rows() ); ++ SparseMatrix M( _maxEntriesPerRow, rows ); + +- for (int i=0; iRows(); i++) ++ for (int i=0; i +Date: Fri, 20 May 2022 14:47:52 +0200 +Subject: Fix variable name in poisson4 + +--- + surface/include/pcl/surface/3rdparty/poisson4/sparse_matrix.hpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/surface/include/pcl/surface/3rdparty/poisson4/sparse_matrix.hpp b/surface/include/pcl/surface/3rdparty/poisson4/sparse_matrix.hpp +index 02c2db5..24f0a54 100644 +--- a/surface/include/pcl/surface/3rdparty/poisson4/sparse_matrix.hpp ++++ b/surface/include/pcl/surface/3rdparty/poisson4/sparse_matrix.hpp +@@ -252,7 +252,7 @@ namespace pcl + { + for (int i=0; i