Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 923351

Summary: sci-electronics/kicad-8.0.2 Version bump for opencascade-7.8.0 compatibility
Product: Gentoo Linux Reporter: jospezial <jospezial>
Component: Current packagesAssignee: Zoltan Puskas <zoltan>
Status: RESOLVED FIXED    
Severity: normal CC: andrewammerlaan, jospezial, kripton, negril.nx+gentoo, proxy-maint
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://gitlab.com/kicad/code/kicad/-/tags/8.0.2
See Also: https://bugs.gentoo.org/show_bug.cgi?id=923350
https://bugs.gentoo.org/show_bug.cgi?id=927590
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Don't use this! kicad opencascade-7.8.0 compatibility patch

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(-)
Comment 9 jospezial 2024-05-03 10:11:29 UTC
https://gitlab.com/kicad/code/kicad/-/tags/8.0.2
Version bump please.
Comment 10 Larry the Git Cow gentoo-dev 2024-05-03 12:51:31 UTC
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(-)