diff options
| -rw-r--r-- | recipes-containers/cri-tools/cri-tools/0001-build-allow-environmental-CGO-settings-and-pass-dont.patch | 21 | ||||
| -rw-r--r-- | recipes-containers/cri-tools/cri-tools_git.bb | 6 |
2 files changed, 12 insertions, 15 deletions
diff --git a/recipes-containers/cri-tools/cri-tools/0001-build-allow-environmental-CGO-settings-and-pass-dont.patch b/recipes-containers/cri-tools/cri-tools/0001-build-allow-environmental-CGO-settings-and-pass-dont.patch index 5772c1ae..afd7c4bf 100644 --- a/recipes-containers/cri-tools/cri-tools/0001-build-allow-environmental-CGO-settings-and-pass-dont.patch +++ b/recipes-containers/cri-tools/cri-tools/0001-build-allow-environmental-CGO-settings-and-pass-dont.patch | |||
| @@ -33,20 +33,17 @@ Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> | |||
| 33 | src/import/Makefile | 3 ++- | 33 | src/import/Makefile | 3 ++- |
| 34 | 1 file changed, 2 insertions(+), 1 deletion(-) | 34 | 1 file changed, 2 insertions(+), 1 deletion(-) |
| 35 | 35 | ||
| 36 | diff --git a/Makefile b/Makefile | 36 | Index: cri-tools-1.21.0+gitfa50f4af0f6beba20264bfb3fd4d1d34e42f7b54/src/import/Makefile |
| 37 | index acf0fc0..130988c 100644 | 37 | =================================================================== |
| 38 | --- a/src/import/Makefile | 38 | --- cri-tools-1.21.0+gitfa50f4af0f6beba20264bfb3fd4d1d34e42f7b54.orig/src/import/Makefile |
| 39 | +++ b/src/import/Makefile | 39 | +++ cri-tools-1.21.0+gitfa50f4af0f6beba20264bfb3fd4d1d34e42f7b54/src/import/Makefile |
| 40 | @@ -63,7 +63,8 @@ critest: | 40 | @@ -73,7 +73,8 @@ |
| 41 | $(PROJECT)/cmd/critest | 41 | @$(MAKE) -B $(CRICTL) |
| 42 | 42 | ||
| 43 | crictl: | 43 | $(CRICTL): |
| 44 | - CGO_ENABLED=0 $(GO_BUILD) -o $(CURDIR)/_output/crictl$(BIN_EXT) \ | 44 | - CGO_ENABLED=0 $(GO_BUILD) -o $@ \ |
| 45 | + $(GO_BUILD) -o $(CURDIR)/_output/crictl$(BIN_EXT) \ | 45 | + $(GO_BUILD) -o $@ \ |
| 46 | + -a -pkgdir dontusecurrentpkgs \ | 46 | + -a -pkgdir dontusecurrentpkgs \ |
| 47 | -ldflags '$(GO_LDFLAGS)' \ | 47 | -ldflags '$(GO_LDFLAGS)' \ |
| 48 | -tags '$(BUILDTAGS)' \ | 48 | -tags '$(BUILDTAGS)' \ |
| 49 | $(PROJECT)/cmd/crictl | 49 | $(PROJECT)/cmd/crictl |
| 50 | -- | ||
| 51 | 2.19.1 | ||
| 52 | |||
diff --git a/recipes-containers/cri-tools/cri-tools_git.bb b/recipes-containers/cri-tools/cri-tools_git.bb index 17ddbd02..ad054e1c 100644 --- a/recipes-containers/cri-tools/cri-tools_git.bb +++ b/recipes-containers/cri-tools/cri-tools_git.bb | |||
| @@ -16,7 +16,7 @@ What is not in scope for this project? \ | |||
| 16 | non-exist on the kube-apiserver. \ | 16 | non-exist on the kube-apiserver. \ |
| 17 | " | 17 | " |
| 18 | 18 | ||
| 19 | SRCREV_cri-tools = "ec9e336fd8c21c4bab89a6aed2c4a138c8cfae75" | 19 | SRCREV_cri-tools = "fa50f4af0f6beba20264bfb3fd4d1d34e42f7b54" |
| 20 | SRC_URI = "\ | 20 | SRC_URI = "\ |
| 21 | git://github.com/kubernetes-sigs/cri-tools.git;branch=master;name=cri-tools \ | 21 | git://github.com/kubernetes-sigs/cri-tools.git;branch=master;name=cri-tools \ |
| 22 | file://0001-build-allow-environmental-CGO-settings-and-pass-dont.patch \ | 22 | file://0001-build-allow-environmental-CGO-settings-and-pass-dont.patch \ |
| @@ -27,7 +27,7 @@ LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=e3fc50a88d0a364313df4b21ef20c2 | |||
| 27 | 27 | ||
| 28 | GO_IMPORT = "import" | 28 | GO_IMPORT = "import" |
| 29 | 29 | ||
| 30 | PV = "1.20.0+git${SRCREV_cri-tools}" | 30 | PV = "1.21.0+git${SRCREV_cri-tools}" |
| 31 | 31 | ||
| 32 | RPROVIDES_${PN} += "crictl" | 32 | RPROVIDES_${PN} += "crictl" |
| 33 | PACKAGES =+ "${PN}-critest" | 33 | PACKAGES =+ "${PN}-critest" |
| @@ -63,7 +63,7 @@ do_compile() { | |||
| 63 | 63 | ||
| 64 | do_install() { | 64 | do_install() { |
| 65 | install -d ${D}${bindir} | 65 | install -d ${D}${bindir} |
| 66 | install -m 755 -D ${S}/src/import/_output/* ${D}/${bindir} | 66 | install -m 755 -D ${S}/src/import/build/bin/* ${D}/${bindir} |
| 67 | } | 67 | } |
| 68 | 68 | ||
| 69 | FILES_${PN}-critest = "${bindir}/critest" | 69 | FILES_${PN}-critest = "${bindir}/critest" |
