summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2023-04-10 14:23:21 +0200
committerFabian Groffen <grobian@gentoo.org>2023-04-10 14:23:56 +0200
commit0a189a60d2fe987742bd7fa500eea55bfcdd5297 (patch)
treedfe62ae2ed6d1faa5f703a391c1faa212d7cf1f2 /app-metrics
parentdev-ruby/activesupport: drop 6.0.5.1-r1 (diff)
downloadgentoo-0a189a60d2fe987742bd7fa500eea55bfcdd5297.tar.gz
gentoo-0a189a60d2fe987742bd7fa500eea55bfcdd5297.tar.bz2
gentoo-0a189a60d2fe987742bd7fa500eea55bfcdd5297.zip
app-metrics/go-carbon-0.17.1: fix tests, bug #904050
Closes: https://bugs.gentoo.org/904050 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'app-metrics')
-rw-r--r--app-metrics/go-carbon/go-carbon-0.17.1.ebuild12
1 files changed, 12 insertions, 0 deletions
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