Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 468034 - [science overlay] dev-util/VampirTrace fails with USE=-cuda
Summary: [science overlay] dev-util/VampirTrace fails with USE=-cuda
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-30 16:52 UTC by James Cloos
Modified: 2014-07-14 10:30 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 James Cloos 2013-04-30 16:52:13 UTC
The ebuild inherits cuda even when USE=-cuda.

When there is a cuda-config in $PATH, that fails with:

>>> Preparing source in /var/tmp/portage/dev-util/VampirTrace-5.14.3/work/VampirTrace-5.14.3 ...
 * ERROR: dev-util/VampirTrace-5.14.3 failed (prepare phase):
 *   Could not determine supported gcc versions from cuda-config

When there is not, it fails with:

>>> Preparing source in /var/tmp/portage/dev-util/VampirTrace-5.14.3/work/VampirTrace-5.14.3 ...
/var/tmp/portage/dev-util/VampirTrace-5.14.3/temp/environment: line 636: cuda-config: command not found
 * Could not execute cuda-config
 * Make sure >=dev-util/nvidia-cuda-toolkit-4.2.9-r1 is installed
 * ERROR: dev-util/VampirTrace-5.14.3 failed (prepare phase):
 *   cuda-config not found

Given that the ebuild only depends on dev-util/nvidia-cuda-toolkit when USE=cuda, and cuda.eclass obviously requires dev-util/nvidia-cuda-toolkit,
the ebuild only should inheric cuda when USE=cuda.

(Or cuda.eclass should be fixed to be idenpotent when dev-util/nvidia-cuda-toolkit is not installed.)
Comment 1 Andreas Schäfer 2013-05-01 12:30:34 UTC
James-

thanks for reporting this bug. I hadn't caught it as all my boxes have the CUDA toolkit installed. I was able to reproduce the bug after unmerging it.

Fixed in https://github.com/gentoo-science/sci/pull/67/files

Best
-Andreas