From 0834da33ad9c8ff6423aa60099e93068b915cdbc Mon Sep 17 00:00:00 2001 From: Kenton Groombridge Date: Thu, 29 May 2025 11:16:06 -0400 Subject: [PATCH] sys-cluster/kubelogin: fix tests Closes: https://bugs.gentoo.org/956756 Signed-off-by: Kenton Groombridge --- sys-cluster/kubelogin/kubelogin-1.32.4.ebuild | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sys-cluster/kubelogin/kubelogin-1.32.4.ebuild b/sys-cluster/kubelogin/kubelogin-1.32.4.ebuild index c2e57739bdf75..6682c5333100c 100644 --- a/sys-cluster/kubelogin/kubelogin-1.32.4.ebuild +++ b/sys-cluster/kubelogin/kubelogin-1.32.4.ebuild @@ -13,6 +13,15 @@ LICENSE="Apache-2.0 BSD BSD-2 ISC MIT" SLOT="0" KEYWORDS="~amd64 ~arm64" +src_prepare() { + default + + # -buildmode=pie not supported when -race is enabled + if [[ ${GOFLAGS} == *buildmode=pie* ]]; then + sed -e 's/ -race / /' -i Makefile || die + fi +} + src_compile() { ego build -ldflags="-s -w" -o ./bin/${PN} . }