From 60142aa29ab77695f557737293d19d47bff7eeef Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Thu, 1 Nov 2018 10:38:23 -0400 Subject: kubernetes: uprev to v1.12 release and fix cross compilation errors The update to go 1.11 exposed some issues with the cross compilation of kubernetes. The best way to fix those issues is to uprev to 1.12 and to inhibit the building of the test modules (which query the host for infrastructure that is not present). Signed-off-by: Bruce Ashfield --- .../0001-cross-don-t-build-tests-by-default.patch | 33 ++++++++++++++++++++++ recipes-containers/kubernetes/kubernetes_git.bb | 7 +++-- 2 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 recipes-containers/kubernetes/kubernetes/0001-cross-don-t-build-tests-by-default.patch 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 new file mode 100644 index 00000000..659e3013 --- /dev/null +++ b/recipes-containers/kubernetes/kubernetes/0001-cross-don-t-build-tests-by-default.patch @@ -0,0 +1,33 @@ +From fa912b53186a047d787c8c456156b9dbdcdf040d Mon Sep 17 00:00:00 2001 +From: Bruce Ashfield +Date: Thu, 1 Nov 2018 10:21:10 -0400 +Subject: [PATCH] cross: don't build tests by default + +The hack/* build infrastructure doesn't respect the WHAT= commands +that the make infrastructure provides to limit what is built. + +In our case, we are cross building and can't build the server test +components without error. As such, we patch the targets out of the +script to allow a successful build. + +Signed-off-by: Bruce Ashfield +--- + hack/make-rules/cross.sh | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/import/hack/make-rules/cross.sh b/hack/make-rules/cross.sh +index 8e1e938..0898c5c 100755 +--- a/src/import/hack/make-rules/cross.sh ++++ b/src/import/hack/make-rules/cross.sh +@@ -33,6 +33,6 @@ make all WHAT="${KUBE_NODE_TARGETS[*]}" KUBE_BUILD_PLATFORMS="${KUBE_NODE_PLATFO + + make all WHAT="${KUBE_CLIENT_TARGETS[*]}" KUBE_BUILD_PLATFORMS="${KUBE_CLIENT_PLATFORMS[*]}" + +-make all WHAT="${KUBE_TEST_TARGETS[*]}" KUBE_BUILD_PLATFORMS="${KUBE_TEST_PLATFORMS[*]}" ++#make all WHAT="${KUBE_TEST_TARGETS[*]}" KUBE_BUILD_PLATFORMS="${KUBE_TEST_PLATFORMS[*]}" + +-make all WHAT="${KUBE_TEST_SERVER_TARGETS[*]}" KUBE_BUILD_PLATFORMS="${KUBE_TEST_SERVER_PLATFORMS[*]}" ++#make all WHAT="${KUBE_TEST_SERVER_TARGETS[*]}" KUBE_BUILD_PLATFORMS="${KUBE_TEST_SERVER_PLATFORMS[*]}" +-- +2.7.4 + diff --git a/recipes-containers/kubernetes/kubernetes_git.bb b/recipes-containers/kubernetes/kubernetes_git.bb index a7e9bf90..c3810b0d 100644 --- a/recipes-containers/kubernetes/kubernetes_git.bb +++ b/recipes-containers/kubernetes/kubernetes_git.bb @@ -7,11 +7,12 @@ maintenance, and scaling of applications. \ # Note: 1.11+ requires go 1.10.2+, so the following must be set # in your configuration: GOVERSION = "1.10%" -PV = "1.11.0+git${SRCREV_kubernetes}" -SRCREV_kubernetes = "210c9cd7e1782e9fe46938fe0368556f2166a528" +PV = "1.12.0+git${SRCREV_kubernetes}" +SRCREV_kubernetes = "d93ba8b6d1e2afcb30da3e354928ed00e6682223" -SRC_URI = "git://github.com/kubernetes/kubernetes.git;branch=release-1.11;name=kubernetes \ +SRC_URI = "git://github.com/kubernetes/kubernetes.git;branch=release-1.12;name=kubernetes \ file://0001-hack-lib-golang.sh-use-CC-from-environment.patch \ + file://0001-cross-don-t-build-tests-by-default.patch \ " DEPENDS += "rsync-native \ -- cgit v1.2.3-54-g00ecf