Bug 250812 - math/openturns: fails to build with ceres-solver 2.0.0, needs to be updated to 1.16rc1
Summary: math/openturns: fails to build with ceres-solver 2.0.0, needs to be updated t...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Yuri Victorovich
Keywords: needs-patch
Depends on: 250815
  Show dependency treegraph
Reported: 2020-11-02 16:14 UTC by Jan Beich
Modified: 2020-11-03 08:51 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (yuri)


Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer 2020-11-02 16:14:22 UTC
I'm trying to update math/ceres-solver to 2.0.0 but math/openturns 1.15 fails to build. After checking openturns upstream it seems the error was fixed by https://github.com/openturns/openturns/commit/e4ab6ee5b65d which is part of the series of 33 commits, so I'm not sure it's safe to backport.

Can you update the port to 1.16rc1 ?

lib/src/Base/Optim/Ceres.cxx:111:59: error: no member named 'int32' in namespace 'ceres'
    *mutable_parameter_block_sizes() = std::vector<ceres::int32>(1, problem.getDimension());
lib/src/Base/Optim/Ceres.cxx:335:15: error: no member named 'num_linear_solver_threads' in 'ceres::Solver::Options'
      options.num_linear_solver_threads = ResourceMap::GetAsUnsignedInteger("Ceres-num_linear_solver_threads");
      ~~~~~~~ ^

poudriere log: https://reviews.freebsd.org/P452
Comment 1 commit-hook freebsd_committer 2020-11-03 08:50:46 UTC
A commit references this bug:

Author: yuri
Date: Tue Nov  3 08:50:39 UTC 2020
New revision: 553969
URL: https://svnweb.freebsd.org/changeset/ports/553969

  math/openturns: Update 1.15 -> 1.16rc1

  PR:		250812
  Reported by:	jbeich

Comment 2 Yuri Victorovich freebsd_committer 2020-11-03 08:51:13 UTC
The update to 1.16rc1 has been committed.