summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2021-04-15 22:45:13 -0400
committerBruce Ashfield <bruce.ashfield@gmail.com>2021-04-15 22:45:13 -0400
commit47cb6b4e1833f4e3fd54d8fdd6dbbd3752a0a0ba (patch)
tree80ebe7bd2a6dcc40e90f4f2a54629b69c2785912
parent2cc2bc1acf8d132c1d88d763c67b82bdb87cb886 (diff)
downloadmeta-virtualization-47cb6b4e1833f4e3fd54d8fdd6dbbd3752a0a0ba.tar.gz
containerd: update to v1.5.x series
Bumping containerd to the 1.5.x development series. We refresh patches and add new build dependencies, but otherwise the overall structure is the same. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r--recipes-containers/containerd/containerd-opencontainers_git.bb9
-rw-r--r--recipes-containers/containerd/files/0001-build-use-oe-provided-GO-and-flags.patch36
2 files changed, 20 insertions, 25 deletions
diff --git a/recipes-containers/containerd/containerd-opencontainers_git.bb b/recipes-containers/containerd/containerd-opencontainers_git.bb
index efa3626f..c0145b7b 100644
--- a/recipes-containers/containerd/containerd-opencontainers_git.bb
+++ b/recipes-containers/containerd/containerd-opencontainers_git.bb
@@ -5,8 +5,8 @@ DESCRIPTION = "containerd is a daemon to control runC, built for performance and
5 support as well as checkpoint and restore for cloning and live migration of containers." 5 support as well as checkpoint and restore for cloning and live migration of containers."
6 6
7 7
8SRCREV = "33d90b72d1e44987118ac111d4f7a108d412099b" 8SRCREV = "6ef0d383e360e1c13be75656df83612bda0775fe"
9SRC_URI = "git://github.com/containerd/containerd;branch=release/1.4 \ 9SRC_URI = "git://github.com/containerd/containerd;branch=master \
10 file://0001-build-use-oe-provided-GO-and-flags.patch \ 10 file://0001-build-use-oe-provided-GO-and-flags.patch \
11 file://0001-Add-build-option-GODEBUG-1.patch \ 11 file://0001-Add-build-option-GODEBUG-1.patch \
12 " 12 "
@@ -15,7 +15,7 @@ SRC_URI = "git://github.com/containerd/containerd;branch=release/1.4 \
15LICENSE = "Apache-2.0" 15LICENSE = "Apache-2.0"
16LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=1269f40c0d099c21a871163984590d89" 16LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=1269f40c0d099c21a871163984590d89"
17 17
18CONTAINERD_VERSION = "v1.4.3" 18CONTAINERD_VERSION = "v1.5.0-rc"
19 19
20EXTRA_OEMAKE += "GODEBUG=1" 20EXTRA_OEMAKE += "GODEBUG=1"
21 21
@@ -53,7 +53,8 @@ do_compile() {
53 for c in content timeout ttrpcutil oom stdio process errdefs fs images mount snapshots linux api runtimes defaults progress \ 53 for c in content timeout ttrpcutil oom stdio process errdefs fs images mount snapshots linux api runtimes defaults progress \
54 protobuf reference diff platforms runtime remotes version archive dialer gc metadata \ 54 protobuf reference diff platforms runtime remotes version archive dialer gc metadata \
55 metrics filters identifiers labels leases plugin server services \ 55 metrics filters identifiers labels leases plugin server services \
56 cmd cio containers namespaces oci events log reaper sys rootfs nvidia seed apparmor seccomp; do 56 cmd cio containers namespaces oci events log reaper sys rootfs nvidia seed apparmor seccomp \
57 cap cri userns atomic ioutil os registrar seutil runtimeoptions netns; do
57 if [ -d ${S}/src/import/${c} ]; then 58 if [ -d ${S}/src/import/${c} ]; then
58 ln -sfn ${S}/src/import/${c} ${S}/src/import/vendor/github.com/containerd/containerd/${c} 59 ln -sfn ${S}/src/import/${c} ${S}/src/import/vendor/github.com/containerd/containerd/${c}
59 fi 60 fi
diff --git a/recipes-containers/containerd/files/0001-build-use-oe-provided-GO-and-flags.patch b/recipes-containers/containerd/files/0001-build-use-oe-provided-GO-and-flags.patch
index a58feed1..544881ef 100644
--- a/recipes-containers/containerd/files/0001-build-use-oe-provided-GO-and-flags.patch
+++ b/recipes-containers/containerd/files/0001-build-use-oe-provided-GO-and-flags.patch
@@ -14,9 +14,18 @@ Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
14 14
15Index: git/src/import/Makefile 15Index: git/src/import/Makefile
16=================================================================== 16===================================================================
17--- git.orig/src/import/Makefile 2020-10-12 07:36:18.775820388 -0700 17--- git.orig/src/import/Makefile
18+++ git/src/import/Makefile 2020-10-12 08:00:05.134151221 -0700 18+++ git/src/import/Makefile
19@@ -163,19 +163,19 @@ 19@@ -121,7 +121,7 @@
20 TESTFLAGS_PARALLEL ?= 8
21
22 # Use this to replace `go test` with, for instance, `gotestsum`
23-GOTEST ?= go test
24+GOTEST ?= $(GO) test
25
26 OUTPUTDIR = $(join $(ROOTDIR), _output)
27 CRIDIR=$(OUTPUTDIR)/cri
28@@ -169,7 +169,7 @@
20 29
21 build: ## build the go packages 30 build: ## build the go packages
22 @echo "$(WHALE) $@" 31 @echo "$(WHALE) $@"
@@ -25,31 +34,16 @@ Index: git/src/import/Makefile
25 34
26 test: ## run tests, except integration tests and tests that require root 35 test: ## run tests, except integration tests and tests that require root
27 @echo "$(WHALE) $@" 36 @echo "$(WHALE) $@"
28- @go test ${TESTFLAGS} $(filter-out ${INTEGRATION_PACKAGE},${PACKAGES}) 37@@ -201,7 +201,7 @@
29+ @$(GO) test ${TESTFLAGS} $(filter-out ${INTEGRATION_PACKAGE},${PACKAGES})
30
31 root-test: ## run tests, except integration tests
32 @echo "$(WHALE) $@"
33- @go test ${TESTFLAGS} $(filter-out ${INTEGRATION_PACKAGE},${TEST_REQUIRES_ROOT_PACKAGES}) -test.root
34+ @$(GO) test ${TESTFLAGS} $(filter-out ${INTEGRATION_PACKAGE},${TEST_REQUIRES_ROOT_PACKAGES}) -test.root
35
36 integration: ## run integration tests
37 @echo "$(WHALE) $@"
38- @go test ${TESTFLAGS} -test.root -parallel ${TESTFLAGS_PARALLEL}
39+ @$(GO) test ${TESTFLAGS} -test.root -parallel ${TESTFLAGS_PARALLEL}
40
41 benchmark: ## run benchmarks tests
42 @echo "$(WHALE) $@"
43@@ -185,7 +185,7 @@
44 38
45 define BUILD_BINARY = 39 define BUILD_BINARY
46 @echo "$(WHALE) $@" 40 @echo "$(WHALE) $@"
47-@go build ${DEBUG_GO_GCFLAGS} ${GO_GCFLAGS} ${GO_BUILD_FLAGS} -o $@ ${GO_LDFLAGS} ${GO_TAGS} ./$< 41-@go build ${DEBUG_GO_GCFLAGS} ${GO_GCFLAGS} ${GO_BUILD_FLAGS} -o $@ ${GO_LDFLAGS} ${GO_TAGS} ./$<
48+@$(GO) build ${DEBUG_GO_GCFLAGS} ${GO_GCFLAGS} ${GO_BUILD_FLAGS} -o $@ ${GO_LDFLAGS} ${GO_TAGS} ./$< 42+@$(GO) build ${DEBUG_GO_GCFLAGS} ${GO_GCFLAGS} ${GO_BUILD_FLAGS} -o $@ ${GO_LDFLAGS} ${GO_TAGS} ./$<
49 endef 43 endef
50 44
51 # Build a binary from a cmd. 45 # Build a binary from a cmd.
52@@ -194,15 +194,15 @@ 46@@ -210,15 +210,15 @@
53 47
54 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 48 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
55 @echo "$(WHALE) bin/containerd-shim" 49 @echo "$(WHALE) bin/containerd-shim"