Bug 277317 - math/deal.ii: patch needed to support opencascade-7.8.0
Summary: math/deal.ii: patch needed to support opencascade-7.8.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Yuri Victorovich
URL: https://github.com/dealii/dealii/rele...
Keywords:
Depends on:
Blocks: 277294
  Show dependency treegraph
 
Reported: 2024-02-25 19:02 UTC by Thierry Thomas
Modified: 2024-03-21 18:05 UTC (History)
1 user (show)

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


Attachments
Adding support of OpenCascade 7.8.0 (1.98 KB, patch)
2024-03-08 22:33 UTC, Thierry Thomas
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thierry Thomas freebsd_committer freebsd_triage 2024-02-25 19:02:02 UTC
If built against opencascade-7.8.0, deal.II-9.5.0_4 fails with the following errors:

-- Include /wrkdirs/usr/ports/math/deal.ii/work/dealii-9.5.0/cmake/configure/configure_50_opencascade.cmake
-- Found OPENCASCADE_INCLUDE_DIR
-- Found OPENCASCADE_TKBO
-- Found OPENCASCADE_TKBool
-- Found OPENCASCADE_TKBRep
-- Found OPENCASCADE_TKernel
-- Found OPENCASCADE_TKFeat
-- Found OPENCASCADE_TKFillet
-- Found OPENCASCADE_TKG2d
-- Found OPENCASCADE_TKG3d
-- Found OPENCASCADE_TKGeomAlgo
-- Found OPENCASCADE_TKGeomBase
-- Found OPENCASCADE_TKHLR
-- OPENCASCADE_TKIGES not found! The call was:
--     find_library(OPENCASCADE_TKIGES NAMES TKIGES HINTS PATH_SUFFIXES lib lib64 lib mac64/clang/lib mac32/clang/lib lin64/gcc/lib lin32/gcc/lib)
-- Found OPENCASCADE_TKMath
-- Found OPENCASCADE_TKMesh
-- Found OPENCASCADE_TKOffset
-- Found OPENCASCADE_TKPrim
-- Found OPENCASCADE_TKShHealing
-- OPENCASCADE_TKSTEP not found! The call was:
--     find_library(OPENCASCADE_TKSTEP NAMES TKSTEP HINTS PATH_SUFFIXES lib lib64 lib mac64/clang/lib mac32/clang/lib lin64/gcc/lib lin32/gcc/lib)
-- OPENCASCADE_TKSTEPAttr not found! The call was:
--     find_library(OPENCASCADE_TKSTEPAttr NAMES TKSTEPAttr HINTS PATH_SUFFIXES lib lib64 lib mac64/clang/lib mac32/clang/lib lin64/gcc/lib lin32/gcc/lib)
-- OPENCASCADE_TKSTEPBase not found! The call was:
--     find_library(OPENCASCADE_TKSTEPBase NAMES TKSTEPBase HINTS PATH_SUFFIXES lib lib64 lib mac64/clang/lib mac32/clang/lib lin64/gcc/lib lin32/gcc/lib)
-- OPENCASCADE_TKSTEP209 not found! The call was:
--     find_library(OPENCASCADE_TKSTEP209 NAMES TKSTEP209 HINTS PATH_SUFFIXES lib lib64 lib mac64/clang/lib mac32/clang/lib lin64/gcc/lib lin32/gcc/lib)
-- OPENCASCADE_TKSTL not found! The call was:
--     find_library(OPENCASCADE_TKSTL NAMES TKSTL HINTS PATH_SUFFIXES lib lib64 lib mac64/clang/lib mac32/clang/lib lin64/gcc/lib lin32/gcc/lib)
-- Found OPENCASCADE_TKTopAlgo
-- Found OPENCASCADE_TKXSBase
-- Processing OPENCASCADE variables and targets
--   OPENCASCADE_LIBRARIES: *** Required variable "OPENCASCADE_TKIGES" set to NOTFOUND ***
--   OPENCASCADE_LIBRARIES: *** Required variable "OPENCASCADE_TKSTEP" set to NOTFOUND ***
--   OPENCASCADE_LIBRARIES: *** Required variable "OPENCASCADE_TKSTEPAttr" set to NOTFOUND ***
--   OPENCASCADE_LIBRARIES: *** Required variable "OPENCASCADE_TKSTEPBase" set to NOTFOUND ***
--   OPENCASCADE_LIBRARIES: *** Required variable "OPENCASCADE_TKSTEP209" set to NOTFOUND ***
--   OPENCASCADE_LIBRARIES: *** Required variable "OPENCASCADE_TKSTL" set to NOTFOUND ***
-- Unable to process OPENCASCADE
-- DEAL_II_WITH_OPENCASCADE has unmet external dependencies.
CMake Error at cmake/macros/macro_configure_feature.cmake:112 (message):
  

  Could not find the opencascade library!

  Please ensure that a suitable opencascade library is installed on your
  computer.

  If the library is not at a default location, either provide some hints for
  autodetection,

      $ OPENCASCADE_DIR="..." cmake <...>
      $ cmake -DOPENCASCADE_DIR="..." <...>

  or set the relevant variables by hand in ccmake.

