commit: 0834da33ad9c8ff6423aa60099e93068b915cdbc Author: Kenton Groombridge <concord <AT> gentoo <DOT> org> AuthorDate: Thu May 29 15:16:06 2025 +0000 Commit: Kenton Groombridge <concord <AT> gentoo <DOT> org> CommitDate: Thu May 29 15:17:16 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0834da33
sys-cluster/kubelogin: fix tests Closes: https://bugs.gentoo.org/956756 Signed-off-by: Kenton Groombridge <concord <AT> gentoo.org> 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 c2e57739bdf7..6682c5333100 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} . }
