- Use git format-patch: 0001-Don-t-build-virtctl-for-darwin-and-windows.patch 0002-Don-t-use-Bazel-in-build-manifests.sh.patch - Drop patches: dont-build-virtctl-darwin.patch dont-use-bazel-in-build-manifests.patch fix-double-free-of-VirDomain.patch - Update to version 0.41.0 Release notes https://github.com/kubevirt/kubevirt/releases/tag/v0.41.0 OBS-URL: https://build.opensuse.org/request/show/894612 OBS-URL: https://build.opensuse.org/package/show/Virtualization/kubevirt?expand=0&rev=55
49 lines
1.6 KiB
Diff
49 lines
1.6 KiB
Diff
From 1228a2f14f4f3aeab91a43f7a71a74ecf61fb8f9 Mon Sep 17 00:00:00 2001
|
|
From: Vasiliy Ulyanov <vulyanov@suse.de>
|
|
Date: Thu, 20 May 2021 10:48:30 +0200
|
|
Subject: [PATCH 2/2] Don't use Bazel in build-manifests.sh
|
|
|
|
This is a partial revert of the commit
|
|
|
|
e410cdd77968dae258e83ccc0171e855b8678063
|
|
|
|
which switches to using Bazel during manifests build. That in turn
|
|
does not work well during OBS build since Bazel tends to download
|
|
dependencies from the web.
|
|
|
|
Signed-off-by: Vasiliy Ulyanov <vulyanov@suse.de>
|
|
---
|
|
hack/build-manifests.sh | 9 +++------
|
|
1 file changed, 3 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/hack/build-manifests.sh b/hack/build-manifests.sh
|
|
index c93f19e3f..abfd6fa07 100755
|
|
--- a/hack/build-manifests.sh
|
|
+++ b/hack/build-manifests.sh
|
|
@@ -33,19 +33,16 @@ kubevirt_logo_path="assets/kubevirt_logo.png"
|
|
rm -rf ${MANIFESTS_OUT_DIR}
|
|
rm -rf ${MANIFEST_TEMPLATES_OUT_DIR}
|
|
|
|
-rm -rf "${TESTS_OUT_DIR}/tools"
|
|
-mkdir -p "${TESTS_OUT_DIR}/tools"
|
|
-templator=${TESTS_OUT_DIR}/tools/manifest-templator
|
|
+templator=${KUBEVIRT_DIR}/tools/manifest-templator/manifest-templator
|
|
|
|
-bazel run \
|
|
- --config=${HOST_ARCHITECTURE} \
|
|
- //:build-manifest-templator -- ${templator}
|
|
+(cd ${KUBEVIRT_DIR}/tools/manifest-templator/ && go_build)
|
|
|
|
# first process file includes only
|
|
args=$(cd ${KUBEVIRT_DIR}/manifests && find . -type f -name "*.yaml.in" -not -path "./generated/*")
|
|
for arg in $args; do
|
|
infile=${KUBEVIRT_DIR}/manifests/${arg}
|
|
outfile=${KUBEVIRT_DIR}/manifests/${arg}.tmp
|
|
+
|
|
${templator} \
|
|
--process-files \
|
|
--generated-manifests-dir=${KUBEVIRT_DIR}/manifests/generated/ \
|
|
--
|
|
2.31.1
|
|
|