dev-libs/cudnn-7.0.5 simply asumes that the dev-utils/nvidia-cuda-toolkit to be installed is 9.1, but instead from simply checking on the cudnn page, we can see that the supported version of the cuda toolkit include 8.0 and 9.0 as well. If I wanted to use a prior version of the nvidia-cuda-toolkit wich I would have masked, I would be unable to install cudnn even though such a package exists. I don't know to much of ebuilds to propose edits to it but is it possible to create a ebuild that does that? If so, it should be done so users aren't forced to install a newer version of cuda toolkit to use cudnn.
There are other issues with the ebuild including the one you've identified: * It's method for generating the SRC_URI is too simple and breaks with newer versions of cudnn * The subslot is incomplete and could cause problems with newer versions I found your report while working on these and I'll try to have a fix for some (all?) of them soon.
(In reply to Daniel M. Weeks from comment #1) > There are other issues with the ebuild including the one you've identified: > > * It's method for generating the SRC_URI is too simple and breaks with newer > versions of cudnn > > * The subslot is incomplete and could cause problems with newer versions > > I found your report while working on these and I'll try to have a fix for > some (all?) of them soon. Glad to hear it!
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56fdc21add4251167a138aebf94bed493a5b2f90 commit 56fdc21add4251167a138aebf94bed493a5b2f90 Author: Benda Xu <heroxbd@gentoo.org> AuthorDate: 2020-02-20 08:37:45 +0000 Commit: Benda Xu <heroxbd@gentoo.org> CommitDate: 2020-02-21 08:13:09 +0000 dev-libs/cudnn: Introduce use flags for CUDA versions. Suggested-By: Amlesh Sivanantham, Daniel M. Weeks Closes: https://bugs.gentoo.org/658118 Package-Manager: Portage-2.3.88, Repoman-2.3.18 Signed-off-by: Benda Xu <heroxbd@gentoo.org> dev-libs/cudnn/Manifest | 1 + dev-libs/cudnn/cudnn-7.6.5.32-r1.ebuild | 36 +++++++++++++++++++++++++++++++++ dev-libs/cudnn/metadata.xml | 4 ++++ 3 files changed, 41 insertions(+)