Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 563750 - sci-libs/vtk USE=video_cards_nvidia should depend on x11-drivers/nvidia-drivers[static-libs,tools]
Summary: sci-libs/vtk USE=video_cards_nvidia should depend on x11-drivers/nvidia-drive...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
: 581006 582950 596552 (view as bug list)
Depends on:
Blocks: nvidia-settings_deprecation
  Show dependency tree
 
Reported: 2015-10-22 06:07 UTC by Andreas Schäfer
Modified: 2016-10-15 18:39 UTC (History)
7 users (show)

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


Attachments
vtk-6.1.0-r1.ebuild (vtk-6.1.0-r1.ebuild,10.21 KB, text/plain)
2015-10-22 06:07 UTC, Andreas Schäfer
Details
ebuild with correct || (... ...) in RDEPEND (vtk-6.1.0-r2.ebuild,10.20 KB, text/plain)
2016-01-30 11:50 UTC, bugtrack
Details
nvidia-drivers-361.18-r3.ebuild (nvidia-drivers-361.18-r3.ebuild,14.73 KB, text/plain)
2016-01-30 11:54 UTC, bugtrack
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schäfer 2015-10-22 06:07:42 UTC
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.
Comment 1 James Le Cuirot gentoo-dev 2015-10-23 16:02:37 UTC
Not a Java issue, removing us.
Comment 2 bugtrack 2016-01-30 11:50:15 UTC
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.
Comment 3 bugtrack 2016-01-30 11:54:24 UTC
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 4 Jeroen Roovers (RETIRED) gentoo-dev 2016-01-31 10:16:55 UTC
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.
Comment 5 bugtrack 2016-02-01 08:26:13 UTC
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?
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2016-04-24 08:23:24 UTC
*** Bug 581006 has been marked as a duplicate of this bug. ***
Comment 7 Freddie Witherden 2016-05-11 13:50:30 UTC
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.
Comment 8 Pacho Ramos gentoo-dev 2016-05-23 14:32:37 UTC
*** Bug 582950 has been marked as a duplicate of this bug. ***
Comment 9 Pacho Ramos gentoo-dev 2016-08-21 17:40:05 UTC
[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
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2016-10-15 18:39:57 UTC
*** Bug 596552 has been marked as a duplicate of this bug. ***