Summary: | sci-libs/vtk USE=video_cards_nvidia should depend on x11-drivers/nvidia-drivers[static-libs,tools] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Andreas Schäfer <gentryx> |
Component: | [OLD] Library | Assignee: | Gentoo Science Related Packages <sci> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | chris, gentoo, gokturk, jer, jfostiguy, lukas.schneiderbauer, samuellwn |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 562910 | ||
Attachments: |
vtk-6.1.0-r1.ebuild
ebuild with correct || (... ...) in RDEPEND nvidia-drivers-361.18-r3.ebuild |
Not a Java issue, removing us. Created attachment 424242 [details]
ebuild with correct || (... ...) in RDEPEND
vtk-6.1.0-r1.ebuild as attached earlier to this bug seems to use || (... ...) incorrectly in its RDEPEND variable. This ebuild fixes that issue.
It now correctly prefers x11-drivers/nvidia-drivers[tools] over media-video/nvidia-settings but either of both satisfies its dependencies.
Note that =x11-drivers/nvidia-drivers-361.18-r2 does not install libXNVCtrl.a which seems to be the reason for vtk to fail during configuration.
Created attachment 424244 [details]
nvidia-drivers-361.18-r3.ebuild
=x11-drivers/nvidia-drivers-361.18-r2 does not install libXNVCtrl.a which seems to be the reason for vtk to fail during configuration.
This ebuild installs as well libXNVCtrl.a, just as =media-video/nvidia-settings-358.16.ebuild does.
Here, configuration of vtk does not fail anymore even if nvidia-drivers[tools] is used to satisfy the RDEPENDS in "424242: ebuild with correct || (... ...) in RDEPEND".
For me the two last ebuilds together fix this bug.
Comment on attachment 424244 [details] nvidia-drivers-361.18-r3.ebuild >src_install() { [...] > if use tools; then [...] > use static-libs && \ > dolib.a "${S}"/nvidia-settings-${PV}/src/libXNVCtrl/libXNVCtrl.a > > insinto /usr/$(get_libdir) > doins "${S}"/nvidia-settings-${PV}/src/libXNVCtrl/libXNVCtrl.a So right underneath the lines where the static library is conditionally installed, you want to again install it, but unconditionally. > insinto /usr/include/NVCtrl > doins "${S}"/nvidia-settings-${PV}/src/libXNVCtrl/*.h In a newer ebuild, installing the header is also conditional on USE=static-libs. Shouldn't it be depending on x11-drivers/nvidia-drivers[tools,static-libs] ? =x11-drivers/nvidia-drivers-361.18-r4 installs libXNVCtrl if and only if tools AND static-libs are set as use-flags. Thus video_cards_nvidia? ( || ( x11-drivers/nvidia-drivers[tools,static-libs] media-video/nvidia-settings ) ) should be "the correct" dependency statement? *** Bug 581006 has been marked as a duplicate of this bug. *** Emerging x11-drivers/nvidia-drivers[tools,static-libs] and adding a version of media-video/nvidia-settings to packages.provided I can confirm that I am able to emerge VTK without issue. Also my reading over the ebuild also suggests that USE="tools static-libs" is require. *** Bug 582950 has been marked as a duplicate of this bug. *** [master 7532aa6] sci-libs/vtk: Allow nvidia-drivers usage (#563750) 1 file changed, 390 insertions(+) create mode 100644 sci-libs/vtk/vtk-6.1.0-r3.ebuild *** Bug 596552 has been marked as a duplicate of this bug. *** |
Created attachment 415138 [details] vtk-6.1.0-r1.ebuild NVIDIA tools are either available via the separate ebuild nvidia-settings, or via the use flag "tools" from the driver package. Users of the latter will see a conflict when installing VTK with "VIDEO_CARDS=nvidia". The attached, updated ebuild refines the dependency handling.