Summary: | sci-libs/opencascade-7.6.3 fails to build with vtk-9.2.2 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Andrew Nowa Ammerlaan <andrewammerlaan> |
Component: | Current packages | Assignee: | Bernd <waebbl-gentoo> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gentoo, herve.roussain, proxy-maint, tom |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Upstream patch |
Description
Andrew Nowa Ammerlaan
![]() The same problem occurs with OCC 7.7.0 and 7.5.3-r8. (In reply to Claus-Justus Heine from comment #1) > The same problem occurs with OCC 7.7.0 and 7.5.3-r8. ... and of course also on my side for version mentioned by Andrew, i.e. 7.6.3 I've worked around it for now by masking >=sci-libs/vtk-9.2, but this won't cut it for the long run. Even if upgrading opencascade beyond 7.6.3 worked with the newer vtk, the newer opencascade doesn't yet work with several packages I have installed (I think both FreeCAD and KiCad require <7.7). Hi, I think the issue is in src_configure() of the ebuild files for opencascade. It doesn't support the 9.2.x version of vtk: if use vtk; then if has_version ">=sci-libs/vtk-9.1.0"; then mycmakeargs+=( -D3RDPARTY_VTK_DIR="${ESYSROOT}"/usr -D3RDPARTY_VTK_INCLUDE_DIR="${ESYSROOT}"/usr/include/vtk-9.1 -D3RDPARTY_VTK_LIBRARY_DIR="${ESYSROOT}"/usr/$(get_libdir) ) elif has_version ">=sci-libs/vtk-9.0.0"; then mycmakeargs+=( -D3RDPARTY_VTK_DIR="${ESYSROOT}"/usr -D3RDPARTY_VTK_INCLUDE_DIR="${ESYSROOT}"/usr/include/vtk-9.0 -D3RDPARTY_VTK_LIBRARY_DIR="${ESYSROOT}"/usr/$(get_libdir) ) fi fi The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1c6afa07316c3b71e4a4c37637b69a351d49ac0 commit b1c6afa07316c3b71e4a4c37637b69a351d49ac0 Author: Andrew Ammerlaan <andrewammerlaan@gentoo.org> AuthorDate: 2022-12-13 13:30:34 +0000 Commit: Andrew Ammerlaan <andrewammerlaan@gentoo.org> CommitDate: 2022-12-13 13:36:52 +0000 sci-libs/opencascade: ensure vtk include dirs are found Closes: https://bugs.gentoo.org/885621 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org> sci-libs/opencascade/opencascade-7.5.2-r6.ebuild | 2 +- sci-libs/opencascade/opencascade-7.5.3-r8.ebuild | 2 +- sci-libs/opencascade/opencascade-7.6.3.ebuild | 2 +- sci-libs/opencascade/opencascade-7.7.0.ebuild | 10 ++++++++-- 4 files changed, 11 insertions(+), 5 deletions(-) > I think the issue is in src_configure() of the ebuild files for opencascade.
> It doesn't support the 9.2.x version of vtk:
Thanks, that was indeed the problem. However, after fixing this version 7.6.3 still does not compile with vtk-6.2.2, so I've had to restrict the dependency to <vtk-6.2.
Thanks for looking into this Andrew. I'm sorry I didn't had the time yet to check the bug. v7.6.3 war released far before vtk-9.2. I don't think we should try to make it work with the new version. Created attachment 842635 [details, diff] Upstream patch For the record: Upstream tracker: https://tracker.dev.opencascade.org/view.php?id=33164&nbn=2 Merged commit: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=commit;h=7f523af8e8a63ee17d8fc26f107c191cd51dcd44 The patch there is actually quite small - I attach it. |