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: Fri, 04 Sep 2020 21:43:00
Message-Id: 1599255771.9032baf5ccb6234116ff9e05e879148aaf6ccb50.williamh@gentoo
1 commit: 9032baf5ccb6234116ff9e05e879148aaf6ccb50
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 4 21:40:51 2020 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 4 21:42:51 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9032baf5
7
8 dev-lang/go: remove old version
9
10 Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
11
12 dev-lang/go/Manifest | 1 -
13 dev-lang/go/go-1.13.15.ebuild | 197 ------------------------------------------
14 2 files changed, 198 deletions(-)
15
16 diff --git a/dev-lang/go/Manifest b/dev-lang/go/Manifest
17 index 0fae56dbece..1fbe4a225c0 100644
18 --- a/dev-lang/go/Manifest
19 +++ b/dev-lang/go/Manifest
20 @@ -1,4 +1,3 @@
21 -DIST go1.13.15.src.tar.gz 21705183 BLAKE2B eac8c6113dd6cef164cc5368732c2dce26f200e309c728ca71b4c312ace465382b8cc1dd8fb216bdf927211d6cb26c21090a9ac9c9ef2d7ac1b16c85feac0e0c SHA512 35d3e7aaef1b0fc6ab684bb7352da3a23194115331ba7d1543225c35939cafcd437f454519aac38182cb8f222723ed9a297f9da566075b5e4079be26952a21e3
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.15.1.src.tar.gz 23009031 BLAKE2B bf944570b77eb7a04f751daaf653a43260d03b1b0d413529beef9ec0879064be67130f65d1a38947b605f6b7deba51f8d832818ac44fb738482203f7c618ebb1 SHA512 08728dd7c64467482b1b17d1bd852ae6ca329062da95e10e91535e096b6ddd32d0e34a5e1f7b736175863c5543b6623406fc89b057273afc3f434ea97b343cfe
25
26 diff --git a/dev-lang/go/go-1.13.15.ebuild b/dev-lang/go/go-1.13.15.ebuild
27 deleted file mode 100644
28 index 1f323d04c2e..00000000000
29 --- a/dev-lang/go/go-1.13.15.ebuild
30 +++ /dev/null
31 @@ -1,197 +0,0 @@
32 -# Copyright 1999-2020 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=7
36 -
37 -export CBUILD=${CBUILD:-${CHOST}}
38 -export CTARGET=${CTARGET:-${CHOST}}
39 -
40 -MY_PV=${PV/_/}
41 -
42 -inherit toolchain-funcs
43 -
44 -case ${PV} in
45 -*9999*)
46 - EGIT_REPO_URI="https://github.com/golang/go.git"
47 - inherit git-r3
48 - ;;
49 -*)
50 - SRC_URI="https://storage.googleapis.com/golang/go${MY_PV}.src.tar.gz "
51 - S="${WORKDIR}"/go
52 - case ${PV} in
53 - *_beta*|*_rc*) ;;
54 - *)
55 - KEYWORDS="-* amd64 arm arm64 ppc64 ~s390 x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
56 - # The upstream tests fail under portage but pass if the build is
57 - # run according to their documentation [1].
58 - # I am restricting the tests on released versions until this is
59 - # solved.
60 - # [1] https://golang.org/issues/18442
61 - RESTRICT="test"
62 - ;;
63 - esac
64 -esac
65 -
66 -DESCRIPTION="A concurrent garbage collected and typesafe programming language"
67 -HOMEPAGE="https://golang.org"
68 -
69 -LICENSE="BSD"
70 -SLOT="0/${PV}"
71 -
72 -BDEPEND="|| (
73 - dev-lang/go
74 - dev-lang/go-bootstrap )"
75 -RDEPEND="!<dev-go/go-tools-0_pre20150902"
76 -
77 -# These test data objects have writable/executable stacks.
78 -QA_EXECSTACK="
79 - usr/lib/go/src/debug/elf/testdata/*.obj
80 - usr/lib/go/src/*.gox
81 - "
82 -
83 -# Do not complain about CFLAGS, etc, since Go doesn't use them.
84 -QA_FLAGS_IGNORED='.*'
85 -
86 -REQUIRES_EXCLUDE="/usr/lib/go/src/debug/elf/testdata/*"
87 -
88 -# The tools in /usr/lib/go should not cause the multilib-strict check to fail.
89 -QA_MULTILIB_PATHS="usr/lib/go/pkg/tool/.*/.*"
90 -
91 -# Do not strip this package. Stripping is unsupported upstream and may
92 -# fail.
93 -RESTRICT+=" strip"
94 -
95 -DOCS=(
96 -AUTHORS
97 -CONTRIBUTING.md
98 -CONTRIBUTORS
99 -PATENTS
100 -README.md
101 -)
102 -
103 -go_arch()
104 -{
105 - # By chance most portage arch names match Go
106 - local portage_arch=$(tc-arch $@)
107 - case "${portage_arch}" in
108 - x86) echo 386;;
109 - x64-*) echo amd64;;
110 - ppc64) [[ $(tc-endian $@) = big ]] && echo ppc64 || echo ppc64le ;;
111 - s390) echo s390x ;;
112 - *) echo "${portage_arch}";;
113 - esac
114 -}
115 -
116 -go_arm()
117 -{
118 - case "${1:-${CHOST}}" in
119 - armv5*) echo 5;;
120 - armv6*) echo 6;;
121 - armv7*) echo 7;;
122 - *)
123 - die "unknown GOARM for ${1:-${CHOST}}"
124 - ;;
125 - esac
126 -}
127 -
128 -go_os()
129 -{
130 - case "${1:-${CHOST}}" in
131 - *-linux*) echo linux;;
132 - *-darwin*) echo darwin;;
133 - *-freebsd*) echo freebsd;;
134 - *-netbsd*) echo netbsd;;
135 - *-openbsd*) echo openbsd;;
136 - *-solaris*) echo solaris;;
137 - *-cygwin*|*-interix*|*-winnt*)
138 - echo windows
139 - ;;
140 - *)
141 - die "unknown GOOS for ${1:-${CHOST}}"
142 - ;;
143 - esac
144 -}
145 -
146 -go_tuple()
147 -{
148 - echo "$(go_os $@)_$(go_arch $@)"
149 -}
150 -
151 -go_cross_compile()
152 -{
153 - [[ $(go_tuple ${CBUILD}) != $(go_tuple) ]]
154 -}
155 -
156 -src_compile()
157 -{
158 - if has_version -b dev-lang/go; then
159 - export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go"
160 - elif has_version -b dev-lang/go-bootstrap; then
161 - export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go-bootstrap"
162 - else
163 - eerror "Go cannot be built without go or go-bootstrap installed"
164 - die "Should not be here, please report a bug"
165 - fi
166 -
167 - export GOROOT_FINAL="${EPREFIX}"/usr/lib/go
168 - export GOROOT="$(pwd)"
169 - export GOBIN="${GOROOT}/bin"
170 -
171 - # Go's build script does not use BUILD/HOST/TARGET consistently. :(
172 - export GOHOSTARCH=$(go_arch ${CBUILD})
173 - export GOHOSTOS=$(go_os ${CBUILD})
174 - export CC=$(tc-getBUILD_CC)
175 -
176 - export GOARCH=$(go_arch)
177 - export GOOS=$(go_os)
178 - export CC_FOR_TARGET=$(tc-getCC)
179 - export CXX_FOR_TARGET=$(tc-getCXX)
180 - if [[ ${ARCH} == arm ]]; then
181 - export GOARM=$(go_arm)
182 - fi
183 -
184 - cd src
185 - bash -x ./make.bash || die "build failed"
186 -}
187 -
188 -src_test()
189 -{
190 - go_cross_compile && return 0
191 -
192 - cd src
193 - PATH="${GOBIN}:${PATH}" \
194 - ./run.bash -no-rebuild || die "tests failed"
195 -}
196 -
197 -src_install()
198 -{
199 - local bin_path f x
200 -
201 - dodir /usr/lib/go
202 -
203 - # There is a known issue which requires the source tree to be installed [1].
204 - # Once this is fixed, we can consider using the doc use flag to control
205 - # installing the doc and src directories.
206 - # [1] https://golang.org/issue/2775
207 - #
208 - # deliberately use cp to retain permissions
209 - cp -R api bin doc lib pkg misc src test "${ED}"/usr/lib/go
210 - if go_cross_compile; then
211 - bin_path="bin/$(go_tuple)"
212 - else
213 - bin_path=bin
214 - fi
215 - for x in ${bin_path}/*; do
216 - f=${x##*/}
217 - dosym ../lib/go/${bin_path}/${f} /usr/bin/${f}
218 - done
219 - einstalldocs
220 -
221 - if [[ ${CHOST} == *-darwin* ]] ; then
222 - # fix install_name for test object (binutils_test) on Darwin, it
223 - # is never used in real circumstances
224 - local libmac64="${EPREFIX}"/usr/lib/go/src/cmd/vendor/github.com/
225 - libmac64+=google/pprof/internal/binutils/testdata/lib_mac_64
226 - install_name_tool -id "${libmac64}" "${D}${libmac64}"
227 - fi
228 -}