Based on https://github.com/Open-Cascade-SAS/OCCT/commit/bd651bbbd9e30fc5a73d32d11e0ea1a1821afd76 and https://gitlab.onelab.info/gmsh/gmsh/-/commit/f53e58fe744d7afa82cd6e0d391ca947e86278f3 I have created a patch to let kicad configure succeed. Emerged kicad-9999 with this patch.
Created attachment 883742 [details] Don't use this! kicad opencascade-7.8.0 compatibility patch Still needs check for older opencascade versions.
kicad needs more changes for opencascade-7.8.0 and higher. I had problems at runtime when kicad-9999 was compiled with my patch.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=547432ee8263d25a719d2bad60da08d53dd15e63 commit 547432ee8263d25a719d2bad60da08d53dd15e63 Author: Andrew Ammerlaan <andrewammerlaan@gentoo.org> AuthorDate: 2024-03-23 11:15:10 +0000 Commit: Andrew Ammerlaan <andrewammerlaan@gentoo.org> CommitDate: 2024-03-23 11:16:30 +0000 sci-electronics/kicad: update opencascade dep Bug: https://bugs.gentoo.org/923351 Closes: https://bugs.gentoo.org/927590 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org> sci-electronics/kicad/kicad-7.0.10.ebuild | 1 + sci-electronics/kicad/kicad-7.0.11.ebuild | 1 + sci-electronics/kicad/kicad-7.0.7.ebuild | 1 + sci-electronics/kicad/kicad-8.0.0.ebuild | 3 ++- sci-electronics/kicad/kicad-8.0.1.ebuild | 3 ++- sci-electronics/kicad/kicad-9999.ebuild | 3 ++- 6 files changed, 9 insertions(+), 3 deletions(-)
(In reply to jospezial from comment #2) > kicad needs more changes for opencascade-7.8.0 and higher. > I had problems at runtime when kicad-9999 was compiled with my patch. Can you be more specific about the runtime problems?
There was some kind of error message when starting eeschema or pcbnew. Can't remember which one of the two and what message it was. There is an upstream fix now in kicad main and 8.0 branch. Looks kinda similar to my approach. https://gitlab.com/kicad/code/kicad/-/commit/c8e41dcfe89a88dc9b698eb7ca204a4448f2070a https://gitlab.com/kicad/code/kicad/-/commit/804283877ceb2a5f25d590bc0e92c553de3ab2e6 "Fix cmake find of opencascade libraries for occt 7.8" btw, there is https://github.com/Open-Cascade-SAS/OCCT/releases/tag/V7_8_1
Comment on attachment 883742 [details] Don't use this! kicad opencascade-7.8.0 compatibility patch I cannot reproduce the error with kicad main git. sci-libs/opencascade-9999::gentoo was built with the following: USE="opengl -X -debug -doc -examples -ffmpeg -freeimage -freetype -gles2-only -gui -jemalloc -json -optimize -tbb -test -testprograms -tk -vtk" ABI_X86="(64)"
Please remove <sci-libs/opencascade-7.8.0:0= from kicad-9999.ebuild For that it is fixed by upstream kicad.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d53816844444629c282e1ffcd9fba220aa8a0a8 commit 7d53816844444629c282e1ffcd9fba220aa8a0a8 Author: Andrew Ammerlaan <andrewammerlaan@gentoo.org> AuthorDate: 2024-04-14 14:51:04 +0000 Commit: Andrew Ammerlaan <andrewammerlaan@gentoo.org> CommitDate: 2024-04-14 14:51:31 +0000 sci-electronics/kicad: drop opencascade restriction in live Bug: https://bugs.gentoo.org/923351 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org> sci-electronics/kicad/kicad-9999.ebuild | 1 - 1 file changed, 1 deletion(-)
https://gitlab.com/kicad/code/kicad/-/tags/8.0.2 Version bump please.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1cce39266c87dd148a87b8deda5001e24a4e1c1 commit f1cce39266c87dd148a87b8deda5001e24a4e1c1 Author: Andrew Ammerlaan <andrewammerlaan@gentoo.org> AuthorDate: 2024-05-03 12:46:22 +0000 Commit: Andrew Ammerlaan <andrewammerlaan@gentoo.org> CommitDate: 2024-05-03 12:51:08 +0000 sci-electronics/kicad: add 8.0.2 - compat with occt 8.0.2 - fix finding libs in tests - filter-lto - add missing dep on wxGTK[wayland] - drop USE=telemetry, this now requires configureing DSN at build time, upstream default is off, other distro's do not enable this, unclear what the DSN should be if enabled. Closes: https://bugs.gentoo.org/923351 Closes: https://bugs.gentoo.org/927226 Closes: https://bugs.gentoo.org/927482 Closes: https://bugs.gentoo.org/927952 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org> sci-electronics/kicad/Manifest | 1 + sci-electronics/kicad/kicad-8.0.2.ebuild | 180 +++++++++++++++++++++++++++++++ sci-electronics/kicad/kicad-9999.ebuild | 16 +-- 3 files changed, 191 insertions(+), 6 deletions(-)