summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2023-04-10 09:53:19 +0200
committerFabian Groffen <grobian@gentoo.org>2023-04-10 09:54:08 +0200
commit04a8d4d0f4e5f960f847796288237d71bfefdfc9 (patch)
treed46701a4144e88dc0ec7ddb766175e9858c2d90e /app-metrics
parentdev-ruby/activerecord: stabilize 6.0.6.1 for amd64 (diff)
downloadgentoo-04a8d4d0f4e5f960f847796288237d71bfefdfc9.tar.gz
gentoo-04a8d4d0f4e5f960f847796288237d71bfefdfc9.tar.bz2
gentoo-04a8d4d0f4e5f960f847796288237d71bfefdfc9.zip
app-metrics/carbonapi-booking-0.3.0: fix running tests
go-module injects -buildmode=pie which conflicts with -race Closes: https://bugs.gentoo.org/904051 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'app-metrics')
-rw-r--r--app-metrics/carbonapi-booking/carbonapi-booking-0.3.0.ebuild10
1 files changed, 10 insertions, 0 deletions
diff --git a/app-metrics/carbonapi-booking/carbonapi-booking-0.3.0.ebuild b/app-metrics/carbonapi-booking/carbonapi-booking-0.3.0.ebuild
index 1e309c4d679b..e8633fd600e7 100644
--- a/app-metrics/carbonapi-booking/carbonapi-booking-0.3.0.ebuild
+++ b/app-metrics/carbonapi-booking/carbonapi-booking-0.3.0.ebuild
@@ -21,6 +21,16 @@ RDEPEND="${DEPEND}
acct-user/carbon"
BDEPEND=""
+src_prepare() {
+ export VERSION="gentoo-${PVR}"
+
+ # bug 904051: disable data-race detection, conflicts with
+ # go-module's -buildmode=pie
+ sed -i -e 's/ -race / /' Makefile || die
+
+ eapply_user
+}
+
src_install() {
insinto /etc/carbonapi
doins -r "${S}"/config/*