Call Stack (most recent call first):
  cmake/macros/macro_configure_feature.cmake:277 (feature_error_message)
  cmake/configure/configure_50_opencascade.cmake:20 (configure_feature)
  cmake/macros/macro_verbose_include.cmake:19 (include)
  CMakeLists.txt:120 (verbose_include)


-- Configuring incomplete, errors occurred!
*** Error code 1
Comment 1 Thierry Thomas freebsd_committer freebsd_triage 2024-02-26 18:09:39 UTC
Upstream released a new version, v9.5.2, available at <https://github.com/dealii/dealii/releases/tag/v9.5.2>.

Could you please check if it is compatible with OpenCascade 7.8.0?
Comment 2 Yuri Victorovich freebsd_committer freebsd_triage 2024-02-29 17:11:13 UTC
(In reply to Thierry Thomas from comment #1)

Hi Thierry,

I've updated the deal.ii port to 9.5.2, but I didn't check it for the opencascade compatibility.

Yuri
Comment 3 Thierry Thomas freebsd_committer freebsd_triage 2024-03-01 17:33:06 UTC
Thanks for the upgrade, but unfortunately OCCT 7.8 is not yet supported:

-- Include /wrkdirs/usr/ports/math/deal.ii/work/dealii-9.5.2/cmake/configure/configure_50_opencascade.cmake
-- Found OPENCASCADE_INCLUDE_DIR
-- Found OPENCASCADE_TKBO
-- Found OPENCASCADE_TKBool
-- Found OPENCASCADE_TKBRep
-- Found OPENCASCADE_TKernel
-- Found OPENCASCADE_TKFeat
-- Found OPENCASCADE_TKFillet
-- Found OPENCASCADE_TKG2d
-- Found OPENCASCADE_TKG3d
-- Found OPENCASCADE_TKGeomAlgo
-- Found OPENCASCADE_TKGeomBase
-- Found OPENCASCADE_TKHLR
-- OPENCASCADE_TKIGES not found! The call was:
--     find_library(OPENCASCADE_TKIGES NAMES TKIGES HINTS PATH_SUFFIXES lib lib64 lib mac64/clang/lib mac32/clang/lib lin64/gcc/lib lin32/gcc/lib)
-- Found OPENCASCADE_TKMath
-- Found OPENCASCADE_TKMesh
-- Found OPENCASCADE_TKOffset
-- Found OPENCASCADE_TKPrim
-- Found OPENCASCADE_TKShHealing
-- OPENCASCADE_TKSTEP not found! The call was:
--     find_library(OPENCASCADE_TKSTEP NAMES TKSTEP HINTS PATH_SUFFIXES lib lib64 lib mac64/clang/lib mac32/clang/lib lin64/gcc/lib lin32/gcc/lib)
-- OPENCASCADE_TKSTEPAttr not found! The call was:
--     find_library(OPENCASCADE_TKSTEPAttr NAMES TKSTEPAttr HINTS PATH_SUFFIXES lib lib64 lib mac64/clang/lib mac32/clang/lib lin64/gcc/lib lin32/gcc/lib)
-- OPENCASCADE_TKSTEPBase not found! The call was:
--     find_library(OPENCASCADE_TKSTEPBase NAMES TKSTEPBase HINTS PATH_SUFFIXES lib lib64 lib mac64/clang/lib mac32/clang/lib lin64/gcc/lib lin32/gcc/lib)
-- OPENCASCADE_TKSTEP209 not found! The call was:
--     find_library(OPENCASCADE_TKSTEP209 NAMES TKSTEP209 HINTS PATH_SUFFIXES lib lib64 lib mac64/clang/lib mac32/clang/lib lin64/gcc/lib lin32/gcc/lib)
-- OPENCASCADE_TKSTL not found! The call was:
--     find_library(OPENCASCADE_TKSTL NAMES TKSTL HINTS PATH_SUFFIXES lib lib64 lib mac64/clang/lib mac32/clang/lib lin64/gcc/lib lin32/gcc/lib)
-- Found OPENCASCADE_TKTopAlgo
-- Found OPENCASCADE_TKXSBase
-- Processing OPENCASCADE variables and targets
--   OPENCASCADE_LIBRARIES: *** Required variable "OPENCASCADE_TKIGES" set to NOTFOUND ***
--   OPENCASCADE_LIBRARIES: *** Required variable "OPENCASCADE_TKSTEP" set to NOTFOUND ***
--   OPENCASCADE_LIBRARIES: *** Required variable "OPENCASCADE_TKSTEPAttr" set to NOTFOUND ***
--   OPENCASCADE_LIBRARIES: *** Required variable "OPENCASCADE_TKSTEPBase" set to NOTFOUND ***
--   OPENCASCADE_LIBRARIES: *** Required variable "OPENCASCADE_TKSTEP209" set to NOTFOUND ***
--   OPENCASCADE_LIBRARIES: *** Required variable "OPENCASCADE_TKSTL" set to NOTFOUND ***
-- Unable to process OPENCASCADE
-- DEAL_II_WITH_OPENCASCADE has unmet external dependencies.
CMake Error at cmake/macros/macro_configure_feature.cmake:112 (message):
  

  Could not find the opencascade library!

  Please ensure that a suitable opencascade library is installed on your
  computer.

  If the library is not at a default location, either provide some hints for
  autodetection,

      $ OPENCASCADE_DIR="..." cmake <...>
      $ cmake -DOPENCASCADE_DIR="..." <...>

  or set the relevant variables by hand in ccmake.

Call Stack (most recent call first):
  cmake/macros/macro_configure_feature.cmake:277 (feature_error_message)
  cmake/configure/configure_50_opencascade.cmake:20 (configure_feature)
  cmake/macros/macro_verbose_include.cmake:19 (include)
  CMakeLists.txt:120 (verbose_include)


-- Configuring incomplete, errors occurred!
*** Error code 1
Comment 4 Thierry Thomas freebsd_committer freebsd_triage 2024-03-08 22:33:58 UTC
Created attachment 249041 [details]
Adding support of OpenCascade 7.8.0

Adding support for OpenCascade 7.8.0

Do not bump PORTREVISION untill OpenCascade has been committed.

Note: a PR has been submitted upstream, see
<https://github.com/dealii/dealii/pull/16738>.
Comment 5 commit-hook freebsd_committer freebsd_triage 2024-03-21 18:03:07 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3c47a75b49551a4fda20cee864474c4d77f65b66

commit 3c47a75b49551a4fda20cee864474c4d77f65b66
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2024-03-21 17:51:18 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2024-03-21 18:01:19 +0000

    math/deal.ii: support of OpenCascade 7.8.0

    PR:             277317
    Approved by:    yuri (maintainer)

 math/deal.ii/Makefile                              |  1 +
 ...e_modules_FindDEAL__II__OPENCASCADE.cmake (new) | 27 ++++++++++++++++++++++
 2 files changed, 28 insertions(+)
Comment 6 Thierry Thomas freebsd_committer freebsd_triage 2024-03-21 18:05:04 UTC
Committed, thanks!