Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 939175 - media-gfx/freecad-0.21.2-r3 missing SLOT dependency on vtk
Summary: media-gfx/freecad-0.21.2-r3 missing SLOT dependency on vtk
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Paul Zander
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-06 11:14 UTC by Esteve Varela Colominas
Modified: 2024-09-15 15:42 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Esteve Varela Colominas 2024-09-06 11:14:05 UTC
!!! existing preserved libs:                                                                                                                                                               
>>> package: sci-libs/vtk-9.3.0
 *  - /usr/lib64/libvtkCommonCore-9.2.so.1
 *  - /usr/lib64/libvtkCommonCore-9.2.so.9.2.5
 *      used by /usr/lib64/freecad/lib64/MeshPart.so (media-gfx/freecad-0.21.2-r3)
 *      used by /usr/lib64/freecad/lib64/libDriverDAT.so (media-gfx/freecad-0.21.2-r3)
 *      used by /usr/lib64/freecad/lib64/libDriverSTL.so (media-gfx/freecad-0.21.2-r3)
 *      used by 5 other files
 *  - /usr/lib64/libvtkCommonDataModel-9.2.so.1
 *  - /usr/lib64/libvtkCommonDataModel-9.2.so.9.2.5
 *      used by /usr/lib64/freecad/lib64/libSMDS.so (media-gfx/freecad-0.21.2-r3)
 *      used by /usr/lib64/freecad/lib64/libSMESH.so (media-gfx/freecad-0.21.2-r3)
 *  - /usr/lib64/libvtkCommonExecutionModel-9.2.so.1
 *  - /usr/lib64/libvtkCommonExecutionModel-9.2.so.9.2.5
 *  - /usr/lib64/libvtkCommonMath-9.2.so.1
 *  - /usr/lib64/libvtkCommonMath-9.2.so.9.2.5
 *  - /usr/lib64/libvtkCommonMisc-9.2.so.1
 *  - /usr/lib64/libvtkCommonMisc-9.2.so.9.2.5
 *  - /usr/lib64/libvtkCommonSystem-9.2.so.1
 *  - /usr/lib64/libvtkCommonSystem-9.2.so.9.2.5
 *  - /usr/lib64/libvtkCommonTransforms-9.2.so.1
 *  - /usr/lib64/libvtkCommonTransforms-9.2.so.9.2.5
 *  - /usr/lib64/libvtkFiltersVerdict-9.2.so.1
 *  - /usr/lib64/libvtkFiltersVerdict-9.2.so.9.2.5
 *      used by /usr/lib64/freecad/lib64/libSMESH.so (media-gfx/freecad-0.21.2-r3)
 *  - /usr/lib64/libvtkkissfft-9.2.so.1
 *  - /usr/lib64/libvtkkissfft-9.2.so.9.2.5
 *  - /usr/lib64/libvtkloguru-9.2.so.1
 *  - /usr/lib64/libvtkloguru-9.2.so.9.2.5
 *  - /usr/lib64/libvtksys-9.2.so.1
 *  - /usr/lib64/libvtksys-9.2.so.9.2.5
 *      used by /usr/lib64/freecad/lib64/MeshPart.so (media-gfx/freecad-0.21.2-r3)
 *      used by /usr/lib64/freecad/lib64/libDriverDAT.so (media-gfx/freecad-0.21.2-r3)
 *      used by /usr/lib64/freecad/lib64/libDriverSTL.so (media-gfx/freecad-0.21.2-r3)
 *      used by 5 other files
 *  - /usr/lib64/libvtkverdict-9.2.so.1
 *  - /usr/lib64/libvtkverdict-9.2.so.9.2.5
Use emerge @preserved-rebuild to rebuild packages using these libraries


$ emerge -pvq '=media-gfx/freecad-0.21.2-r3'
[ebuild   R   ] media-gfx/freecad-0.21.2-r3  USE="gui idf image material part-design points raytracing robot show surface techdraw tux -addonmgr -cloud -debug -designer -fem -inspection -netgen -openscad -path -pcl (-qt6) -test" PYTHON_SINGLE_TARGET="python3_11 -python3_10 -python3_12" 


sci-libs/vtk is pulled in by freecad directly when USE=fem is enabled, but is being linked in despite this flag. Freecad should either be prevented from directly linking with vtk if USE=fem is disabled, or vtk should become an unconditional dependency of freecad.
Comment 1 Chris Mayo 2024-09-07 16:52:34 UTC
As observed by OP, setting -DBUILD_SMESH=ON does need vtk:

CMake Error at cMake/FreeCAD_Helpers/SetupSalomeSMESH.cmake:34 (find_package):
  Could not find a package configuration file provided by "VTK" with any of
  the following names:

    VTKConfig.cmake
    vtk-config.cmake

(logged with freecad 1.0rc1)

Also may not need sci-libs/opencascade[vtk]

"Open CASCADE now relies on VTK" (this is not needed as FreeCAD uses VTK independently from OCC), FreeCAD does as well, we may need to create a VTK7 package first

https://forum.freecad.org/viewtopic.php?t=17501

1.0rc1 builds for me with sci-libs/opencascade[-vtk] and runs (not extensively tested).
Comment 2 Larry the Git Cow gentoo-dev 2024-09-15 15:42:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57b1623c4a6e23ad5fa73c44304665d2c0fb8d27

commit 57b1623c4a6e23ad5fa73c44304665d2c0fb8d27
Author:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
AuthorDate: 2024-09-15 15:38:15 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
CommitDate: 2024-09-15 15:42:15 +0000

    media-gfx/freecad: misc bug fixes, qt6 by default
    
    - fix issue where path with spaces is not properly passed on
    - add USE=smesh for smesh module, because it requires vtk
    - add missing rdep asciidoctor
    - add missing dep ms-gsl
    - qt6 by default for 1,0_rc1 (this rc fixes several qt6 issues)
    
    Bug: https://bugs.gentoo.org/933439
    Closes: https://bugs.gentoo.org/927660
    Closes: https://bugs.gentoo.org/939704
    Closes: https://bugs.gentoo.org/935303
    Closes: https://bugs.gentoo.org/939175
    Closes: https://bugs.gentoo.org/933821
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>

 ...ad-1.0_rc1.ebuild => freecad-1.0_rc1-r1.ebuild} | 22 +++++++++++--------
 media-gfx/freecad/freecad-9999.ebuild              | 25 ++++++++++++++--------
 media-gfx/freecad/metadata.xml                     |  3 +++
 3 files changed, 32 insertions(+), 18 deletions(-)