Bug 277315 - cad/freecad: patch needed to support opencascade-7.8.0
Summary: cad/freecad: 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: Thierry Thomas
URL:
Keywords:
Depends on:
Blocks: 277294
  Show dependency treegraph
 
Reported: 2024-02-25 17:30 UTC by Thierry Thomas
Modified: 2024-03-21 18:06 UTC (History)
1 user (show)

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


Attachments

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 17:30:49 UTC
If built against opencascade-7.8.0, FreeCAD-0.21.2_2 fails with the following errors:

ld: error: unable to find library -lTKIGES
ld: error: unable to find library -lTKSTL
ld: error: unable to find library -lTKSTEPBase
ld: error: unable to find library -lTKSTEPAttr
ld: error: unable to find library -lTKSTEP209
ld: error: unable to find library -lTKSTEP
ld: error: unable to find library -lTKXDESTEP
ld: error: unable to find library -lTKXDEIGES
c++: error: linker command failed with exit code 1 (use -v to see invocation)
*** [lib/libMEFISTO2.so] Error code 1
Comment 1 Thierry Thomas freebsd_committer freebsd_triage 2024-02-26 18:01:37 UTC
I have not seen a new release, but this commit should fix it:
<https://github.com/FreeCAD/FreeCAD/pull/11909/commits/8d94e48921be080de4e0b44abeb642d57d38512f>

Would you prefer to apply it to the port, or maybe just upgrade to the corresponding tag?
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-03-21 18:02:56 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7204a27e234abe2f5179f8b10af2c904b33c9f13

commit 7204a27e234abe2f5179f8b10af2c904b33c9f13
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2024-03-21 17:43:34 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2024-03-21 18:01:19 +0000

    cad/freecad: upgrade to 0.22.0dev and support OCCT 7.8.0

    Upgrade to the tag corresponding to #11909, in order to support OpenCascade
    7.8.0.

    <https://github.com/FreeCAD/FreeCAD/pull/11909/files>

    PR:             277315
    Approved by:    maintainer’s time-out

 cad/freecad/Makefile                               |  12 +-
 cad/freecad/distinfo                               |   6 +-
 ...h-cMake_FreeCAD__Helpers_SetupSalomeSMESH.cmake |   4 +-
 ...h-src_3rdParty_libE57Format_src_CheckedFile.cpp |   4 +-
 ...arty_salomesmesh_src_SMDS_SMDS__Mesh.cpp (gone) |  11 -
 cad/freecad/files/patch-src_Gui_CMakeLists.txt     |   4 +-
 cad/freecad/files/patch-src_Gui_Selection.h        |   4 +-
 .../files/patch-src_Gui_SoFCCSysDragger.cpp        |  18 +-
 cad/freecad/pkg-plist                              | 528 ++++++++++++++-------
 9 files changed, 380 insertions(+), 211 deletions(-)
Comment 3 Thierry Thomas freebsd_committer freebsd_triage 2024-03-21 18:06:02 UTC
Just committed, with an upgrade including the needed patches.