commit:     5df79dabdc16af046feb9aa98031799561aa705d
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Tue Jan  2 23:59:21 2024 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Tue Jan  2 23:59:21 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5df79dab

sys-cluster/kubectl: build with host version of go

Closes: https://bugs.gentoo.org/921231
Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 sys-cluster/kubectl/kubectl-1.28.5.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys-cluster/kubectl/kubectl-1.28.5.ebuild 
b/sys-cluster/kubectl/kubectl-1.28.5.ebuild
index c233d82f942a..4cd6aca347c3 100644
--- a/sys-cluster/kubectl/kubectl-1.28.5.ebuild
+++ b/sys-cluster/kubectl/kubectl-1.28.5.ebuild
@@ -20,7 +20,8 @@ S="${WORKDIR}/kubernetes-${PV}"
 
 src_compile() {
        CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')" \
-               emake -j1 GOFLAGS="" GOLDFLAGS="" LDFLAGS="" WHAT=cmd/${PN}
+               emake -j1 GOFLAGS="" GOLDFLAGS="" LDFLAGS="" FORCE_HOST_GO=yes \
+               WHAT=cmd/${PN}
 }
 
 src_install() {

Reply via email to