Bug 280391 - cad/freecad: Suggest update to latest commit
Summary: cad/freecad: Suggest update to latest commit
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: Christoph Moench-Tegeder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-21 14:22 UTC by Jason W. Bacon
Modified: 2024-09-22 19:18 UTC (History)
0 users

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 Jason W. Bacon freebsd_committer freebsd_triage 2024-07-21 14:22:58 UTC
The current dev snapshot used by our port seems to have some serious bugs, such as malfunctions when creating dimensions.

Currently, I'm running the previous release using my work-in-progress ports:

https://github.com/outpaddling/freebsd-ports-wip/tree/master/opencascade770
https://github.com/outpaddling/freebsd-ports-wip/tree/master/freecad021

I'm also trying to get a newer dev snapshot working:

https://github.com/outpaddling/freebsd-ports-wip/tree/master/freecad

It's having problems linking with googletest, even though cmake reports that it was found:

-- Found Google Test: version 1.14.0

My first question is whether we should try to get googletest linkage working, or disable it, which might require patching the code.  It does not appear to be optional in the cmake scripts.
Comment 1 Christoph Moench-Tegeder freebsd_committer freebsd_triage 2024-07-21 17:47:29 UTC
The current port is so broken that I'm glad that I can do my CAD elsewhere - that even saves me quite some cycles compile-time. I'd rather wait for a new release than chase git, but it's hard to follow their development because f*cking web forums. Why do we even have a snapshot here?
Comment 2 Jason W. Bacon freebsd_committer freebsd_triage 2024-07-22 00:42:04 UTC
(In reply to Christoph Moench-Tegeder from comment #1)

Many ports depend on opencascade, and the latest opencascade release broke compatibility with the last freecad release.  So a decision had to be made whether to use a freecad dev snapshot, or delay updates to many other ports.

The other option would be to maintain a legacy opencascade port, which would either conflict with the current release or use a different prefix, which would complicate dependent ports.
Comment 3 Jason W. Bacon freebsd_committer freebsd_triage 2024-08-22 16:21:39 UTC
FYI, I have a working port of the latest Github commit at

https://github.com/outpaddling/freebsd-ports-wip/tree/master/freecad.

To fix the googletest link issues, I had to patch all the CMakeLists.txt files to link with both gtest_main and gtest.
Comment 4 Jason W. Bacon freebsd_committer freebsd_triage 2024-08-27 22:36:36 UTC
Was getting a seg fault related to Qt5 and was informed by upstream that FreeCAD is stable with Qt6 now:

https://github.com/FreeCAD/FreeCAD/issues/16047#issuecomment-2312519214

I've updated my WIP port to use Qt6.  Will continue to post progress here.
Comment 5 Jason W. Bacon freebsd_committer freebsd_triage 2024-09-11 13:14:09 UTC
FreeCAD is on RC1 now.

Of the two issues I've encountered in the development snapshots, one has been fixed:

https://github.com/FreeCAD/FreeCAD/issues/16047

For the other, I implemented a temporary hack to avert a segfault:

https://github.com/FreeCAD/FreeCAD/issues/16116

Work is ongoing to get to the root of the problem, but I don't think it needs to hold up the FreeBSD port.
Comment 6 commit-hook freebsd_committer freebsd_triage 2024-09-22 19:05:40 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=078cb3bc84c761464daf1f93ca3f05f03f3ba228

commit 078cb3bc84c761464daf1f93ca3f05f03f3ba228
Author:     Christoph Moench-Tegeder <cmt@FreeBSD.org>
AuthorDate: 2024-09-22 19:01:22 +0000
Commit:     Christoph Moench-Tegeder <cmt@FreeBSD.org>
CommitDate: 2024-09-22 19:03:39 +0000

    cad/FreeCAD: update to 1.0rc1

    newer (and less messy) than the snapshot before.

    Release Notes (WIP):
      https://wiki.freecad.org/Release_notes_1.0

    PR:             280391
    Reported By:    jwb

 cad/freecad/Makefile                               |   38 +-
 cad/freecad/distinfo                               |    6 +-
 ..._FreeCAD__Helpers_SetupSalomeSMESH.cmake (gone) |   11 -
 .../files/patch-src_Gui_SoFCCSysDragger.cpp (gone) |   31 -
 .../files/patch-src_Mod_Gui_StartView.cpp (new)    |   25 +
 ...patch-src_Mod_Material_Gui_CMakeLists.txt (new) |   22 +
 .../patch-src_Mod_MeshPart_App_CMakeLists.txt      |    8 +-
 .../patch-src_Mod_Part_App_Geometry2d.cpp (gone)   |  101 --
 ...h-src_Tools_plugins_widget_CMakeLists.txt (new) |   21 +
 cad/freecad/pkg-plist                              | 1462 ++++++++++++--------
 10 files changed, 971 insertions(+), 754 deletions(-)