From 0a189a60d2fe987742bd7fa500eea55bfcdd5297 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Mon, 10 Apr 2023 14:23:21 +0200 Subject: app-metrics/go-carbon-0.17.1: fix tests, bug #904050 Closes: https://bugs.gentoo.org/904050 Signed-off-by: Fabian Groffen --- app-metrics/go-carbon/go-carbon-0.17.1.ebuild | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'app-metrics/go-carbon') diff --git a/app-metrics/go-carbon/go-carbon-0.17.1.ebuild b/app-metrics/go-carbon/go-carbon-0.17.1.ebuild index 5b808efaa023..2402f67a999f 100644 --- a/app-metrics/go-carbon/go-carbon-0.17.1.ebuild +++ b/app-metrics/go-carbon/go-carbon-0.17.1.ebuild @@ -18,6 +18,18 @@ RDEPEND="${DEPEND} acct-user/carbon" BDEPEND="" +src_prepare() { + export BUILD="gentoo-${PVR}" + + # bug 904050: -race conflicts with -buildmode=pie added by go-module + sed -i \ + -e '/make run-test COMMAND="test -race"/d' \ + -e '/make run-test COMMAND="vet"/d' \ + Makefile || die + + eapply_user +} + src_install() { insinto /etc/go-carbon doins "${S}"/go-carbon.conf.example -- cgit v1.2.3-65-gdbad