Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 923351 - sci-electronics/kicad opencascade-7.8.0 compatibility
Summary: sci-electronics/kicad opencascade-7.8.0 compatibility
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Zoltan Puskas
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2024-01-30 17:45 UTC by jospezial
Modified: 2024-04-14 19:06 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Don't use this! kicad opencascade-7.8.0 compatibility patch (no,635 bytes, text/plain)
2024-01-30 17:48 UTC, jospezial
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jospezial 2024-01-30 17:45:53 UTC
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.
Comment 1 jospezial 2024-01-30 17:48:29 UTC
Created attachment 883742 [details]
Don't use this!
kicad opencascade-7.8.0 compatibility patch

Still needs check for older opencascade versions.
Comment 2 jospezial 2024-03-23 10:04:56 UTC
kicad needs more changes for opencascade-7.8.0 and higher.
I had problems at runtime when kicad-9999 was compiled with my patch.
Comment 3 Larry the Git Cow gentoo-dev 2024-03-23 11:17:03 UTC
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(-)
Comment 4 Paul Zander 2024-04-12 13:46:32 UTC
(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?
Comment 5 jospezial 2024-04-12 20:47:13 UTC
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 6 jospezial 2024-04-13 03:30:21 UTC
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)"
Comment 7 jospezial 2024-04-14 14:47:04 UTC
Please remove
<sci-libs/opencascade-7.8.0:0=
from
kicad-9999.ebuild

For that it is fixed by upstream kicad.
Comment 8 Larry the Git Cow gentoo-dev 2024-04-14 14:51:39 UTC
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(-)