1 |
commit: bfbf5dfcb9361e5f6e339af3c8190055d7fbe068 |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 24 19:48:53 2021 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 24 19:50:22 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bfbf5dfc |
7 |
|
8 |
dev-lang/go: remove old |
9 |
|
10 |
Bug: https://bugs.gentoo.org/788640 |
11 |
Signed-off-by: William Hubbs <williamh <AT> gentoo.org> |
12 |
|
13 |
dev-lang/go/Manifest | 2 - |
14 |
dev-lang/go/go-1.15.10.ebuild | 189 ------------------------------------------ |
15 |
dev-lang/go/go-1.16.2.ebuild | 189 ------------------------------------------ |
16 |
3 files changed, 380 deletions(-) |
17 |
|
18 |
diff --git a/dev-lang/go/Manifest b/dev-lang/go/Manifest |
19 |
index 245bcee5c10..e96b3c5d9c4 100644 |
20 |
--- a/dev-lang/go/Manifest |
21 |
+++ b/dev-lang/go/Manifest |
22 |
@@ -1,4 +1,2 @@ |
23 |
-DIST go1.15.10.src.tar.gz 23021993 BLAKE2B 8143f7703d07d4793521bbb6b935b87ecd87df451cc5d03370a01bddabc284e85ec94a16fed378ee9ac8e3f0d6999402025bb1d6afa3c1810c6343205c4eb2d4 SHA512 4f0ceff8dc035ec50cd0d136678573f4d624bca6a19293d5ffd75868d94d264291e44519bc450e40e8de486ee44d720555550eecf86cbae1f0d64dee00f90764 |
24 |
DIST go1.15.12.src.tar.gz 23035406 BLAKE2B b5c79bb243b0052e7a3d58538ae734bbb38839654ffc0e1cf266d360c4f35ac1a8b02c999306a0c1bc598d6ec0c9b3326fea278163b49cd7becc820c7a129bd4 SHA512 9fdb0e74c0b4e8e5d8d45cbdb6f1d4be4d40549ef10629350856c3e045a82567a0418e949dfc229df7eea091ababec6b3e4e12b1bd424e14d7b10ef989e5c232 |
25 |
-DIST go1.16.2.src.tar.gz 20905135 BLAKE2B 35fccc72604bf8cc7b1b5677d995b88e3232559e32af51f96a63bfc8cabecec09d885b5b8aa4b2ba03c481254da20dbf9bd83387091931c08a1c5c180c071931 SHA512 d14858a75cc7411975aaca705e66145287dc96b4fac1b1b06b95377dc5e5d2762f060973744114f42c780b34ea4baef7038c94616649c2dcc5c97e261cefc6bd |
26 |
DIST go1.16.4.src.tar.gz 20917203 BLAKE2B 4602a20ced74dba86938283a736d5235fe5dfb34ae742c44cdcd7ae2453d4654ea5757d0be76b6687d1d34c1b8c32681c41398d1a04ae72d491ee1d8b296d16d SHA512 e1b64610e22e657d9c65094e679cec50f59ff338c0ef102e54debcced1bc032390122456451fffb2d26d45c6db2f55bb9ef7f56ce479f6f1c2c2e6cc49442d86 |
27 |
|
28 |
diff --git a/dev-lang/go/go-1.15.10.ebuild b/dev-lang/go/go-1.15.10.ebuild |
29 |
deleted file mode 100644 |
30 |
index 0d4ac09e890..00000000000 |
31 |
--- a/dev-lang/go/go-1.15.10.ebuild |
32 |
+++ /dev/null |
33 |
@@ -1,189 +0,0 @@ |
34 |
-# Copyright 1999-2021 Gentoo Authors |
35 |
-# Distributed under the terms of the GNU General Public License v2 |
36 |
- |
37 |
-EAPI=7 |
38 |
- |
39 |
-export CBUILD=${CBUILD:-${CHOST}} |
40 |
-export CTARGET=${CTARGET:-${CHOST}} |
41 |
- |
42 |
-MY_PV=${PV/_/} |
43 |
- |
44 |
-inherit toolchain-funcs |
45 |
- |
46 |
-case ${PV} in |
47 |
-*9999*) |
48 |
- EGIT_REPO_URI="https://github.com/golang/go.git" |
49 |
- inherit git-r3 |
50 |
- ;; |
51 |
-*) |
52 |
- SRC_URI="https://storage.googleapis.com/golang/go${MY_PV}.src.tar.gz " |
53 |
- S="${WORKDIR}"/go |
54 |
- case ${PV} in |
55 |
- *_beta*|*_rc*) ;; |
56 |
- *) |
57 |
- KEYWORDS="-* amd64 arm arm64 ppc64 ~s390 x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris" |
58 |
- ;; |
59 |
- esac |
60 |
-esac |
61 |
- |
62 |
-DESCRIPTION="A concurrent garbage collected and typesafe programming language" |
63 |
-HOMEPAGE="https://golang.org" |
64 |
- |
65 |
-LICENSE="BSD" |
66 |
-SLOT="0/${PV}" |
67 |
- |
68 |
-BDEPEND="|| ( |
69 |
- dev-lang/go |
70 |
- dev-lang/go-bootstrap )" |
71 |
-RDEPEND="!<dev-go/go-tools-0_pre20150902" |
72 |
- |
73 |
-# Do not complain about CFLAGS, etc, since Go doesn't use them. |
74 |
-QA_FLAGS_IGNORED='.*' |
75 |
- |
76 |
-# The tools in /usr/lib/go should not cause the multilib-strict check to fail. |
77 |
-QA_MULTILIB_PATHS="usr/lib/go/pkg/tool/.*/.*" |
78 |
- |
79 |
-# Do not strip this package. Stripping is unsupported upstream and may |
80 |
-# fail. |
81 |
-RESTRICT+=" strip" |
82 |
- |
83 |
-DOCS=( |
84 |
-AUTHORS |
85 |
-CONTRIBUTING.md |
86 |
-CONTRIBUTORS |
87 |
-PATENTS |
88 |
-README.md |
89 |
-) |
90 |
- |
91 |
-go_arch() { |
92 |
- # By chance most portage arch names match Go |
93 |
- local portage_arch=$(tc-arch $@) |
94 |
- case "${portage_arch}" in |
95 |
- x86) echo 386;; |
96 |
- x64-*) echo amd64;; |
97 |
- ppc64) [[ $(tc-endian $@) = big ]] && echo ppc64 || echo ppc64le ;; |
98 |
- s390) echo s390x ;; |
99 |
- *) echo "${portage_arch}";; |
100 |
- esac |
101 |
-} |
102 |
- |
103 |
-go_arm() { |
104 |
- case "${1:-${CHOST}}" in |
105 |
- armv5*) echo 5;; |
106 |
- armv6*) echo 6;; |
107 |
- armv7*) echo 7;; |
108 |
- *) |
109 |
- die "unknown GOARM for ${1:-${CHOST}}" |
110 |
- ;; |
111 |
- esac |
112 |
-} |
113 |
- |
114 |
-go_os() { |
115 |
- case "${1:-${CHOST}}" in |
116 |
- *-linux*) echo linux;; |
117 |
- *-darwin*) echo darwin;; |
118 |
- *-freebsd*) echo freebsd;; |
119 |
- *-netbsd*) echo netbsd;; |
120 |
- *-openbsd*) echo openbsd;; |
121 |
- *-solaris*) echo solaris;; |
122 |
- *-cygwin*|*-interix*|*-winnt*) |
123 |
- echo windows |
124 |
- ;; |
125 |
- *) |
126 |
- die "unknown GOOS for ${1:-${CHOST}}" |
127 |
- ;; |
128 |
- esac |
129 |
-} |
130 |
- |
131 |
-go_tuple() { |
132 |
- echo "$(go_os $@)_$(go_arch $@)" |
133 |
-} |
134 |
- |
135 |
-go_cross_compile() { |
136 |
- [[ $(go_tuple ${CBUILD}) != $(go_tuple) ]] |
137 |
-} |
138 |
- |
139 |
-src_compile() { |
140 |
- if has_version -b dev-lang/go; then |
141 |
- export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go" |
142 |
- elif has_version -b dev-lang/go-bootstrap; then |
143 |
- export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go-bootstrap" |
144 |
- else |
145 |
- eerror "Go cannot be built without go or go-bootstrap installed" |
146 |
- die "Should not be here, please report a bug" |
147 |
- fi |
148 |
- |
149 |
- export GOROOT_FINAL="${EPREFIX}"/usr/lib/go |
150 |
- export GOROOT="$(pwd)" |
151 |
- export GOBIN="${GOROOT}/bin" |
152 |
- |
153 |
- # Go's build script does not use BUILD/HOST/TARGET consistently. :( |
154 |
- export GOHOSTARCH=$(go_arch ${CBUILD}) |
155 |
- export GOHOSTOS=$(go_os ${CBUILD}) |
156 |
- export CC=$(tc-getBUILD_CC) |
157 |
- |
158 |
- export GOARCH=$(go_arch) |
159 |
- export GOOS=$(go_os) |
160 |
- export CC_FOR_TARGET=$(tc-getCC) |
161 |
- export CXX_FOR_TARGET=$(tc-getCXX) |
162 |
- if [[ ${ARCH} == arm ]]; then |
163 |
- export GOARM=$(go_arm) |
164 |
- fi |
165 |
- |
166 |
- cd src |
167 |
- bash -x ./make.bash || die "build failed" |
168 |
-} |
169 |
- |
170 |
-src_test() { |
171 |
- go_cross_compile && return 0 |
172 |
- |
173 |
- cd src |
174 |
- PATH="${GOBIN}:${PATH}" \ |
175 |
- ./run.bash -no-rebuild || die "tests failed" |
176 |
- cd .. |
177 |
- rm -fr pkg/*_race || die |
178 |
- rm -fr pkg/obj/go-build || die |
179 |
-} |
180 |
- |
181 |
-src_install() { |
182 |
- # There is a known issue which requires the source tree to be installed [1]. |
183 |
- # Once this is fixed, we can consider using the doc use flag to control |
184 |
- # installing the doc and src directories. |
185 |
- # The use of cp is deliberate in order to retain permissions |
186 |
- # [1] https://golang.org/issue/2775 |
187 |
- dodir /usr/lib/go |
188 |
- cp -R api bin doc lib pkg misc src test "${ED}"/usr/lib/go |
189 |
- einstalldocs |
190 |
- |
191 |
- # testdata directories are not needed on the installed system |
192 |
- rm -fr $(find "${ED}"/usr/lib/go -iname testdata -type d -print) |
193 |
- |
194 |
- local bin_path |
195 |
- if go_cross_compile; then |
196 |
- bin_path="bin/$(go_tuple)" |
197 |
- else |
198 |
- bin_path=bin |
199 |
- fi |
200 |
- local f x |
201 |
- for x in ${bin_path}/*; do |
202 |
- f=${x##*/} |
203 |
- dosym ../lib/go/${bin_path}/${f} /usr/bin/${f} |
204 |
- done |
205 |
- |
206 |
- # install the @golang-rebuild set for Portage |
207 |
- insinto /usr/share/portage/config/sets |
208 |
- newins "${FILESDIR}"/go-sets.conf go.conf |
209 |
-} |
210 |
- |
211 |
-pkg_postinst() { |
212 |
- [[ -z ${REPLACING_VERSIONS} ]] && return |
213 |
- einfo "After ${CATEGORY}/${PN} is updated it is recommended to rebuild" |
214 |
- einfo "all packages compiled with previous versions of ${CATEGORY}/${PN}" |
215 |
- einfo "due to the static linking nature of go." |
216 |
- einfo "If this is not done, the packages compiled with the older" |
217 |
- einfo "version of the compiler will not be updated until they are" |
218 |
- einfo "updated individually, which could mean they will have" |
219 |
- einfo "vulnerabilities." |
220 |
- einfo "Run 'emerge @golang-rebuild' to rebuild all 'go' packages" |
221 |
- einfo "See https://bugs.gentoo.org/752153 for more info" |
222 |
-} |
223 |
|
224 |
diff --git a/dev-lang/go/go-1.16.2.ebuild b/dev-lang/go/go-1.16.2.ebuild |
225 |
deleted file mode 100644 |
226 |
index 0d4ac09e890..00000000000 |
227 |
--- a/dev-lang/go/go-1.16.2.ebuild |
228 |
+++ /dev/null |
229 |
@@ -1,189 +0,0 @@ |
230 |
-# Copyright 1999-2021 Gentoo Authors |
231 |
-# Distributed under the terms of the GNU General Public License v2 |
232 |
- |
233 |
-EAPI=7 |
234 |
- |
235 |
-export CBUILD=${CBUILD:-${CHOST}} |
236 |
-export CTARGET=${CTARGET:-${CHOST}} |
237 |
- |
238 |
-MY_PV=${PV/_/} |
239 |
- |
240 |
-inherit toolchain-funcs |
241 |
- |
242 |
-case ${PV} in |
243 |
-*9999*) |
244 |
- EGIT_REPO_URI="https://github.com/golang/go.git" |
245 |
- inherit git-r3 |
246 |
- ;; |
247 |
-*) |
248 |
- SRC_URI="https://storage.googleapis.com/golang/go${MY_PV}.src.tar.gz " |
249 |
- S="${WORKDIR}"/go |
250 |
- case ${PV} in |
251 |
- *_beta*|*_rc*) ;; |
252 |
- *) |
253 |
- KEYWORDS="-* amd64 arm arm64 ppc64 ~s390 x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris" |
254 |
- ;; |
255 |
- esac |
256 |
-esac |
257 |
- |
258 |
-DESCRIPTION="A concurrent garbage collected and typesafe programming language" |
259 |
-HOMEPAGE="https://golang.org" |
260 |
- |
261 |
-LICENSE="BSD" |
262 |
-SLOT="0/${PV}" |
263 |
- |
264 |
-BDEPEND="|| ( |
265 |
- dev-lang/go |
266 |
- dev-lang/go-bootstrap )" |
267 |
-RDEPEND="!<dev-go/go-tools-0_pre20150902" |
268 |
- |
269 |
-# Do not complain about CFLAGS, etc, since Go doesn't use them. |
270 |
-QA_FLAGS_IGNORED='.*' |
271 |
- |
272 |
-# The tools in /usr/lib/go should not cause the multilib-strict check to fail. |
273 |
-QA_MULTILIB_PATHS="usr/lib/go/pkg/tool/.*/.*" |
274 |
- |
275 |
-# Do not strip this package. Stripping is unsupported upstream and may |
276 |
-# fail. |
277 |
-RESTRICT+=" strip" |
278 |
- |
279 |
-DOCS=( |
280 |
-AUTHORS |
281 |
-CONTRIBUTING.md |
282 |
-CONTRIBUTORS |
283 |
-PATENTS |
284 |
-README.md |
285 |
-) |
286 |
- |
287 |
-go_arch() { |
288 |
- # By chance most portage arch names match Go |
289 |
- local portage_arch=$(tc-arch $@) |
290 |
- case "${portage_arch}" in |
291 |
- x86) echo 386;; |
292 |
- x64-*) echo amd64;; |
293 |
- ppc64) [[ $(tc-endian $@) = big ]] && echo ppc64 || echo ppc64le ;; |
294 |
- s390) echo s390x ;; |
295 |
- *) echo "${portage_arch}";; |
296 |
- esac |
297 |
-} |
298 |
- |
299 |
-go_arm() { |
300 |
- case "${1:-${CHOST}}" in |
301 |
- armv5*) echo 5;; |
302 |
- armv6*) echo 6;; |
303 |
- armv7*) echo 7;; |
304 |
- *) |
305 |
- die "unknown GOARM for ${1:-${CHOST}}" |
306 |
- ;; |
307 |
- esac |
308 |
-} |
309 |
- |
310 |
-go_os() { |
311 |
- case "${1:-${CHOST}}" in |
312 |
- *-linux*) echo linux;; |
313 |
- *-darwin*) echo darwin;; |
314 |
- *-freebsd*) echo freebsd;; |
315 |
- *-netbsd*) echo netbsd;; |
316 |
- *-openbsd*) echo openbsd;; |
317 |
- *-solaris*) echo solaris;; |
318 |
- *-cygwin*|*-interix*|*-winnt*) |
319 |
- echo windows |
320 |
- ;; |
321 |
- *) |
322 |
- die "unknown GOOS for ${1:-${CHOST}}" |
323 |
- ;; |
324 |
- esac |
325 |
-} |
326 |
- |
327 |
-go_tuple() { |
328 |
- echo "$(go_os $@)_$(go_arch $@)" |
329 |
-} |
330 |
- |
331 |
-go_cross_compile() { |
332 |
- [[ $(go_tuple ${CBUILD}) != $(go_tuple) ]] |
333 |
-} |
334 |
- |
335 |
-src_compile() { |
336 |
- if has_version -b dev-lang/go; then |
337 |
- export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go" |
338 |
- elif has_version -b dev-lang/go-bootstrap; then |
339 |
- export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go-bootstrap" |
340 |
- else |
341 |
- eerror "Go cannot be built without go or go-bootstrap installed" |
342 |
- die "Should not be here, please report a bug" |
343 |
- fi |
344 |
- |
345 |
- export GOROOT_FINAL="${EPREFIX}"/usr/lib/go |
346 |
- export GOROOT="$(pwd)" |
347 |
- export GOBIN="${GOROOT}/bin" |
348 |
- |
349 |
- # Go's build script does not use BUILD/HOST/TARGET consistently. :( |
350 |
- export GOHOSTARCH=$(go_arch ${CBUILD}) |
351 |
- export GOHOSTOS=$(go_os ${CBUILD}) |
352 |
- export CC=$(tc-getBUILD_CC) |
353 |
- |
354 |
- export GOARCH=$(go_arch) |
355 |
- export GOOS=$(go_os) |
356 |
- export CC_FOR_TARGET=$(tc-getCC) |
357 |
- export CXX_FOR_TARGET=$(tc-getCXX) |
358 |
- if [[ ${ARCH} == arm ]]; then |
359 |
- export GOARM=$(go_arm) |
360 |
- fi |
361 |
- |
362 |
- cd src |
363 |
- bash -x ./make.bash || die "build failed" |
364 |
-} |
365 |
- |
366 |
-src_test() { |
367 |
- go_cross_compile && return 0 |
368 |
- |
369 |
- cd src |
370 |
- PATH="${GOBIN}:${PATH}" \ |
371 |
- ./run.bash -no-rebuild || die "tests failed" |
372 |
- cd .. |
373 |
- rm -fr pkg/*_race || die |
374 |
- rm -fr pkg/obj/go-build || die |
375 |
-} |
376 |
- |
377 |
-src_install() { |
378 |
- # There is a known issue which requires the source tree to be installed [1]. |
379 |
- # Once this is fixed, we can consider using the doc use flag to control |
380 |
- # installing the doc and src directories. |
381 |
- # The use of cp is deliberate in order to retain permissions |
382 |
- # [1] https://golang.org/issue/2775 |
383 |
- dodir /usr/lib/go |
384 |
- cp -R api bin doc lib pkg misc src test "${ED}"/usr/lib/go |
385 |
- einstalldocs |
386 |
- |
387 |
- # testdata directories are not needed on the installed system |
388 |
- rm -fr $(find "${ED}"/usr/lib/go -iname testdata -type d -print) |
389 |
- |
390 |
- local bin_path |
391 |
- if go_cross_compile; then |
392 |
- bin_path="bin/$(go_tuple)" |
393 |
- else |
394 |
- bin_path=bin |
395 |
- fi |
396 |
- local f x |
397 |
- for x in ${bin_path}/*; do |
398 |
- f=${x##*/} |
399 |
- dosym ../lib/go/${bin_path}/${f} /usr/bin/${f} |
400 |
- done |
401 |
- |
402 |
- # install the @golang-rebuild set for Portage |
403 |
- insinto /usr/share/portage/config/sets |
404 |
- newins "${FILESDIR}"/go-sets.conf go.conf |
405 |
-} |
406 |
- |
407 |
-pkg_postinst() { |
408 |
- [[ -z ${REPLACING_VERSIONS} ]] && return |
409 |
- einfo "After ${CATEGORY}/${PN} is updated it is recommended to rebuild" |
410 |
- einfo "all packages compiled with previous versions of ${CATEGORY}/${PN}" |
411 |
- einfo "due to the static linking nature of go." |
412 |
- einfo "If this is not done, the packages compiled with the older" |
413 |
- einfo "version of the compiler will not be updated until they are" |
414 |
- einfo "updated individually, which could mean they will have" |
415 |
- einfo "vulnerabilities." |
416 |
- einfo "Run 'emerge @golang-rebuild' to rebuild all 'go' packages" |
417 |
- einfo "See https://bugs.gentoo.org/752153 for more info" |
418 |
-} |