commit:     0a189a60d2fe987742bd7fa500eea55bfcdd5297
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 10 12:23:21 2023 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon Apr 10 12:23:56 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a189a60

app-metrics/go-carbon-0.17.1: fix tests, bug #904050

Closes: https://bugs.gentoo.org/904050
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 app-metrics/go-carbon/go-carbon-0.17.1.ebuild | 12 ++++++++++++
 1 file changed, 12 insertions(+)

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

Reply via email to