Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 381281 - media-gfx/imagemagick 'opencl' flag has NVidia drivers dependency regardless to video card
Summary: media-gfx/imagemagick 'opencl' flag has NVidia drivers dependency regardless ...
Status: RESOLVED DUPLICATE of bug 322161
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-31 12:35 UTC by Sergii Parubochiy
Modified: 2012-01-23 22:56 UTC (History)
1 user (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 Sergii Parubochiy 2011-08-31 12:35:51 UTC
Emerging media-gfx/imagemagick with 'opencl' USE flag has NVidia drivers dependency regardless ATI video card.
(VIDEO_CARDS="fglrx")

Reproducible: Always

Steps to Reproduce:
1. USE="opencl" emerge imagemagick
Actual Results:  
has x11-drivers/nvidia-drivers ebuild in dependencies.

Expected Results:  
At least doesn`t have NVidia drivers hardcoded, or even depend on packages that correspond to videocard.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2011-10-10 22:04:00 UTC
The only provider for opencl in portage is nvidia-drivers afaik
but I've improved the logic in 6.7.3.0 now
Comment 2 Ben 2011-12-18 12:55:48 UTC
Please change ebuilds to this:

    opencl? ( video_cards_nvidia? ( 
        x11-drivers/nvidia-drivers 
        >=dev-util/nvidia-cuda-toolkit-3.1 
    ) )

And ati-drivers has opencl-libraries, too!! So this is NOT FIXED. :)
Comment 3 Aleister 2011-12-20 17:14:30 UTC
just a heads up the latest ati-drivers-11.12
1)do have a openCL flag
2) since ati started shipping their openCL implementation with their driver.
so you might want to change the ebuild logick to depend on either (with the openCL flag) of course
3) just a friendly notification that might hit in a large scale later when openCL gets more common.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2011-12-20 17:41:21 UTC
some issues:

- i don't have any box to test imagemagick with ati-drivers, only own boxes with nvidia-drivers and cards
- the "m4/ax_opencl.m4" macro from which imagemagicks's configure is generated looks NVidia specific, so upstream isn't likely testing it with ati-drivers either

so any change to the ebuild logic must come from the ati-drivers maintainers, who aren't listening this bug
Comment 5 SpanKY gentoo-dev 2011-12-20 18:58:44 UTC
(In reply to comment #2)

no.  the opencl stack has to get this fixed in common code so that ebuilds can start depending on that.  otherwise we get a broken build when we enable USE=opencl.  further, trying to do USE=opencl on a system that doesn't provide opencl binaries makes no sense.  so disable USE=opencl in your make.conf.

if pulling in nvidia packages drives home the point that USE=opencl only works with nvidia, then so be it.
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2012-01-23 22:56:02 UTC

*** This bug has been marked as a duplicate of bug 322161 ***