Gentoo Archives: gentoo-dev

From: Leno Hou <lenohou@×××××.com>
To: gentoo-dev@l.g.o, blueness@g.o
Cc: Leno Hou <lenohou@×××××.com>
Subject: [gentoo-dev] [PATCH v1] enable gccgo for all platform
Date: Mon, 02 Nov 2015 17:18:02
Message-Id: 1446484646-14770-1-git-send-email-lenohou@gmail.com
1 1. go compiler only support x86 platform
2 2. gcc 5 includes go command to build go apps
3 3. for coreos enablement, it's use gcc 5 to build go apps
4
5 Signed-off-by: Leno Hou <lenohou@×××××.com>
6 ---
7 app-admin/consul-template/consul-template-0.9.0-r1.ebuild | 5 ++++-
8 app-admin/consul-template/consul-template-0.9.0.ebuild | 5 ++++-
9 app-admin/consul-template/consul-template-9999.ebuild | 5 ++++-
10 app-admin/consul/consul-0.5.2-r1.ebuild | 5 ++++-
11 app-admin/consul/consul-0.5.2.ebuild | 5 ++++-
12 app-admin/consul/consul-9999.ebuild | 5 ++++-
13 app-admin/fleet/fleet-0.11.0-r1.ebuild | 5 ++++-
14 app-admin/fleet/fleet-0.11.1.ebuild | 5 ++++-
15 app-admin/fleet/fleet-0.11.5.ebuild | 5 ++++-
16 app-admin/fleet/fleet-9999.ebuild | 5 ++++-
17 app-admin/logstash-forwarder/logstash-forwarder-0.4.0-r1.ebuild | 2 +-
18 app-admin/mongo-tools/mongo-tools-3.0.5.ebuild | 5 ++++-
19 app-admin/mongo-tools/mongo-tools-3.0.6.ebuild | 5 ++++-
20 app-admin/mongo-tools/mongo-tools-3.0.7.ebuild | 5 ++++-
21 app-crypt/etcd-ca/etcd-ca-0_p20140903.ebuild | 2 +-
22 app-crypt/etcd-ca/etcd-ca-0_p20150423-r1.ebuild | 2 +-
23 app-crypt/etcd-ca/etcd-ca-0_p20150423.ebuild | 2 +-
24 app-emulation/docker/docker-1.6.1.ebuild | 5 ++++-
25 app-emulation/docker/docker-1.6.2.ebuild | 5 ++++-
26 app-emulation/docker/docker-1.7.1.ebuild | 6 +++++-
27 app-emulation/flannel/flannel-0.5.4.ebuild | 2 +-
28 app-emulation/lxd/lxd-0.16.ebuild | 5 ++++-
29 app-emulation/lxd/lxd-0.18.ebuild | 5 ++++-
30 app-emulation/lxd/lxd-0.20.ebuild | 5 ++++-
31 app-emulation/rkt/rkt-0.8.0.ebuild | 5 ++++-
32 app-emulation/rkt/rkt-9999.ebuild | 5 ++++-
33 app-emulation/runc/runc-0.0.2.ebuild | 2 +-
34 dev-db/etcd/etcd-2.0.10-r1.ebuild | 2 +-
35 dev-db/etcd/etcd-2.2.1.ebuild | 2 +-
36 dev-db/etcdctl/etcdctl-0.4.6-r1.ebuild | 2 +-
37 dev-db/etcdctl/etcdctl-0.4.6.ebuild | 2 +-
38 dev-db/go-etcd/go-etcd-0_p20141013-r1.ebuild | 2 +-
39 dev-db/go-etcd/go-etcd-2.0.0-r1.ebuild | 2 +-
40 dev-db/go-etcd/go-etcd-2.0.0.ebuild | 2 +-
41 dev-libs/go-fuse/go-fuse-0_p20140812-r1.ebuild | 2 +-
42 dev-libs/go-fuse/go-fuse-0_p20150422.ebuild | 2 +-
43 dev-libs/go-fuse/go-fuse-9999.ebuild | 2 +-
44 dev-libs/go-usb/go-usb-9999.ebuild | 2 +-
45 dev-vcs/hub/hub-2.2.0-r1.ebuild | 2 +-
46 eclass/golang-base.eclass | 2 +-
47 sys-apps/lmctfy/lmctfy-0.5.0-r1.ebuild | 5 ++++-
48 sys-apps/lmctfy/lmctfy-0.5.0.ebuild | 5 ++++-
49 sys-fs/etcd-fs/etcd-fs-0_p20140620.ebuild | 5 ++++-
50 sys-fs/go-mtpfs/go-mtpfs-9999.ebuild | 5 ++++-
51 44 files changed, 120 insertions(+), 44 deletions(-)
52
53 diff --git a/app-admin/consul-template/consul-template-0.9.0-r1.ebuild b/app-admin/consul-template/consul-template-0.9.0-r1.ebuild
54 index cbc1059..a24ec80 100644
55 --- a/app-admin/consul-template/consul-template-0.9.0-r1.ebuild
56 +++ b/app-admin/consul-template/consul-template-0.9.0-r1.ebuild
57 @@ -14,7 +14,10 @@ LICENSE="MPL-2.0"
58 SLOT="0"
59 IUSE="test"
60
61 -DEPEND=">=dev-lang/go-1.4:=
62 +DEPEND="|| (
63 + >=dev-lang/go-1.4:=
64 + >=sys-devel/gcc-5.1.0:=[go]
65 + )
66 test? ( dev-go/go-tools )
67 app-admin/consul
68 app-admin/vault"
69 diff --git a/app-admin/consul-template/consul-template-0.9.0.ebuild b/app-admin/consul-template/consul-template-0.9.0.ebuild
70 index 80a3de8..c35ed0a 100644
71 --- a/app-admin/consul-template/consul-template-0.9.0.ebuild
72 +++ b/app-admin/consul-template/consul-template-0.9.0.ebuild
73 @@ -14,7 +14,10 @@ LICENSE="MPL-2.0"
74 SLOT="0"
75 IUSE="test"
76
77 -DEPEND=">=dev-lang/go-1.4
78 +DEPEND="|| (
79 + >=dev-lang/go-1.4
80 + >=sys-devel/gcc-5.1.0:=[go]
81 + )
82 test? ( dev-go/go-tools )
83 app-admin/consul
84 app-admin/vault"
85 diff --git a/app-admin/consul-template/consul-template-9999.ebuild b/app-admin/consul-template/consul-template-9999.ebuild
86 index 0dcf7f1..e43a1fd 100644
87 --- a/app-admin/consul-template/consul-template-9999.ebuild
88 +++ b/app-admin/consul-template/consul-template-9999.ebuild
89 @@ -15,7 +15,10 @@ LICENSE="MPL-2.0"
90 SLOT="0"
91 IUSE="test"
92
93 -DEPEND=">=dev-lang/go-1.4:=
94 +DEPEND="|| (
95 + >=dev-lang/go-1.4:=
96 + >=sys-devel/gcc-5.1.0:=[go]
97 + )
98 test? ( dev-go/go-tools )
99 app-admin/consul
100 app-admin/vault"
101 diff --git a/app-admin/consul/consul-0.5.2-r1.ebuild b/app-admin/consul/consul-0.5.2-r1.ebuild
102 index a55ecdf..990bf25 100644
103 --- a/app-admin/consul/consul-0.5.2-r1.ebuild
104 +++ b/app-admin/consul/consul-0.5.2-r1.ebuild
105 @@ -15,7 +15,10 @@ SLOT="0"
106 IUSE="test web"
107 RESTRICT="test"
108
109 -DEPEND=">=dev-lang/go-1.4:=
110 +DEPEND="|| (
111 + >=dev-lang/go-1.4:=
112 + >=sys-devel/gcc-5.1.0:=[go]
113 + )
114 dev-go/go-crypto:=
115 test? ( dev-go/go-tools )
116 web? (
117 diff --git a/app-admin/consul/consul-0.5.2.ebuild b/app-admin/consul/consul-0.5.2.ebuild
118 index 8389045..334dfad 100644
119 --- a/app-admin/consul/consul-0.5.2.ebuild
120 +++ b/app-admin/consul/consul-0.5.2.ebuild
121 @@ -15,7 +15,10 @@ SLOT="0"
122 IUSE="test web"
123 RESTRICT="test"
124
125 -DEPEND=">=dev-lang/go-1.4
126 +DEPEND="|| (
127 + >=dev-lang/go-1.4
128 + >=sys-devel/gcc-5.1.0:=[go]
129 + )
130 dev-go/go-crypto
131 test? ( dev-go/go-tools )
132 web? (
133 diff --git a/app-admin/consul/consul-9999.ebuild b/app-admin/consul/consul-9999.ebuild
134 index 3c38c20..c1fc202 100644
135 --- a/app-admin/consul/consul-9999.ebuild
136 +++ b/app-admin/consul/consul-9999.ebuild
137 @@ -16,7 +16,10 @@ SLOT="0"
138 IUSE="test web"
139 RESTRICT="test"
140
141 -DEPEND=">=dev-lang/go-1.4:=
142 +DEPEND="|| (
143 + >=dev-lang/go-1.4:=
144 + >=sys-devel/gcc-5.1.0:=[go]
145 + )
146 dev-go/go-crypto:=
147 test? ( dev-go/go-tools )
148 web? (
149 diff --git a/app-admin/fleet/fleet-0.11.0-r1.ebuild b/app-admin/fleet/fleet-0.11.0-r1.ebuild
150 index 47e3f92..b2ae87d 100644
151 --- a/app-admin/fleet/fleet-0.11.0-r1.ebuild
152 +++ b/app-admin/fleet/fleet-0.11.0-r1.ebuild
153 @@ -16,7 +16,10 @@ KEYWORDS="~amd64"
154 IUSE="doc examples test"
155
156 DEPEND="
157 - >=dev-lang/go-1.3:=
158 + || (
159 + >=dev-lang/go-1.3:=
160 + >=sys-devel/gcc-5.1.0:=[go]
161 + )
162 test? ( dev-go/go-tools )
163 "
164 RDEPEND=""
165 diff --git a/app-admin/fleet/fleet-0.11.1.ebuild b/app-admin/fleet/fleet-0.11.1.ebuild
166 index 77c80c4..3ecb644 100644
167 --- a/app-admin/fleet/fleet-0.11.1.ebuild
168 +++ b/app-admin/fleet/fleet-0.11.1.ebuild
169 @@ -16,7 +16,10 @@ KEYWORDS="~amd64"
170 IUSE="doc examples test"
171
172 DEPEND="
173 - >=dev-lang/go-1.3:=
174 + || (
175 + >=dev-lang/go-1.3:=
176 + >=sys-devel/gcc-5.1.0:=[go]
177 + )
178 test? ( dev-go/go-tools )
179 "
180 RDEPEND=""
181 diff --git a/app-admin/fleet/fleet-0.11.5.ebuild b/app-admin/fleet/fleet-0.11.5.ebuild
182 index 07d7fdd..bdd4877 100644
183 --- a/app-admin/fleet/fleet-0.11.5.ebuild
184 +++ b/app-admin/fleet/fleet-0.11.5.ebuild
185 @@ -18,7 +18,10 @@ KEYWORDS="~amd64"
186 IUSE="doc examples test"
187
188 DEPEND="
189 - >=dev-lang/go-1.4:=
190 + || (
191 + >=dev-lang/go-1.4:=
192 + >=sys-devel/gcc-5.1.0:=[go]
193 + )
194 test? ( dev-go/go-tools )
195 "
196 RDEPEND=""
197 diff --git a/app-admin/fleet/fleet-9999.ebuild b/app-admin/fleet/fleet-9999.ebuild
198 index c203877..9315eb6 100644
199 --- a/app-admin/fleet/fleet-9999.ebuild
200 +++ b/app-admin/fleet/fleet-9999.ebuild
201 @@ -17,7 +17,10 @@ SLOT="0"
202 KEYWORDS=""
203 IUSE="doc examples test"
204
205 -DEPEND=">=dev-lang/go-1.3:=
206 +DEPEND="|| (
207 + >=dev-lang/go-1.3:=
208 + >=sys-devel/gcc-5.1.0:=[go]
209 + )
210 test? ( dev-go/go-tools )"
211 RDEPEND=""
212
213 diff --git a/app-admin/logstash-forwarder/logstash-forwarder-0.4.0-r1.ebuild b/app-admin/logstash-forwarder/logstash-forwarder-0.4.0-r1.ebuild
214 index a9dbce5..2c48261 100644
215 --- a/app-admin/logstash-forwarder/logstash-forwarder-0.4.0-r1.ebuild
216 +++ b/app-admin/logstash-forwarder/logstash-forwarder-0.4.0-r1.ebuild
217 @@ -15,7 +15,7 @@ SLOT="0"
218 KEYWORDS="~amd64 ~x86"
219 IUSE=""
220
221 -DEPEND="dev-lang/go:="
222 +DEPEND="|| ( dev-lang/go:= >=sys-devel/gcc-5.1.0:=[go] )"
223 RDEPEND=""
224
225 pkg_setup() {
226 diff --git a/app-admin/mongo-tools/mongo-tools-3.0.5.ebuild b/app-admin/mongo-tools/mongo-tools-3.0.5.ebuild
227 index 658782f..39d5dd1 100644
228 --- a/app-admin/mongo-tools/mongo-tools-3.0.5.ebuild
229 +++ b/app-admin/mongo-tools/mongo-tools-3.0.5.ebuild
230 @@ -24,7 +24,10 @@ IUSE="sasl ssl"
231
232 RDEPEND="!<dev-db/mongodb-3.0.0"
233 DEPEND="${RDEPEND}
234 - dev-lang/go:=
235 + || (
236 + dev-lang/go:=
237 + >=sys-devel/gcc-5.1.0:=[go]
238 + )
239 sasl? ( dev-libs/cyrus-sasl )
240 ssl? ( dev-libs/openssl )"
241
242 diff --git a/app-admin/mongo-tools/mongo-tools-3.0.6.ebuild b/app-admin/mongo-tools/mongo-tools-3.0.6.ebuild
243 index 658782f..39d5dd1 100644
244 --- a/app-admin/mongo-tools/mongo-tools-3.0.6.ebuild
245 +++ b/app-admin/mongo-tools/mongo-tools-3.0.6.ebuild
246 @@ -24,7 +24,10 @@ IUSE="sasl ssl"
247
248 RDEPEND="!<dev-db/mongodb-3.0.0"
249 DEPEND="${RDEPEND}
250 - dev-lang/go:=
251 + || (
252 + dev-lang/go:=
253 + >=sys-devel/gcc-5.1.0:=[go]
254 + )
255 sasl? ( dev-libs/cyrus-sasl )
256 ssl? ( dev-libs/openssl )"
257
258 diff --git a/app-admin/mongo-tools/mongo-tools-3.0.7.ebuild b/app-admin/mongo-tools/mongo-tools-3.0.7.ebuild
259 index 658782f..39d5dd1 100644
260 --- a/app-admin/mongo-tools/mongo-tools-3.0.7.ebuild
261 +++ b/app-admin/mongo-tools/mongo-tools-3.0.7.ebuild
262 @@ -24,7 +24,10 @@ IUSE="sasl ssl"
263
264 RDEPEND="!<dev-db/mongodb-3.0.0"
265 DEPEND="${RDEPEND}
266 - dev-lang/go:=
267 + || (
268 + dev-lang/go:=
269 + >=sys-devel/gcc-5.1.0:=[go]
270 + )
271 sasl? ( dev-libs/cyrus-sasl )
272 ssl? ( dev-libs/openssl )"
273
274 diff --git a/app-crypt/etcd-ca/etcd-ca-0_p20140903.ebuild b/app-crypt/etcd-ca/etcd-ca-0_p20140903.ebuild
275 index 4c2eed6..11485dd 100644
276 --- a/app-crypt/etcd-ca/etcd-ca-0_p20140903.ebuild
277 +++ b/app-crypt/etcd-ca/etcd-ca-0_p20140903.ebuild
278 @@ -12,7 +12,7 @@ SRC_URI="${HOMEPAGE}/archive/${EGIT_COMMIT}.zip -> ${P}.zip"
279 LICENSE="Apache-2.0"
280 SLOT="0"
281 IUSE="doc"
282 -DEPEND=">=dev-lang/go-1.2"
283 +DEPEND="|| ( >=dev-lang/go-1.2 >=sys-devel/gcc-5.1.0:=[go] )"
284 RDEPEND=""
285 S=${WORKDIR}/${PN}-${EGIT_COMMIT}
286
287 diff --git a/app-crypt/etcd-ca/etcd-ca-0_p20150423-r1.ebuild b/app-crypt/etcd-ca/etcd-ca-0_p20150423-r1.ebuild
288 index 3209ff0..da28762 100644
289 --- a/app-crypt/etcd-ca/etcd-ca-0_p20150423-r1.ebuild
290 +++ b/app-crypt/etcd-ca/etcd-ca-0_p20150423-r1.ebuild
291 @@ -12,7 +12,7 @@ SRC_URI="${HOMEPAGE}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
292 LICENSE="Apache-2.0"
293 SLOT="0"
294 IUSE="doc"
295 -DEPEND=">=dev-lang/go-1.2:="
296 +DEPEND="|| ( >=dev-lang/go-1.2:= >=sys-devel/gcc-5.1.0:=[go] )"
297 RDEPEND=""
298 S=${WORKDIR}/${PN}-${EGIT_COMMIT}
299
300 diff --git a/app-crypt/etcd-ca/etcd-ca-0_p20150423.ebuild b/app-crypt/etcd-ca/etcd-ca-0_p20150423.ebuild
301 index 78d825d..07d5d18 100644
302 --- a/app-crypt/etcd-ca/etcd-ca-0_p20150423.ebuild
303 +++ b/app-crypt/etcd-ca/etcd-ca-0_p20150423.ebuild
304 @@ -12,7 +12,7 @@ SRC_URI="${HOMEPAGE}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
305 LICENSE="Apache-2.0"
306 SLOT="0"
307 IUSE="doc"
308 -DEPEND=">=dev-lang/go-1.2"
309 +DEPEND="|| ( >=dev-lang/go-1.2 >=sys-devel/gcc-5.1.0:=[go] )"
310 RDEPEND=""
311 S=${WORKDIR}/${PN}-${EGIT_COMMIT}
312
313 diff --git a/app-emulation/docker/docker-1.6.1.ebuild b/app-emulation/docker/docker-1.6.1.ebuild
314 index adabf38..16690d6 100644
315 --- a/app-emulation/docker/docker-1.6.1.ebuild
316 +++ b/app-emulation/docker/docker-1.6.1.ebuild
317 @@ -39,7 +39,10 @@ CDEPEND="
318
319 DEPEND="
320 ${CDEPEND}
321 - >=dev-lang/go-1.3
322 + || (
323 + >=dev-lang/go-1.3
324 + >=sys-devel/gcc-5.1.0:=[go]
325 + )
326 btrfs? (
327 >=sys-fs/btrfs-progs-3.16.1
328 )
329 diff --git a/app-emulation/docker/docker-1.6.2.ebuild b/app-emulation/docker/docker-1.6.2.ebuild
330 index 1eb4f5f..db34765 100644
331 --- a/app-emulation/docker/docker-1.6.2.ebuild
332 +++ b/app-emulation/docker/docker-1.6.2.ebuild
333 @@ -39,7 +39,10 @@ CDEPEND="
334
335 DEPEND="
336 ${CDEPEND}
337 - >=dev-lang/go-1.3
338 + || (
339 + >=dev-lang/go-1.3
340 + >=sys-devel/gcc-5.1.0:=[go]
341 + )
342 btrfs? (
343 >=sys-fs/btrfs-progs-3.16.1
344 )
345 diff --git a/app-emulation/docker/docker-1.7.1.ebuild b/app-emulation/docker/docker-1.7.1.ebuild
346 index 6f618a2..43868ec 100644
347 --- a/app-emulation/docker/docker-1.7.1.ebuild
348 +++ b/app-emulation/docker/docker-1.7.1.ebuild
349 @@ -39,7 +39,11 @@ CDEPEND="
350
351 DEPEND="
352 ${CDEPEND}
353 - >=dev-lang/go-1.4:=
354 + || (
355 + >=dev-lang/go-1.4:=
356 + >=sys-devel/gcc-5.1.0:=[go]
357 + )
358 +
359 btrfs? (
360 >=sys-fs/btrfs-progs-3.8
361 )
362 diff --git a/app-emulation/flannel/flannel-0.5.4.ebuild b/app-emulation/flannel/flannel-0.5.4.ebuild
363 index 4b3992c..3233eb8 100644
364 --- a/app-emulation/flannel/flannel-0.5.4.ebuild
365 +++ b/app-emulation/flannel/flannel-0.5.4.ebuild
366 @@ -15,7 +15,7 @@ LICENSE="Apache-2.0"
367 SLOT="0"
368 IUSE=""
369
370 -DEPEND=">=dev-lang/go-1.4:="
371 +DEPEND="|| ( >=dev-lang/go-1.4:= >=sys-devel/gcc-5.1.0:=[go] )"
372 RDEPEND=""
373
374 src_prepare() {
375 diff --git a/app-emulation/lxd/lxd-0.16.ebuild b/app-emulation/lxd/lxd-0.16.ebuild
376 index cb20eba..dd01e8c 100644
377 --- a/app-emulation/lxd/lxd-0.16.ebuild
378 +++ b/app-emulation/lxd/lxd-0.16.ebuild
379 @@ -21,7 +21,10 @@ inherit bash-completion-r1 eutils golang-build l10n systemd user vcs-snapshot
380
381 DEPEND="
382 dev-go/go-crypto
383 - >=dev-lang/go-1.4.2:=
384 + || (
385 + >=dev-lang/go-1.4.2:=
386 + >=sys-devel/gcc-5.1.0:=[go]
387 + )
388 dev-libs/protobuf
389 dev-vcs/git
390 nls? ( sys-devel/gettext )
391 diff --git a/app-emulation/lxd/lxd-0.18.ebuild b/app-emulation/lxd/lxd-0.18.ebuild
392 index fd53d98..559fa54 100644
393 --- a/app-emulation/lxd/lxd-0.18.ebuild
394 +++ b/app-emulation/lxd/lxd-0.18.ebuild
395 @@ -21,7 +21,10 @@ inherit bash-completion-r1 eutils golang-build l10n systemd user vcs-snapshot
396
397 DEPEND="
398 dev-go/go-crypto
399 - >=dev-lang/go-1.4.2:=
400 + || (
401 + >=dev-lang/go-1.4.2:=
402 + >=sys-devel/gcc-5.1.0:=[go]
403 + )
404 dev-libs/protobuf
405 dev-vcs/git
406 nls? ( sys-devel/gettext )
407 diff --git a/app-emulation/lxd/lxd-0.20.ebuild b/app-emulation/lxd/lxd-0.20.ebuild
408 index ab08cd1..bfb6018 100644
409 --- a/app-emulation/lxd/lxd-0.20.ebuild
410 +++ b/app-emulation/lxd/lxd-0.20.ebuild
411 @@ -21,7 +21,10 @@ inherit bash-completion-r1 eutils golang-build l10n systemd user vcs-snapshot
412
413 DEPEND="
414 dev-go/go-crypto
415 - >=dev-lang/go-1.4.2:=
416 + || (
417 + >=dev-lang/go-1.4.2:=
418 + >=sys-devel/gcc-5.1.0:=[go]
419 + )
420 dev-libs/protobuf
421 dev-vcs/git
422 nls? ( sys-devel/gettext )
423 diff --git a/app-emulation/rkt/rkt-0.8.0.ebuild b/app-emulation/rkt/rkt-0.8.0.ebuild
424 index e1354ed..3e5faeb 100644
425 --- a/app-emulation/rkt/rkt-0.8.0.ebuild
426 +++ b/app-emulation/rkt/rkt-0.8.0.ebuild
427 @@ -27,7 +27,10 @@ SLOT="0"
428 IUSE="doc examples +rkt_stage1_coreos rkt_stage1_src +actool systemd"
429 REQUIRED_USE="^^ ( rkt_stage1_coreos rkt_stage1_src )"
430
431 -DEPEND=">=dev-lang/go-1.4.1
432 +DEPEND="|| (
433 + >=dev-lang/go-1.4.1
434 + >=sys-devel/gcc-5.1.0:=[go]
435 + )
436 app-arch/cpio
437 sys-fs/squashfs-tools
438 dev-perl/Capture-Tiny
439 diff --git a/app-emulation/rkt/rkt-9999.ebuild b/app-emulation/rkt/rkt-9999.ebuild
440 index fcb665c..8d9c4aa 100644
441 --- a/app-emulation/rkt/rkt-9999.ebuild
442 +++ b/app-emulation/rkt/rkt-9999.ebuild
443 @@ -30,7 +30,10 @@ SLOT="0"
444 IUSE="doc examples +rkt_stage1_coreos rkt_stage1_host rkt_stage1_src +actool systemd"
445 REQUIRED_USE="^^ ( rkt_stage1_coreos rkt_stage1_host rkt_stage1_src )"
446
447 -DEPEND=">=dev-lang/go-1.4.1
448 +DEPEND="|| (
449 + >=dev-lang/go-1.4.1
450 + >=sys-devel/gcc-5.1.0:=[go]
451 + )
452 app-arch/cpio
453 sys-fs/squashfs-tools
454 dev-perl/Capture-Tiny
455 diff --git a/app-emulation/runc/runc-0.0.2.ebuild b/app-emulation/runc/runc-0.0.2.ebuild
456 index f5bb49f..0dcc097 100644
457 --- a/app-emulation/runc/runc-0.0.2.ebuild
458 +++ b/app-emulation/runc/runc-0.0.2.ebuild
459 @@ -23,7 +23,7 @@ LICENSE="Apache-2.0"
460 SLOT="0"
461 IUSE=""
462
463 -DEPEND=">=dev-lang/go-1.4:="
464 +DEPEND="|| ( >=dev-lang/go-1.4:= >=sys-devel/gcc-5.1.0:=[go] )"
465 RDEPEND=""
466
467 src_prepare() {
468 diff --git a/dev-db/etcd/etcd-2.0.10-r1.ebuild b/dev-db/etcd/etcd-2.0.10-r1.ebuild
469 index 2b7d67d..8a18e0b 100644
470 --- a/dev-db/etcd/etcd-2.0.10-r1.ebuild
471 +++ b/dev-db/etcd/etcd-2.0.10-r1.ebuild
472 @@ -13,7 +13,7 @@ SRC_URI="https://github.com/coreos/etcd/archive/v${PV}.tar.gz -> ${P}.tar.gz"
473 LICENSE="Apache-2.0"
474 SLOT="0"
475 IUSE="doc"
476 -DEPEND=">=dev-lang/go-1.2:="
477 +DEPEND="|| ( >=dev-lang/go-1.2:= >=sys-devel/gcc-5.1.0:=[go] )"
478 RDEPEND="!dev-db/etcdctl"
479
480 pkg_setup() {
481 diff --git a/dev-db/etcd/etcd-2.2.1.ebuild b/dev-db/etcd/etcd-2.2.1.ebuild
482 index 3c29b13..45c9620 100644
483 --- a/dev-db/etcd/etcd-2.2.1.ebuild
484 +++ b/dev-db/etcd/etcd-2.2.1.ebuild
485 @@ -13,7 +13,7 @@ SRC_URI="https://github.com/coreos/etcd/archive/v${PV}.tar.gz -> ${P}.tar.gz"
486 LICENSE="Apache-2.0"
487 SLOT="0"
488 IUSE="doc"
489 -DEPEND=">=dev-lang/go-1.2:="
490 +DEPEND="|| ( >=dev-lang/go-1.2:= >=sys-devel/gcc-5.1.0:=[go] )"
491 RDEPEND="!dev-db/etcdctl"
492
493 pkg_setup() {
494 diff --git a/dev-db/etcdctl/etcdctl-0.4.6-r1.ebuild b/dev-db/etcdctl/etcdctl-0.4.6-r1.ebuild
495 index 8fb38cb..7159570 100644
496 --- a/dev-db/etcdctl/etcdctl-0.4.6-r1.ebuild
497 +++ b/dev-db/etcdctl/etcdctl-0.4.6-r1.ebuild
498 @@ -11,7 +11,7 @@ LICENSE="Apache-2.0"
499 SLOT="0"
500 IUSE="examples"
501
502 -DEPEND=">=dev-lang/go-1.2:="
503 +DEPEND="|| ( >=dev-lang/go-1.2:= >=sys-devel/gcc-5.1.0:=[go] )"
504 RDEPEND=""
505
506 src_prepare() {
507 diff --git a/dev-db/etcdctl/etcdctl-0.4.6.ebuild b/dev-db/etcdctl/etcdctl-0.4.6.ebuild
508 index 45973ea..2cb600b 100644
509 --- a/dev-db/etcdctl/etcdctl-0.4.6.ebuild
510 +++ b/dev-db/etcdctl/etcdctl-0.4.6.ebuild
511 @@ -11,7 +11,7 @@ LICENSE="Apache-2.0"
512 SLOT="0"
513 IUSE="examples"
514
515 -DEPEND=">=dev-lang/go-1.2"
516 +DEPEND="|| ( >=dev-lang/go-1.2 >=sys-devel/gcc-5.1.0:=[go] )"
517 RDEPEND=""
518
519 src_prepare() {
520 diff --git a/dev-db/go-etcd/go-etcd-0_p20141013-r1.ebuild b/dev-db/go-etcd/go-etcd-0_p20141013-r1.ebuild
521 index 8ea0f6d..a6dcf05 100644
522 --- a/dev-db/go-etcd/go-etcd-0_p20141013-r1.ebuild
523 +++ b/dev-db/go-etcd/go-etcd-0_p20141013-r1.ebuild
524 @@ -13,7 +13,7 @@ SRC_URI="https://${GO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
525 LICENSE="Apache-2.0"
526 SLOT="0"
527 IUSE=""
528 -DEPEND=">=dev-lang/go-1.4"
529 +DEPEND="|| (>=dev-lang/go-1.4 >=sys-devel/gcc-5.1.0:=[go] )"
530 RDEPEND=""
531 S=${WORKDIR}
532
533 diff --git a/dev-db/go-etcd/go-etcd-2.0.0-r1.ebuild b/dev-db/go-etcd/go-etcd-2.0.0-r1.ebuild
534 index 79358b5..eb446ab 100644
535 --- a/dev-db/go-etcd/go-etcd-2.0.0-r1.ebuild
536 +++ b/dev-db/go-etcd/go-etcd-2.0.0-r1.ebuild
537 @@ -13,7 +13,7 @@ SRC_URI="https://${GO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
538 LICENSE="Apache-2.0"
539 SLOT="0"
540 IUSE=""
541 -DEPEND=">=dev-lang/go-1.4:="
542 +DEPEND="|| ( >=dev-lang/go-1.4:= >=sys-devel/gcc-5.1.0:=[go] )"
543 RDEPEND=""
544 S=${WORKDIR}
545
546 diff --git a/dev-db/go-etcd/go-etcd-2.0.0.ebuild b/dev-db/go-etcd/go-etcd-2.0.0.ebuild
547 index 8ea0f6d..136a2bf 100644
548 --- a/dev-db/go-etcd/go-etcd-2.0.0.ebuild
549 +++ b/dev-db/go-etcd/go-etcd-2.0.0.ebuild
550 @@ -13,7 +13,7 @@ SRC_URI="https://${GO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
551 LICENSE="Apache-2.0"
552 SLOT="0"
553 IUSE=""
554 -DEPEND=">=dev-lang/go-1.4"
555 +DEPEND="|| ( >=dev-lang/go-1.4 >=sys-devel/gcc-5.1.0:=[go] )"
556 RDEPEND=""
557 S=${WORKDIR}
558
559 diff --git a/dev-libs/go-fuse/go-fuse-0_p20140812-r1.ebuild b/dev-libs/go-fuse/go-fuse-0_p20140812-r1.ebuild
560 index eb4bbe6..0a05325 100644
561 --- a/dev-libs/go-fuse/go-fuse-0_p20140812-r1.ebuild
562 +++ b/dev-libs/go-fuse/go-fuse-0_p20140812-r1.ebuild
563 @@ -14,7 +14,7 @@ SRC_URI="https://${GO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
564 LICENSE="BSD"
565 SLOT="0"
566 IUSE=""
567 -DEPEND=">=dev-lang/go-1.3"
568 +DEPEND="|| ( >=dev-lang/go-1.3 >=sys-devel/gcc-5.1.0:=[go] )"
569 RDEPEND=""
570 S=${WORKDIR}
571
572 diff --git a/dev-libs/go-fuse/go-fuse-0_p20150422.ebuild b/dev-libs/go-fuse/go-fuse-0_p20150422.ebuild
573 index 839de1e..146d567 100644
574 --- a/dev-libs/go-fuse/go-fuse-0_p20150422.ebuild
575 +++ b/dev-libs/go-fuse/go-fuse-0_p20150422.ebuild
576 @@ -16,7 +16,7 @@ SLOT="0"
577 KEYWORDS="~amd64"
578 IUSE=""
579
580 -DEPEND=">=dev-lang/go-1.3"
581 +DEPEND="|| ( >=dev-lang/go-1.3 >=sys-devel/gcc-5.1.0:=[go] )"
582 RDEPEND=""
583
584 src_unpack() {
585 diff --git a/dev-libs/go-fuse/go-fuse-9999.ebuild b/dev-libs/go-fuse/go-fuse-9999.ebuild
586 index f3e190c..f7bfda69 100644
587 --- a/dev-libs/go-fuse/go-fuse-9999.ebuild
588 +++ b/dev-libs/go-fuse/go-fuse-9999.ebuild
589 @@ -17,7 +17,7 @@ SLOT="0"
590 KEYWORDS=""
591 IUSE=""
592
593 -DEPEND=">=dev-lang/go-1.3"
594 +DEPEND="|| ( >=dev-lang/go-1.3 >=sys-devel/gcc-5.1.0:=[go] )"
595 RDEPEND=""
596
597 GO_PN="github.com/hanwen/${PN}"
598 diff --git a/dev-libs/go-usb/go-usb-9999.ebuild b/dev-libs/go-usb/go-usb-9999.ebuild
599 index 268fd39..4a102f9 100644
600 --- a/dev-libs/go-usb/go-usb-9999.ebuild
601 +++ b/dev-libs/go-usb/go-usb-9999.ebuild
602 @@ -15,7 +15,7 @@ SLOT="0"
603 KEYWORDS=""
604 IUSE=""
605
606 -DEPEND=">=dev-lang/go-1.4"
607 +DEPEND="|| ( >=dev-lang/go-1.4 >=sys-devel/gcc-5.1.0:=[go] )"
608 RDEPEND=""
609
610 # Tests require a connected mtp device
611 diff --git a/dev-vcs/hub/hub-2.2.0-r1.ebuild b/dev-vcs/hub/hub-2.2.0-r1.ebuild
612 index f5240ae..a3c72db 100644
613 --- a/dev-vcs/hub/hub-2.2.0-r1.ebuild
614 +++ b/dev-vcs/hub/hub-2.2.0-r1.ebuild
615 @@ -15,7 +15,7 @@ SLOT="0"
616 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
617 IUSE=""
618
619 -DEPEND=">=dev-lang/go-1.4:="
620 +DEPEND="|| ( >=dev-lang/go-1.4:= >=sys-devel/gcc-5.1.0:=[go] )"
621 RDEPEND=">=dev-vcs/git-1.7.3"
622
623 DOC_CONTENTS="You may want to add 'alias git=hub' to your .{csh,bash}rc"
624 diff --git a/eclass/golang-base.eclass b/eclass/golang-base.eclass
625 index 0c54266..05bcc78 100644
626 --- a/eclass/golang-base.eclass
627 +++ b/eclass/golang-base.eclass
628 @@ -23,7 +23,7 @@ if [[ -z ${_GOLANG_BASE} ]]; then
629
630 _GOLANG_BASE=1
631
632 -DEPEND=">=dev-lang/go-1.4.2:="
633 +DEPEND="|| ( >=dev-lang/go-1.4.2:= >=sys-devel/gcc-5.1.0:=[go] )"
634 STRIP_MASK="*.a"
635
636 # @ECLASS-VARIABLE: EGO_PN
637 diff --git a/sys-apps/lmctfy/lmctfy-0.5.0-r1.ebuild b/sys-apps/lmctfy/lmctfy-0.5.0-r1.ebuild
638 index 4a81c90..3142536 100644
639 --- a/sys-apps/lmctfy/lmctfy-0.5.0-r1.ebuild
640 +++ b/sys-apps/lmctfy/lmctfy-0.5.0-r1.ebuild
641 @@ -23,7 +23,10 @@ COMMON_DEPEND="
642 "
643 DEPEND="
644 ${COMMON_DEPEND}
645 - dev-lang/go:=
646 + || (
647 + dev-lang/go:=
648 + >=sys-devel/gcc-5.1.0:=[go]
649 + )
650 "
651 RDEPEND="${COMMON_DEPEND}"
652
653 diff --git a/sys-apps/lmctfy/lmctfy-0.5.0.ebuild b/sys-apps/lmctfy/lmctfy-0.5.0.ebuild
654 index 4e390ac..48ba6a9 100644
655 --- a/sys-apps/lmctfy/lmctfy-0.5.0.ebuild
656 +++ b/sys-apps/lmctfy/lmctfy-0.5.0.ebuild
657 @@ -19,7 +19,10 @@ DEPEND="
658 dev-libs/protobuf
659 >=dev-cpp/gflags-2.1.1
660 dev-libs/re2
661 - dev-lang/go
662 + || (
663 + dev-lang/go
664 + >=sys-devel/gcc-5.1.0:=[go]
665 + )
666 sys-libs/libapparmor
667 "
668 RDEPEND="${DEPEND}"
669 diff --git a/sys-fs/etcd-fs/etcd-fs-0_p20140620.ebuild b/sys-fs/etcd-fs/etcd-fs-0_p20140620.ebuild
670 index 8d6504c..8e05bdf 100644
671 --- a/sys-fs/etcd-fs/etcd-fs-0_p20140620.ebuild
672 +++ b/sys-fs/etcd-fs/etcd-fs-0_p20140620.ebuild
673 @@ -13,7 +13,10 @@ LICENSE="Apache-2.0"
674 SLOT="0"
675 IUSE=""
676 DEPEND="
677 - >=dev-lang/go-1.3
678 + || (
679 + >=dev-lang/go-1.3
680 + >=sys-devel/gcc-5.1.0:=[go]
681 + )
682 dev-db/go-etcd
683 dev-libs/go-fuse"
684 RDEPEND=""
685 diff --git a/sys-fs/go-mtpfs/go-mtpfs-9999.ebuild b/sys-fs/go-mtpfs/go-mtpfs-9999.ebuild
686 index 4da89fd..7a7df7f 100644
687 --- a/sys-fs/go-mtpfs/go-mtpfs-9999.ebuild
688 +++ b/sys-fs/go-mtpfs/go-mtpfs-9999.ebuild
689 @@ -20,7 +20,10 @@ COMMON_DEPEND="virtual/libusb
690 DEPEND="${COMMON_DEPEND}
691 dev-libs/go-fuse
692 dev-libs/go-usb
693 - dev-lang/go
694 + || (
695 + dev-lang/go
696 + >=sys-devel/gcc-5.1.0:=[go]
697 + )
698 media-libs/libmtp"
699
700 RDEPEND="${COMMON_DEPEND}"
701 --
702 2.1.0

Replies