summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasileios Anagnostopoulos <vasileios.anagnostopoulos@siemens.com>2022-08-30 08:55:29 +0200
committerBruce Ashfield <bruce.ashfield@gmail.com>2022-08-31 08:20:32 -0400
commit7106007c147c34aca9551c5e450851655623f991 (patch)
tree9fa2596e3e84eda84403af5cd602a438f1e253df
parentda285876dc69caa41064470922e45d922551f6b1 (diff)
downloadmeta-virtualization-7106007c147c34aca9551c5e450851655623f991.tar.gz
k3s: fix the version of k3s
When executing `k3s --version` the mentioned version `k3s version dev (HEAD)`. The root cause is, that the BUILD_FLAGS were not the expected ones. After that patch, the k3s is reporting the correct version. Signed-off-by: Vasileios Anagnostopoulos <vasileios.anagnostopoulos@siemens.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r--recipes-containers/k3s/k3s_git.bb4
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes-containers/k3s/k3s_git.bb b/recipes-containers/k3s/k3s_git.bb
index 34a19e8a..66ff523b 100644
--- a/recipes-containers/k3s/k3s_git.bb
+++ b/recipes-containers/k3s/k3s_git.bb
@@ -33,8 +33,8 @@ inherit cni_networking
33PACKAGECONFIG = "" 33PACKAGECONFIG = ""
34PACKAGECONFIG[upx] = ",,upx-native" 34PACKAGECONFIG[upx] = ",,upx-native"
35GO_IMPORT = "import" 35GO_IMPORT = "import"
36GO_BUILD_LDFLAGS = "-X github.com/rancher/k3s/pkg/version.Version=${PV} \ 36GO_BUILD_LDFLAGS = "-X github.com/k3s-io/k3s/pkg/version.Version=${PV} \
37 -X github.com/rancher/k3s/pkg/version.GitCommit=${@d.getVar('SRCREV_k3s', d, 1)[:8]} \ 37 -X github.com/k3s-io/k3s/pkg/version.GitCommit=${@d.getVar('SRCREV_k3s', d, 1)[:8]} \
38 -w -s \ 38 -w -s \
39 " 39 "
40BIN_PREFIX ?= "${exec_prefix}/local" 40BIN_PREFIX ?= "${exec_prefix}/local"