diff options
| author | Soumya Sambu <soumya.sambu@windriver.com> | 2023-11-13 03:58:48 +0000 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2023-11-21 04:07:47 +0000 |
| commit | 72ef3ba3b2044ca979a7db833d3b60847a84efea (patch) | |
| tree | 63d226544ffc15b62a28cd163d0b0d442835de90 | |
| parent | 478a91800c4a95c7410dc8ef52e229a81be24b4e (diff) | |
| download | meta-virtualization-72ef3ba3b2044ca979a7db833d3b60847a84efea.tar.gz | |
kubernetes: Adjust patches to resolve error that occur with devtool
Adjust patches and .bb to fix below error which occurs with devtool modify command -
ERROR: Applying patch '0001-hack-lib-golang.sh-use-CC-from-environment.patch' on
target directory
CmdError('sh -c \'PATCHFILE="0001-hack-lib-golang.sh-use-CC-from-environment.patch"
git -c user.name="OpenEmbedded" -c user.email="oe.patch@oe" commit -F /tmp/tmp_ptvioq3
--author="Koen Kooi <koen.kooi@linaro.org>"
--date="Mon, 23 Jul 2018 15:28:02 +0200"\'', 0, 'stdout: On branch devtool
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
(commit or discard the untracked or modified content in submodules)
\tmodified: src/import (modified content)
no changes added to commit (use "git add" and/or "git commit -a")
stderr: ')
This error is not seen on master branch, fixed with below commit -
[https://git.yoctoproject.org/meta-virtualization/commit/?id=d9af46db9aa9060c1ec10118b2cccabfc8264904]
Signed-off-by: Soumya Sambu <soumya.sambu@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
5 files changed, 33 insertions, 29 deletions
diff --git a/recipes-containers/kubernetes/kubernetes/0001-Makefile.generated_files-Fix-race-issue-for-installi.patch b/recipes-containers/kubernetes/kubernetes/0001-Makefile.generated_files-Fix-race-issue-for-installi.patch index 02bb5e91..1b08b8c3 100644 --- a/recipes-containers/kubernetes/kubernetes/0001-Makefile.generated_files-Fix-race-issue-for-installi.patch +++ b/recipes-containers/kubernetes/kubernetes/0001-Makefile.generated_files-Fix-race-issue-for-installi.patch | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | From 441df8a24a2c80e320f140b5d9bc352c7ce8a64a Mon Sep 17 00:00:00 2001 | 1 | From 441df8a24a2c80e320f140b5d9bc352c7ce8a64a Mon Sep 17 00:00:00 2001 |
| 2 | From: Robert Yang <liezhi.yang@windriver.com> | 2 | From: Robert Yang <liezhi.yang@windriver.com> |
| 3 | Date: Thu, 15 Oct 2020 07:27:35 +0000 | 3 | Date: Thu, 15 Oct 2020 07:27:35 +0000 |
| 4 | Subject: [PATCH] src/import/build/root/Makefile.generated_files: Fix race issue for installing | 4 | Subject: [PATCH] src/import/build/root/Makefile.generated_files: Fix race issue for installing |
| 5 | go2make | 5 | go2make |
| 6 | 6 | ||
| 7 | The src/import/build/root/Makefile.generated_files are called several times during the build, so the | 7 | The src/import/build/root/Makefile.generated_files are called several times during the build, so the |
| @@ -25,14 +25,14 @@ Upstream-Status: Pending | |||
| 25 | 25 | ||
| 26 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | 26 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> |
| 27 | --- | 27 | --- |
| 28 | src/import/build/root/Makefile.generated_files | 4 +++- | 28 | build/root/Makefile.generated_files | 4 +++- |
| 29 | 1 file changed, 3 insertions(+), 1 deletion(-) | 29 | 1 file changed, 3 insertions(+), 1 deletion(-) |
| 30 | 30 | ||
| 31 | Index: kubernetes-v1.21.1+git45da3fc33872083fb225c1a8c4d03e530d6f7630/src/import/build/root/Makefile.generated_files | 31 | diff --git a/build/root/Makefile.generated_files b/build/root/Makefile.generated_files |
| 32 | =================================================================== | 32 | index d86a90cbb39..19a3d332476 100644 |
| 33 | --- kubernetes-v1.21.1+git45da3fc33872083fb225c1a8c4d03e530d6f7630.orig/src/import/build/root/Makefile.generated_files | 33 | --- a/build/root/Makefile.generated_files |
| 34 | +++ kubernetes-v1.21.1+git45da3fc33872083fb225c1a8c4d03e530d6f7630/src/import/build/root/Makefile.generated_files | 34 | +++ b/build/root/Makefile.generated_files |
| 35 | @@ -67,7 +67,9 @@ | 35 | @@ -67,7 +67,9 @@ $(META_DIR)/$(GO_PKGDEPS_FILE): FORCE |
| 36 | if [[ "$(DBG_CODEGEN)" == 1 ]]; then \ | 36 | if [[ "$(DBG_CODEGEN)" == 1 ]]; then \ |
| 37 | echo "DBG: calculating Go dependencies"; \ | 37 | echo "DBG: calculating Go dependencies"; \ |
| 38 | fi | 38 | fi |
| @@ -43,3 +43,5 @@ Index: kubernetes-v1.21.1+git45da3fc33872083fb225c1a8c4d03e530d6f7630/src/import | |||
| 43 | hack/run-in-gopath.sh go2make \ | 43 | hack/run-in-gopath.sh go2make \ |
| 44 | k8s.io/kubernetes/... \ | 44 | k8s.io/kubernetes/... \ |
| 45 | --prune k8s.io/kubernetes/staging \ | 45 | --prune k8s.io/kubernetes/staging \ |
| 46 | -- | ||
| 47 | 2.40.0 | ||
diff --git a/recipes-containers/kubernetes/kubernetes/0001-build-golang.sh-convert-remaining-go-calls-to-use.patch b/recipes-containers/kubernetes/kubernetes/0001-build-golang.sh-convert-remaining-go-calls-to-use.patch index 8adbafb3..00425c7d 100644 --- a/recipes-containers/kubernetes/kubernetes/0001-build-golang.sh-convert-remaining-go-calls-to-use.patch +++ b/recipes-containers/kubernetes/kubernetes/0001-build-golang.sh-convert-remaining-go-calls-to-use.patch | |||
| @@ -8,11 +8,11 @@ Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> | |||
| 8 | hack/lib/golang.sh | 8 ++++---- | 8 | hack/lib/golang.sh | 8 ++++---- |
| 9 | 1 file changed, 4 insertions(+), 4 deletions(-) | 9 | 1 file changed, 4 insertions(+), 4 deletions(-) |
| 10 | 10 | ||
| 11 | diff --git a/src/import/hack/lib/golang.sh b/src/import/hack/lib/golang.sh | 11 | diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh |
| 12 | index e9148ec08fa..71d3c987563 100755 | 12 | index d0f4b00dadf..cef0c2075a3 100755 |
| 13 | --- a/src/import/hack/lib/golang.sh | 13 | --- a/hack/lib/golang.sh |
| 14 | +++ b/src/import/hack/lib/golang.sh | 14 | +++ b/hack/lib/golang.sh |
| 15 | @@ -651,7 +651,7 @@ kube::golang::build_some_binaries() { | 15 | @@ -654,7 +654,7 @@ kube::golang::build_some_binaries() { |
| 16 | kube::golang::create_coverage_dummy_test "${package}" | 16 | kube::golang::create_coverage_dummy_test "${package}" |
| 17 | kube::util::trap_add "kube::golang::delete_coverage_dummy_test \"${package}\"" EXIT | 17 | kube::util::trap_add "kube::golang::delete_coverage_dummy_test \"${package}\"" EXIT |
| 18 | 18 | ||
| @@ -21,7 +21,7 @@ index e9148ec08fa..71d3c987563 100755 | |||
| 21 | -covermode count \ | 21 | -covermode count \ |
| 22 | -coverpkg k8s.io/...,k8s.io/kubernetes/vendor/k8s.io/... \ | 22 | -coverpkg k8s.io/...,k8s.io/kubernetes/vendor/k8s.io/... \ |
| 23 | "${build_args[@]}" \ | 23 | "${build_args[@]}" \ |
| 24 | @@ -663,13 +663,13 @@ kube::golang::build_some_binaries() { | 24 | @@ -666,13 +666,13 @@ kube::golang::build_some_binaries() { |
| 25 | done | 25 | done |
| 26 | if [[ "${#uncovered[@]}" != 0 ]]; then | 26 | if [[ "${#uncovered[@]}" != 0 ]]; then |
| 27 | V=2 kube::log::info "Building ${uncovered[*]} without coverage..." | 27 | V=2 kube::log::info "Building ${uncovered[*]} without coverage..." |
| @@ -37,7 +37,7 @@ index e9148ec08fa..71d3c987563 100755 | |||
| 37 | fi | 37 | fi |
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | @@ -725,7 +725,7 @@ kube::golang::build_binaries_for_platform() { | 40 | @@ -730,7 +730,7 @@ kube::golang::build_binaries_for_platform() { |
| 41 | testpkg=$(dirname "${test}") | 41 | testpkg=$(dirname "${test}") |
| 42 | 42 | ||
| 43 | mkdir -p "$(dirname "${outfile}")" | 43 | mkdir -p "$(dirname "${outfile}")" |
| @@ -47,5 +47,5 @@ index e9148ec08fa..71d3c987563 100755 | |||
| 47 | -gcflags "${gogcflags:-}" \ | 47 | -gcflags "${gogcflags:-}" \ |
| 48 | -asmflags "${goasmflags:-}" \ | 48 | -asmflags "${goasmflags:-}" \ |
| 49 | -- | 49 | -- |
| 50 | 2.19.1 | 50 | 2.40.0 |
| 51 | 51 | ||
diff --git a/recipes-containers/kubernetes/kubernetes/0001-cross-don-t-build-tests-by-default.patch b/recipes-containers/kubernetes/kubernetes/0001-cross-don-t-build-tests-by-default.patch index 659e3013..cd5e46f1 100644 --- a/recipes-containers/kubernetes/kubernetes/0001-cross-don-t-build-tests-by-default.patch +++ b/recipes-containers/kubernetes/kubernetes/0001-cross-don-t-build-tests-by-default.patch | |||
| @@ -15,10 +15,10 @@ Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> | |||
| 15 | hack/make-rules/cross.sh | 4 ++-- | 15 | hack/make-rules/cross.sh | 4 ++-- |
| 16 | 1 file changed, 2 insertions(+), 2 deletions(-) | 16 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 17 | 17 | ||
| 18 | diff --git a/src/import/hack/make-rules/cross.sh b/hack/make-rules/cross.sh | 18 | diff --git a/hack/make-rules/cross.sh b/hack/make-rules/cross.sh |
| 19 | index 8e1e938..0898c5c 100755 | 19 | index f8a6d0dbf5e..d22bf52b1cc 100755 |
| 20 | --- a/src/import/hack/make-rules/cross.sh | 20 | --- a/hack/make-rules/cross.sh |
| 21 | +++ b/src/import/hack/make-rules/cross.sh | 21 | +++ b/hack/make-rules/cross.sh |
| 22 | @@ -33,6 +33,6 @@ make all WHAT="${KUBE_NODE_TARGETS[*]}" KUBE_BUILD_PLATFORMS="${KUBE_NODE_PLATFO | 22 | @@ -33,6 +33,6 @@ make all WHAT="${KUBE_NODE_TARGETS[*]}" KUBE_BUILD_PLATFORMS="${KUBE_NODE_PLATFO |
| 23 | 23 | ||
| 24 | make all WHAT="${KUBE_CLIENT_TARGETS[*]}" KUBE_BUILD_PLATFORMS="${KUBE_CLIENT_PLATFORMS[*]}" | 24 | make all WHAT="${KUBE_CLIENT_TARGETS[*]}" KUBE_BUILD_PLATFORMS="${KUBE_CLIENT_PLATFORMS[*]}" |
| @@ -29,5 +29,5 @@ index 8e1e938..0898c5c 100755 | |||
| 29 | -make all WHAT="${KUBE_TEST_SERVER_TARGETS[*]}" KUBE_BUILD_PLATFORMS="${KUBE_TEST_SERVER_PLATFORMS[*]}" | 29 | -make all WHAT="${KUBE_TEST_SERVER_TARGETS[*]}" KUBE_BUILD_PLATFORMS="${KUBE_TEST_SERVER_PLATFORMS[*]}" |
| 30 | +#make all WHAT="${KUBE_TEST_SERVER_TARGETS[*]}" KUBE_BUILD_PLATFORMS="${KUBE_TEST_SERVER_PLATFORMS[*]}" | 30 | +#make all WHAT="${KUBE_TEST_SERVER_TARGETS[*]}" KUBE_BUILD_PLATFORMS="${KUBE_TEST_SERVER_PLATFORMS[*]}" |
| 31 | -- | 31 | -- |
| 32 | 2.7.4 | 32 | 2.40.0 |
| 33 | 33 | ||
diff --git a/recipes-containers/kubernetes/kubernetes/0001-hack-lib-golang.sh-use-CC-from-environment.patch b/recipes-containers/kubernetes/kubernetes/0001-hack-lib-golang.sh-use-CC-from-environment.patch index 3a22a2ef..8684a94a 100644 --- a/recipes-containers/kubernetes/kubernetes/0001-hack-lib-golang.sh-use-CC-from-environment.patch +++ b/recipes-containers/kubernetes/kubernetes/0001-hack-lib-golang.sh-use-CC-from-environment.patch | |||
| @@ -11,11 +11,11 @@ Signed-off-by: Koen Kooi <koen.kooi@linaro.org> | |||
| 11 | hack/lib/golang.sh | 4 ---- | 11 | hack/lib/golang.sh | 4 ---- |
| 12 | 1 file changed, 4 deletions(-) | 12 | 1 file changed, 4 deletions(-) |
| 13 | 13 | ||
| 14 | Index: kubernetes-v1.21.1+git45da3fc33872083fb225c1a8c4d03e530d6f7630/src/import/hack/lib/golang.sh | 14 | diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh |
| 15 | =================================================================== | 15 | index e16a60d1867..d0f4b00dadf 100755 |
| 16 | --- kubernetes-v1.21.1+git45da3fc33872083fb225c1a8c4d03e530d6f7630.orig/src/import/hack/lib/golang.sh | 16 | --- a/hack/lib/golang.sh |
| 17 | +++ kubernetes-v1.21.1+git45da3fc33872083fb225c1a8c4d03e530d6f7630/src/import/hack/lib/golang.sh | 17 | +++ b/hack/lib/golang.sh |
| 18 | @@ -414,19 +414,15 @@ | 18 | @@ -420,19 +420,15 @@ kube::golang::set_platform_envs() { |
| 19 | ;; | 19 | ;; |
| 20 | "linux/arm") | 20 | "linux/arm") |
| 21 | export CGO_ENABLED=1 | 21 | export CGO_ENABLED=1 |
| @@ -35,3 +35,5 @@ Index: kubernetes-v1.21.1+git45da3fc33872083fb225c1a8c4d03e530d6f7630/src/import | |||
| 35 | ;; | 35 | ;; |
| 36 | esac | 36 | esac |
| 37 | fi | 37 | fi |
| 38 | -- | ||
| 39 | 2.40.0 | ||
diff --git a/recipes-containers/kubernetes/kubernetes_git.bb b/recipes-containers/kubernetes/kubernetes_git.bb index f475bd73..59892c92 100644 --- a/recipes-containers/kubernetes/kubernetes_git.bb +++ b/recipes-containers/kubernetes/kubernetes_git.bb | |||
| @@ -26,10 +26,10 @@ SRC_URI = "git://github.com/kubernetes/kubernetes.git;branch=release-1.23;name=k | |||
| 26 | git://github.com/kubernetes/release;branch=master;name=kubernetes-release;destsuffix=git/release;protocol=https" | 26 | git://github.com/kubernetes/release;branch=master;name=kubernetes-release;destsuffix=git/release;protocol=https" |
| 27 | 27 | ||
| 28 | SRC_URI:append = " \ | 28 | SRC_URI:append = " \ |
| 29 | file://0001-hack-lib-golang.sh-use-CC-from-environment.patch \ | 29 | file://0001-hack-lib-golang.sh-use-CC-from-environment.patch;patchdir=src/import \ |
| 30 | file://0001-cross-don-t-build-tests-by-default.patch \ | 30 | file://0001-cross-don-t-build-tests-by-default.patch;patchdir=src/import \ |
| 31 | file://0001-build-golang.sh-convert-remaining-go-calls-to-use.patch \ | 31 | file://0001-build-golang.sh-convert-remaining-go-calls-to-use.patch;patchdir=src/import \ |
| 32 | file://0001-Makefile.generated_files-Fix-race-issue-for-installi.patch \ | 32 | file://0001-Makefile.generated_files-Fix-race-issue-for-installi.patch;patchdir=src/import \ |
| 33 | file://cni-containerd-net.conflist \ | 33 | file://cni-containerd-net.conflist \ |
| 34 | file://k8s-init \ | 34 | file://k8s-init \ |
| 35 | file://99-kubernetes.conf \ | 35 | file://99-kubernetes.conf \ |
