diff options
author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2018-04-02 00:43:50 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2018-04-02 00:46:44 -0400 |
commit | 935e3d969ef1c0ce2f2a2719c31285be6114c8f9 (patch) | |
tree | c612b1127551795b4ccc7bb9ee5dd7c20af0b52b /recipes-containers/containerd/files/0001-containerd-shim-build-with-CGO.patch | |
parent | f5fbfa8ac4db1bab693e8f162dcab992787f244d (diff) | |
download | meta-virtualization-935e3d969ef1c0ce2f2a2719c31285be6114c8f9.tar.gz |
containerd: uprev to v1.0.2
Uprev containerd to v1.0.2 for compatibility with recent docker (18.04+)
builds.
With this uprev we also significantly restructure the build to use more
of the latest oe-core go build infrastructure, but non-standard parts of
the build remain.
We also allow containerd to be build with CGO enabled to avoid linkage
errors with the oe provided go build infrastructure.
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-containers/containerd/files/0001-containerd-shim-build-with-CGO.patch')
-rw-r--r-- | recipes-containers/containerd/files/0001-containerd-shim-build-with-CGO.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/recipes-containers/containerd/files/0001-containerd-shim-build-with-CGO.patch b/recipes-containers/containerd/files/0001-containerd-shim-build-with-CGO.patch new file mode 100644 index 00000000..3b890834 --- /dev/null +++ b/recipes-containers/containerd/files/0001-containerd-shim-build-with-CGO.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | From a1d2db9037b1302c4ce4cfc170a4fa443f68e594 Mon Sep 17 00:00:00 2001 | ||
2 | From: Bruce Ashfield <bruce.ashfield@windriver.com> | ||
3 | Date: Thu, 29 Mar 2018 15:48:41 -0400 | ||
4 | Subject: [PATCH] containerd-shim: build with CGO | ||
5 | |||
6 | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> | ||
7 | --- | ||
8 | Makefile | 2 +- | ||
9 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
10 | |||
11 | diff --git a/src/import/Makefile b/src/import/Makefile | ||
12 | index 9d8cf8a18fbc..1dff4e3c2043 100644 | ||
13 | --- a/src/import/Makefile | ||
14 | +++ b/src/import/Makefile | ||
15 | @@ -134,7 +134,7 @@ bin/%: cmd/% FORCE | ||
16 | |||
17 | bin/containerd-shim: cmd/containerd-shim FORCE # set !cgo and omit pie for a static shim build: https://github.com/golang/go/issues/17789#issuecomment-258542220 | ||
18 | @echo "$(WHALE) bin/containerd-shim" | ||
19 | - @CGO_ENABLED=0 go build -o bin/containerd-shim ${SHIM_GO_LDFLAGS} ${GO_TAGS} ./cmd/containerd-shim | ||
20 | + @go build -o bin/containerd-shim ${SHIM_GO_LDFLAGS} ${GO_TAGS} ./cmd/containerd-shim | ||
21 | |||
22 | binaries: $(BINARIES) ## build binaries | ||
23 | @echo "$(WHALE) $@" | ||
24 | -- | ||
25 | 2.4.0.53.g8440f74 | ||
26 | |||