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