diff options
| author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2021-04-15 22:45:13 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2021-04-15 22:45:13 -0400 |
| commit | 47cb6b4e1833f4e3fd54d8fdd6dbbd3752a0a0ba (patch) | |
| tree | 80ebe7bd2a6dcc40e90f4f2a54629b69c2785912 /recipes-containers/containerd/files | |
| parent | 2cc2bc1acf8d132c1d88d763c67b82bdb87cb886 (diff) | |
| download | meta-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>
Diffstat (limited to 'recipes-containers/containerd/files')
| -rw-r--r-- | recipes-containers/containerd/files/0001-build-use-oe-provided-GO-and-flags.patch | 36 |
1 files changed, 15 insertions, 21 deletions
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 | ||
| 15 | Index: git/src/import/Makefile | 15 | Index: 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" |
