Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/go/
Date: Sun, 13 Sep 2020 03:39:14
Message-Id: 1599968302.85e42de4950c634976fc206a10eefe10feab1215.williamh@gentoo
1 commit: 85e42de4950c634976fc206a10eefe10feab1215
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 13 03:01:25 2020 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 13 03:38:22 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85e42de4
7
8 dev-lang/go: remove broken 1.15 versions
9
10 Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
11
12 dev-lang/go/Manifest | 2 -
13 dev-lang/go/go-1.15.1.ebuild | 188 -------------------------------------------
14 dev-lang/go/go-1.15.ebuild | 188 -------------------------------------------
15 3 files changed, 378 deletions(-)
16
17 diff --git a/dev-lang/go/Manifest b/dev-lang/go/Manifest
18 index 778f24c7941..e4f00ccc9e6 100644
19 --- a/dev-lang/go/Manifest
20 +++ b/dev-lang/go/Manifest
21 @@ -1,6 +1,4 @@
22 DIST go1.14.7.src.tar.gz 22534747 BLAKE2B ab43abeec9d636dd88eaa10dc210f5d11d487df35238a00548e1f56a86bdf2375e7c180ee6e1cea53591528714fa70333e3336db61eacfdeb5f51b2d5ea86a45 SHA512 3f1133c66d7795ceb6c5793db90616613244d7561abaef6b059602992c0b7a53b6b6ebbcf69add4769a58542e9dc55871bcfe3d64d4cd9f3569bd435ade86dee
23 DIST go1.14.8.src.tar.gz 22535549 BLAKE2B b7630dd95b8252150937f49a164af4c8a1b9f186db9f8ec9f5e2589762a96c5c22aa8fc3a9f697cb2b884844962cea41ea789283e07f3b7b3be3343af1056573 SHA512 c7f2826d9f674591b183f209e8854875273a6ac846f93ae1da841a0c80943d9b8fa04cdad389a339bbdf583913ab71646dff15afa9b4ad8be47e12041fe71c45
24 DIST go1.14.9.src.tar.gz 22540282 BLAKE2B 84f52ce4200c4f31aacb08b270a9e13e4753a9dc21aa2e6566cca95ea21f2d4bded9303bb7dbcd93c1ea8bb81100692f19b7129313278a821159e7a4c7a2f7f0 SHA512 318ca9dc4c55ea3a942aad0b8ede4d66a6fea9571ece56922cc8f4f167c4bfc77182cb4ef72be6d34a70e396e1549baf92a505fde785f4aff6b4c1318e86a526
25 -DIST go1.15.1.src.tar.gz 23009031 BLAKE2B bf944570b77eb7a04f751daaf653a43260d03b1b0d413529beef9ec0879064be67130f65d1a38947b605f6b7deba51f8d832818ac44fb738482203f7c618ebb1 SHA512 08728dd7c64467482b1b17d1bd852ae6ca329062da95e10e91535e096b6ddd32d0e34a5e1f7b736175863c5543b6623406fc89b057273afc3f434ea97b343cfe
26 DIST go1.15.2.src.tar.gz 23012667 BLAKE2B 776531cb4ff1a4023739b4f37828a098b5ea9df1f6b08940119fb39bb6edf08ae40ba9b513e340bbfbec8075778d31df3825816f6680d88fdb53cde2c235d9b8 SHA512 c8b69556ddbbae4790c923547d90259c2208490ed26e75b6318dcc19893f50788e17207140deed1fe9d1e214b9a8f3769242fb7dfd06ebac37ba2c67f0281a73
27 -DIST go1.15.src.tar.gz 23002901 BLAKE2B a04bfb5d8bb6377e92d5d8c96f11d39b9bb878f4f9a3221baa5f42bcc822b562a209fd5d2d2a643f3b72df2db494899b2f7a446f1a9a8e25bf0df56ef87f3b7f SHA512 7d85382bcc6a0625dfa3d07196ab364860846367ed67697a7b1516b0af551a72bc4873882141fc3c7a60d39f2e27b33f6693e8b18b608de76fc9a55b5eac55ea
28
29 diff --git a/dev-lang/go/go-1.15.1.ebuild b/dev-lang/go/go-1.15.1.ebuild
30 deleted file mode 100644
31 index fa07749bdeb..00000000000
32 --- a/dev-lang/go/go-1.15.1.ebuild
33 +++ /dev/null
34 @@ -1,188 +0,0 @@
35 -# Copyright 1999-2020 Gentoo Authors
36 -# Distributed under the terms of the GNU General Public License v2
37 -
38 -EAPI=7
39 -
40 -export CBUILD=${CBUILD:-${CHOST}}
41 -export CTARGET=${CTARGET:-${CHOST}}
42 -
43 -MY_PV=${PV/_/}
44 -
45 -inherit toolchain-funcs
46 -
47 -case ${PV} in
48 -*9999*)
49 - EGIT_REPO_URI="https://github.com/golang/go.git"
50 - inherit git-r3
51 - ;;
52 -*)
53 - SRC_URI="https://storage.googleapis.com/golang/go${MY_PV}.src.tar.gz "
54 - S="${WORKDIR}"/go
55 - case ${PV} in
56 - *_beta*|*_rc*) ;;
57 - *)
58 - KEYWORDS="-* ~amd64 ~arm ~arm64 ~ppc64 ~s390 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
59 - ;;
60 - esac
61 -esac
62 -
63 -DESCRIPTION="A concurrent garbage collected and typesafe programming language"
64 -HOMEPAGE="https://golang.org"
65 -
66 -LICENSE="BSD"
67 -SLOT="0/${PV}"
68 -
69 -BDEPEND="|| (
70 - dev-lang/go
71 - dev-lang/go-bootstrap )"
72 -RDEPEND="!<dev-go/go-tools-0_pre20150902"
73 -
74 -# Do not complain about CFLAGS, etc, since Go doesn't use them.
75 -QA_FLAGS_IGNORED='.*'
76 -
77 -# The tools in /usr/lib/go should not cause the multilib-strict check to fail.
78 -QA_MULTILIB_PATHS="usr/lib/go/pkg/tool/.*/.*"
79 -
80 -# Do not strip this package. Stripping is unsupported upstream and may
81 -# fail.
82 -RESTRICT+=" strip"
83 -
84 -DOCS=(
85 -AUTHORS
86 -CONTRIBUTING.md
87 -CONTRIBUTORS
88 -PATENTS
89 -README.md
90 -)
91 -
92 -go_arch()
93 -{
94 - # By chance most portage arch names match Go
95 - local portage_arch=$(tc-arch $@)
96 - case "${portage_arch}" in
97 - x86) echo 386;;
98 - x64-*) echo amd64;;
99 - ppc64) [[ $(tc-endian $@) = big ]] && echo ppc64 || echo ppc64le ;;
100 - s390) echo s390x ;;
101 - *) echo "${portage_arch}";;
102 - esac
103 -}
104 -
105 -go_arm()
106 -{
107 - case "${1:-${CHOST}}" in
108 - armv5*) echo 5;;
109 - armv6*) echo 6;;
110 - armv7*) echo 7;;
111 - *)
112 - die "unknown GOARM for ${1:-${CHOST}}"
113 - ;;
114 - esac
115 -}
116 -
117 -go_os()
118 -{
119 - case "${1:-${CHOST}}" in
120 - *-linux*) echo linux;;
121 - *-darwin*) echo darwin;;
122 - *-freebsd*) echo freebsd;;
123 - *-netbsd*) echo netbsd;;
124 - *-openbsd*) echo openbsd;;
125 - *-solaris*) echo solaris;;
126 - *-cygwin*|*-interix*|*-winnt*)
127 - echo windows
128 - ;;
129 - *)
130 - die "unknown GOOS for ${1:-${CHOST}}"
131 - ;;
132 - esac
133 -}
134 -
135 -go_tuple()
136 -{
137 - echo "$(go_os $@)_$(go_arch $@)"
138 -}
139 -
140 -go_cross_compile()
141 -{
142 - [[ $(go_tuple ${CBUILD}) != $(go_tuple) ]]
143 -}
144 -
145 -src_compile()
146 -{
147 - if has_version -b dev-lang/go; then
148 - export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go"
149 - elif has_version -b dev-lang/go-bootstrap; then
150 - export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go-bootstrap"
151 - else
152 - eerror "Go cannot be built without go or go-bootstrap installed"
153 - die "Should not be here, please report a bug"
154 - fi
155 -
156 - export GOROOT_FINAL="${EPREFIX}"/usr/lib/go
157 - export GOROOT="$(pwd)"
158 - export GOBIN="${GOROOT}/bin"
159 -
160 - # Go's build script does not use BUILD/HOST/TARGET consistently. :(
161 - export GOHOSTARCH=$(go_arch ${CBUILD})
162 - export GOHOSTOS=$(go_os ${CBUILD})
163 - export CC=$(tc-getBUILD_CC)
164 -
165 - export GOARCH=$(go_arch)
166 - export GOOS=$(go_os)
167 - export CC_FOR_TARGET=$(tc-getCC)
168 - export CXX_FOR_TARGET=$(tc-getCXX)
169 - if [[ ${ARCH} == arm ]]; then
170 - export GOARM=$(go_arm)
171 - fi
172 -
173 - cd src
174 - bash -x ./make.bash || die "build failed"
175 -}
176 -
177 -src_test()
178 -{
179 - go_cross_compile && return 0
180 -
181 - cd src
182 - PATH="${GOBIN}:${PATH}" \
183 - ./run.bash -no-rebuild || die "tests failed"
184 - cd ..
185 - rm -fr pkg/*_race || die
186 - rm -fr pkg/obj/go-build || die
187 -}
188 -
189 -src_install()
190 -{
191 - local bin_path f x
192 -
193 - dodir /usr/lib/go
194 -
195 - # There is a known issue which requires the source tree to be installed [1].
196 - # Once this is fixed, we can consider using the doc use flag to control
197 - # installing the doc and src directories.
198 - # [1] https://golang.org/issue/2775
199 - #
200 - # deliberately use cp to retain permissions
201 - cp -R api bin doc lib pkg misc src test "${ED}"/usr/lib/go
202 - # testdata directories are not needed on the installed system
203 - rm -fr $(find "${ED}"/usr/lib/go -iname testdata -type d -print)
204 - if go_cross_compile; then
205 - bin_path="bin/$(go_tuple)"
206 - else
207 - bin_path=bin
208 - fi
209 - for x in ${bin_path}/*; do
210 - f=${x##*/}
211 - dosym ../lib/go/${bin_path}/${f} /usr/bin/${f}
212 - done
213 - einstalldocs
214 -
215 - if [[ ${CHOST} == *-darwin* ]] ; then
216 - # fix install_name for test object (binutils_test) on Darwin, it
217 - # is never used in real circumstances
218 - local libmac64="${EPREFIX}"/usr/lib/go/src/cmd/vendor/github.com/
219 - libmac64+=google/pprof/internal/binutils/testdata/lib_mac_64
220 - install_name_tool -id "${libmac64}" "${D}${libmac64}"
221 - fi
222 -}
223
224 diff --git a/dev-lang/go/go-1.15.ebuild b/dev-lang/go/go-1.15.ebuild
225 deleted file mode 100644
226 index fa07749bdeb..00000000000
227 --- a/dev-lang/go/go-1.15.ebuild
228 +++ /dev/null
229 @@ -1,188 +0,0 @@
230 -# Copyright 1999-2020 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 -{
289 - # By chance most portage arch names match Go
290 - local portage_arch=$(tc-arch $@)
291 - case "${portage_arch}" in
292 - x86) echo 386;;
293 - x64-*) echo amd64;;
294 - ppc64) [[ $(tc-endian $@) = big ]] && echo ppc64 || echo ppc64le ;;
295 - s390) echo s390x ;;
296 - *) echo "${portage_arch}";;
297 - esac
298 -}
299 -
300 -go_arm()
301 -{
302 - case "${1:-${CHOST}}" in
303 - armv5*) echo 5;;
304 - armv6*) echo 6;;
305 - armv7*) echo 7;;
306 - *)
307 - die "unknown GOARM for ${1:-${CHOST}}"
308 - ;;
309 - esac
310 -}
311 -
312 -go_os()
313 -{
314 - case "${1:-${CHOST}}" in
315 - *-linux*) echo linux;;
316 - *-darwin*) echo darwin;;
317 - *-freebsd*) echo freebsd;;
318 - *-netbsd*) echo netbsd;;
319 - *-openbsd*) echo openbsd;;
320 - *-solaris*) echo solaris;;
321 - *-cygwin*|*-interix*|*-winnt*)
322 - echo windows
323 - ;;
324 - *)
325 - die "unknown GOOS for ${1:-${CHOST}}"
326 - ;;
327 - esac
328 -}
329 -
330 -go_tuple()
331 -{
332 - echo "$(go_os $@)_$(go_arch $@)"
333 -}
334 -
335 -go_cross_compile()
336 -{
337 - [[ $(go_tuple ${CBUILD}) != $(go_tuple) ]]
338 -}
339 -
340 -src_compile()
341 -{
342 - if has_version -b dev-lang/go; then
343 - export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go"
344 - elif has_version -b dev-lang/go-bootstrap; then
345 - export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go-bootstrap"
346 - else
347 - eerror "Go cannot be built without go or go-bootstrap installed"
348 - die "Should not be here, please report a bug"
349 - fi
350 -
351 - export GOROOT_FINAL="${EPREFIX}"/usr/lib/go
352 - export GOROOT="$(pwd)"
353 - export GOBIN="${GOROOT}/bin"
354 -
355 - # Go's build script does not use BUILD/HOST/TARGET consistently. :(
356 - export GOHOSTARCH=$(go_arch ${CBUILD})
357 - export GOHOSTOS=$(go_os ${CBUILD})
358 - export CC=$(tc-getBUILD_CC)
359 -
360 - export GOARCH=$(go_arch)
361 - export GOOS=$(go_os)
362 - export CC_FOR_TARGET=$(tc-getCC)
363 - export CXX_FOR_TARGET=$(tc-getCXX)
364 - if [[ ${ARCH} == arm ]]; then
365 - export GOARM=$(go_arm)
366 - fi
367 -
368 - cd src
369 - bash -x ./make.bash || die "build failed"
370 -}
371 -
372 -src_test()
373 -{
374 - go_cross_compile && return 0
375 -
376 - cd src
377 - PATH="${GOBIN}:${PATH}" \
378 - ./run.bash -no-rebuild || die "tests failed"
379 - cd ..
380 - rm -fr pkg/*_race || die
381 - rm -fr pkg/obj/go-build || die
382 -}
383 -
384 -src_install()
385 -{
386 - local bin_path f x
387 -
388 - dodir /usr/lib/go
389 -
390 - # There is a known issue which requires the source tree to be installed [1].
391 - # Once this is fixed, we can consider using the doc use flag to control
392 - # installing the doc and src directories.
393 - # [1] https://golang.org/issue/2775
394 - #
395 - # deliberately use cp to retain permissions
396 - cp -R api bin doc lib pkg misc src test "${ED}"/usr/lib/go
397 - # testdata directories are not needed on the installed system
398 - rm -fr $(find "${ED}"/usr/lib/go -iname testdata -type d -print)
399 - if go_cross_compile; then
400 - bin_path="bin/$(go_tuple)"
401 - else
402 - bin_path=bin
403 - fi
404 - for x in ${bin_path}/*; do
405 - f=${x##*/}
406 - dosym ../lib/go/${bin_path}/${f} /usr/bin/${f}
407 - done
408 - einstalldocs
409 -
410 - if [[ ${CHOST} == *-darwin* ]] ; then
411 - # fix install_name for test object (binutils_test) on Darwin, it
412 - # is never used in real circumstances
413 - local libmac64="${EPREFIX}"/usr/lib/go/src/cmd/vendor/github.com/
414 - libmac64+=google/pprof/internal/binutils/testdata/lib_mac_64
415 - install_name_tool -id "${libmac64}" "${D}${libmac64}"
416 - fi
417 -}