1 |
commit: e93bffad510cb98f11fb9a1e49051b0e7d1fe89f |
2 |
Author: Guilherme Amadio <amadio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 29 08:46:33 2021 +0000 |
4 |
Commit: Guilherme Amadio <amadio <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 29 08:46:33 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e93bffad |
7 |
|
8 |
dev-util/nvidia-cuda-toolkit: drop old |
9 |
|
10 |
CUDA 8 needs at most GCC 5.x, while the tree has only 6.5 and above. |
11 |
|
12 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
13 |
Signed-off-by: Guilherme Amadio <amadio <AT> gentoo.org> |
14 |
|
15 |
dev-util/nvidia-cuda-toolkit/Manifest | 1 - |
16 |
.../nvidia-cuda-toolkit-8.0.61-r1.ebuild | 139 --------------------- |
17 |
2 files changed, 140 deletions(-) |
18 |
|
19 |
diff --git a/dev-util/nvidia-cuda-toolkit/Manifest b/dev-util/nvidia-cuda-toolkit/Manifest |
20 |
index d9efd1af95a..8a4ad6bc0f4 100644 |
21 |
--- a/dev-util/nvidia-cuda-toolkit/Manifest |
22 |
+++ b/dev-util/nvidia-cuda-toolkit/Manifest |
23 |
@@ -3,5 +3,4 @@ DIST cuda_11.1.1_455.32.00_linux.run 3532172082 BLAKE2B f4af6bd87c419c002b4913ea |
24 |
DIST cuda_11.2.0_460.27.04_linux.run 3046790184 BLAKE2B 5330bc2e12ff131eb993610c95b22e6358b11d6a7a952625a4e88ed856769256c02e165ac7bf6cc43236052c8427cee17bf1e7346995dc2eba84d93c5d444eb3 SHA512 0aa7390490b93be7f359327a8fe364a44b538e742c7ccd560e9bbb40ed8613539c37fcb4aa71a2fbfa0bfdb0416ab43bbdcc09cd0c81db3f1a07b37318d6b2b3 |
25 |
DIST cuda_11.2.2_460.32.03_linux.run 3057439068 BLAKE2B c3f3cd9eaaa4f91eb8080e7cafe1280f9bbc9cfc71ce1a6115af1dd348b83d30eed945609bf87e00d4873bede1fa9136fc4a7f393fd31db4e6406dc76086bc22 SHA512 e28d7d2eabd96df9e18f8e55f61adda39b07c2223605f77a6c2d92a02f7b57e9ce8b83d4b4de1124faa5670509d204d3db70c03b18af5cc5964b6ed6653d6a22 |
26 |
DIST cuda_11.3.0_465.19.01_linux.run 3029622552 BLAKE2B ca64af09dc68b085a589b5756e3bfce72550e262b778aad06eb1f5b77d9cb30447fb8b57f5f6c3d210b49cd300e0db153c5eec1d51384b6889855a076ee62d07 SHA512 3120455e9513f62f82108539c5a4ccb4e9aa64beb66f816644e559bb8b573ff582c865c6a346ca39c6afb775c0c5fd567f5d31f0a0c5b927d6be849cd2905749 |
27 |
-DIST cuda_8.0.61_375.26_linux.run 1465528129 BLAKE2B d52ddf1dcf5246f230f210d10d1f6e7b540c892dea5a8cd770f0d062b30b01f5c8467d930430b383464d40a9b4a14eaaf22a365e081955e4452ec4f55e08da0b SHA512 d22303719a9feff64f95bf6a966f1caa2bf0cf8c955e475ce08ce54faa5e098d336c2db223ef0185c1f23b9c52b7d2f81a63515485219cfc016d72bda979248b |
28 |
DIST cuda_9.2.88_396.26_linux.run 1758421686 BLAKE2B 5068b2dfae87e43c124a6a72ac98b7c562aebc7161e7c977cfba68342127e99705228be531aa5bb8af0318e17c4ef8fe36257452d0f507fc3b82e3fbd0184bdc SHA512 2d0d87926e11a1b21d6d3377138753df458a53ba9539d8399f9f252e0784cb41e2c63a5c724ca81ded82b9657b97fda51d812b467b0827e7d361aa2ad73b2dba |
29 |
|
30 |
diff --git a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-8.0.61-r1.ebuild b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-8.0.61-r1.ebuild |
31 |
deleted file mode 100644 |
32 |
index 2852a9357e3..00000000000 |
33 |
--- a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-8.0.61-r1.ebuild |
34 |
+++ /dev/null |
35 |
@@ -1,139 +0,0 @@ |
36 |
-# Copyright 1999-2021 Gentoo Authors |
37 |
-# Distributed under the terms of the GNU General Public License v2 |
38 |
- |
39 |
-EAPI=6 |
40 |
- |
41 |
-inherit check-reqs cuda eutils toolchain-funcs unpacker versionator |
42 |
- |
43 |
-MYD=$(get_version_component_range 1-2) |
44 |
-DRIVER_PV="375.26" |
45 |
- |
46 |
-DESCRIPTION="NVIDIA CUDA Toolkit (compiler and friends)" |
47 |
-HOMEPAGE="https://developer.nvidia.com/cuda-zone" |
48 |
-SRC_URI="https://developer.nvidia.com/compute/cuda/${MYD}/Prod2/local_installers/cuda_${PV}_${DRIVER_PV}_linux-run -> cuda_${PV}_${DRIVER_PV}_linux.run" |
49 |
- |
50 |
-LICENSE="NVIDIA-CUDA" |
51 |
-SLOT="0/${PV}" |
52 |
-KEYWORDS="-* ~amd64 ~amd64-linux" |
53 |
-IUSE="debugger doc eclipse profiler" |
54 |
-RESTRICT="bindist mirror" |
55 |
- |
56 |
-DEPEND="" |
57 |
-RDEPEND="${DEPEND} |
58 |
- >=sys-devel/gcc-4.7[cxx] |
59 |
- <sys-devel/gcc-6[cxx] |
60 |
- >=x11-drivers/nvidia-drivers-${DRIVER_PV} |
61 |
- debugger? ( |
62 |
- sys-libs/libtermcap-compat |
63 |
- sys-libs/ncurses-compat:5[tinfo] |
64 |
- ) |
65 |
- eclipse? ( virtual/jre ) |
66 |
- profiler? ( virtual/jre )" |
67 |
- |
68 |
-S="${WORKDIR}" |
69 |
- |
70 |
-QA_PREBUILT="opt/cuda/*" |
71 |
- |
72 |
-CHECKREQS_DISK_BUILD="3500M" |
73 |
- |
74 |
-pkg_setup() { |
75 |
- # We don't like to run cuda_pkg_setup as it depends on us |
76 |
- check-reqs_pkg_setup |
77 |
-} |
78 |
- |
79 |
-src_unpack() { |
80 |
- unpacker |
81 |
- unpacker run_files/cuda-linux*.run |
82 |
-} |
83 |
- |
84 |
-src_prepare() { |
85 |
- local cuda_supported_gcc |
86 |
- |
87 |
- # ATTENTION: change requires revbump |
88 |
- cuda_supported_gcc="4.7 4.8 4.9 5.3 5.4" |
89 |
- |
90 |
- sed \ |
91 |
- -e "s:CUDA_SUPPORTED_GCC:${cuda_supported_gcc}:g" \ |
92 |
- "${FILESDIR}"/cuda-config.in > "${T}"/cuda-config || die |
93 |
- |
94 |
- default |
95 |
-} |
96 |
- |
97 |
-src_install() { |
98 |
- local i remove=( doc jre run_files install-linux.pl cuda-installer.pl ) |
99 |
- local cudadir=/opt/cuda |
100 |
- local ecudadir="${EPREFIX}${cudadir}" |
101 |
- |
102 |
- if use doc; then |
103 |
- DOCS+=( doc/pdf/. ) |
104 |
- HTML_DOCS+=( doc/html/. ) |
105 |
- fi |
106 |
- einstalldocs |
107 |
- |
108 |
- mv doc/man/man3/{,cuda-}deprecated.3 || die |
109 |
- doman doc/man/man*/* |
110 |
- |
111 |
- use debugger || remove+=( bin/cuda-gdb extras/Debugger extras/cuda-gdb-${PV}.src.tar.gz ) |
112 |
- |
113 |
- if use profiler; then |
114 |
- # hack found in install-linux.pl |
115 |
- for i in nvvp nsight; do |
116 |
- cat > bin/${i} <<- EOF || die |
117 |
- #!/usr/bin/env sh |
118 |
- LD_LIBRARY_PATH=\${LD_LIBRARY_PATH}:${ecudadir}/lib:${ecudadir}/lib64 \ |
119 |
- UBUNTU_MENUPROXY=0 LIBOVERLAY_SCROLLBAR=0 \ |
120 |
- ${ecudadir}/lib${i}/${i} -vm ${EPREFIX}/usr/bin/java |
121 |
- EOF |
122 |
- chmod a+x bin/${i} || die |
123 |
- done |
124 |
- else |
125 |
- use eclipse || remove+=( libnvvp libnsight ) |
126 |
- remove+=( extras/CUPTI ) |
127 |
- fi |
128 |
- |
129 |
- for i in "${remove[@]}"; do |
130 |
- ebegin "Cleaning ${i}..." |
131 |
- rm -rf "${i}" || die |
132 |
- eend |
133 |
- done |
134 |
- |
135 |
- dodir ${cudadir} |
136 |
- mv * "${ED%/}${cudadir}" || die |
137 |
- |
138 |
- cat > "${T}"/99cuda <<- EOF || die |
139 |
- PATH=${ecudadir}/bin$(usex profiler ":${ecudadir}/libnvvp" "") |
140 |
- ROOTPATH=${ecudadir}/bin |
141 |
- LDPATH=${ecudadir}/lib64:${ecudadir}/lib:${ecudadir}/nvvm/lib64 |
142 |
- EOF |
143 |
- doenvd "${T}"/99cuda |
144 |
- |
145 |
- use profiler && \ |
146 |
- make_wrapper nvprof "${ecudadir}/bin/nvprof" "." "${ecudadir}/lib64:${ecudadir}/lib" |
147 |
- |
148 |
- dobin "${T}"/cuda-config |
149 |
-} |
150 |
- |
151 |
-pkg_postinst_check() { |
152 |
- local a b |
153 |
- a="$(version_sort $(cuda-config -s))"; a=( $a ) |
154 |
- # greatest supported version |
155 |
- b="${a[${#a[@]}-1]}" |
156 |
- |
157 |
- # if gcc and if not gcc-version is at least greatest supported |
158 |
- if tc-is-gcc && \ |
159 |
- ! version_is_at_least gcc-version ${b}; then |
160 |
- ewarn "" |
161 |
- ewarn "gcc >= ${b} will not work with CUDA" |
162 |
- ewarn "Make sure you set an earlier version of gcc with gcc-config" |
163 |
- ewarn "or append --compiler-bindir= pointing to a gcc bindir like" |
164 |
- ewarn "--compiler-bindir=${EPREFIX}/usr/*pc-linux-gnu/gcc-bin/gcc${b}" |
165 |
- ewarn "to the nvcc compiler flags" |
166 |
- ewarn "" |
167 |
- fi |
168 |
-} |
169 |
- |
170 |
-pkg_postinst() { |
171 |
- if [[ ${MERGE_TYPE} != binary ]]; then |
172 |
- pkg_postinst_check |
173 |
- fi |
174 |
-} |