git: 0ca2c84f88cd - main - math/ceres-solver: Backport commit: Enable compatibility with SuiteSparse 7.2.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 20 Sep 2023 07:57:07 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=0ca2c84f88cd0a83e16370385435cb326b8ba6df
commit 0ca2c84f88cd0a83e16370385435cb326b8ba6df
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-09-20 07:55:56 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-09-20 07:57:05 +0000
math/ceres-solver: Backport commit: Enable compatibility with SuiteSparse 7.2.0
Suggested by: thierry@freebsd.org
---
math/ceres-solver/Makefile | 2 +-
.../files/patch-internal_ceres_covariance__impl.cc | 14 ++++++++++++++
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/math/ceres-solver/Makefile b/math/ceres-solver/Makefile
index 7c25a663e3c9..4875d17ff833 100644
--- a/math/ceres-solver/Makefile
+++ b/math/ceres-solver/Makefile
@@ -1,6 +1,6 @@
PORTNAME= ceres-solver
DISTVERSION= 2.1.0
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org
diff --git a/math/ceres-solver/files/patch-internal_ceres_covariance__impl.cc b/math/ceres-solver/files/patch-internal_ceres_covariance__impl.cc
new file mode 100644
index 000000000000..88872405f429
--- /dev/null
+++ b/math/ceres-solver/files/patch-internal_ceres_covariance__impl.cc
@@ -0,0 +1,14 @@
+- backport of the commit Enable compatibility with SuiteSparse 7.2.0
+- see https://github.com/ceres-solver/ceres-solver/commit/9cca671273c2f205ca7350422f48b7b119c5dd78
+
+--- internal/ceres/covariance_impl.cc.orig 2023-09-20 07:40:12 UTC
++++ internal/ceres/covariance_impl.cc
+@@ -630,7 +630,7 @@ bool CovarianceImpl::ComputeCovarianceValuesUsingSuite
+ // separately.
+ const SuiteSparse_long rank = SuiteSparseQR<double>(SPQR_ORDERING_BESTAMD,
+ SPQR_DEFAULT_TOL,
+- cholmod_jacobian.ncol,
++ static_cast<int64_t>(cholmod_jacobian.ncol),
+ &cholmod_jacobian,
+ &R,
+ &permutation,