diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2019-12-09 16:10:59 +0800 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2019-12-10 02:26:15 -0500 |
commit | 06dad20a32c81b6a8b6e93c99cda6f1133abddc6 (patch) | |
tree | 330233c2bf4c12dfa7d2bed28384ca1ede512b38 /recipes-containers/kubernetes/go-common.inc | |
parent | c31e46fce79f32a6692358105e15d77c652a9c9a (diff) | |
download | meta-virtualization-06dad20a32c81b6a8b6e93c99cda6f1133abddc6.tar.gz |
go: add back 1.12 version to avoid compilation failure
go 1.12 was removed from oe-core, but currently k8s cannot
be built successfully with go 1.13. See link below.
https://github.com/kubernetes/kubernetes/issues/82531
We need to wait for k8s to support go 1.13 and update it
to latest release, as well as its depedencies. Before this
is done, add back go 1.12 and use it.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-containers/kubernetes/go-common.inc')
-rw-r--r-- | recipes-containers/kubernetes/go-common.inc | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/recipes-containers/kubernetes/go-common.inc b/recipes-containers/kubernetes/go-common.inc new file mode 100644 index 00000000..93a3d3b5 --- /dev/null +++ b/recipes-containers/kubernetes/go-common.inc | |||
@@ -0,0 +1,32 @@ | |||
1 | SUMMARY = "Go programming language compiler" | ||
2 | DESCRIPTION = " The Go programming language is an open source project to make \ | ||
3 | programmers more productive. Go is expressive, concise, clean, and\ | ||
4 | efficient. Its concurrency mechanisms make it easy to write programs\ | ||
5 | that get the most out of multicore and networked machines, while its\ | ||
6 | novel type system enables flexible and modular program construction.\ | ||
7 | Go compiles quickly to machine code yet has the convenience of\ | ||
8 | garbage collection and the power of run-time reflection. It's a\ | ||
9 | fast, statically typed, compiled language that feels like a\ | ||
10 | dynamically typed, interpreted language." | ||
11 | |||
12 | HOMEPAGE = " http://golang.org/" | ||
13 | LICENSE = "BSD-3-Clause" | ||
14 | |||
15 | inherit goarch | ||
16 | |||
17 | SRC_URI = "http://golang.org/dl/go${PV}.src.tar.gz;name=main" | ||
18 | S = "${WORKDIR}/go" | ||
19 | B = "${S}" | ||
20 | UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)\.src\.tar" | ||
21 | |||
22 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
23 | SSTATE_SCAN_CMD = "true" | ||
24 | |||
25 | export GOROOT_OVERRIDE = "1" | ||
26 | export GOTMPDIR ?= "${WORKDIR}/go-tmp" | ||
27 | GOTMPDIR[vardepvalue] = "" | ||
28 | export CGO_ENABLED = "1" | ||
29 | |||
30 | do_compile_prepend() { | ||
31 | BUILD_CC=${BUILD_CC} | ||
32 | } | ||