Bug 297267 - cad/freecad: duplicate SMESH_CATCH
Summary: cad/freecad: duplicate SMESH_CATCH
Status: Closed Overcome By Events
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: 2026-08-04 10:42 UTC by Михаил
Modified: 2026-08-04 20:58 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 Михаил 2026-08-04 10:42:48 UTC
While testing the existing cad/freecad port, I found what appears to be a duplicate definition in the FreeBSD patch:

files/patch-src_3rdParty_salomesmesh_inc_SMESH__TryCatch.hxx

The patch contains two consecutive #define SMESH_CATCH(...) entries in the modified section. During the build this results in the compiler reporting:

error: '#' is not followed by a macro parameter

followed by additional parser errors originating from SMESH_Mesh.cpp.

This issue is reproducible on a clean ports tree with the current cad/freecad-1.1.1_2 port.

I am reporting the duplicate definition found in the patch so it can be reviewed.I have tried patching the patch but I am getting errors
Comment 1 Christoph Moench-Tegeder freebsd_committer freebsd_triage 2026-08-04 20:58:57 UTC
fixed in https://cgit.freebsd.org/ports/commit/?id=1d52f5eb615e39d69e17addd1975e93e121b8ef2