From 2d7392d44f0a42531a0302be16a54ac8daabd6f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20Hoffst=C3=A4tte?= Date: Thu, 4 Jul 2024 10:57:56 +0200 Subject: [PATCH] app-metrics/chrony_exporter: fix tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Disable the race detector for tests, which are all simple single-threaded input/output verification. Closes: https://bugs.gentoo.org/935442 Signed-off-by: Holger Hoffstätte Closes: https://github.com/gentoo/gentoo/pull/37424 Signed-off-by: Sam James --- app-metrics/chrony_exporter/chrony_exporter-0.10.1.ebuild | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app-metrics/chrony_exporter/chrony_exporter-0.10.1.ebuild b/app-metrics/chrony_exporter/chrony_exporter-0.10.1.ebuild index b24bc02e2e578..d264fa860fc56 100644 --- a/app-metrics/chrony_exporter/chrony_exporter-0.10.1.ebuild +++ b/app-metrics/chrony_exporter/chrony_exporter-0.10.1.ebuild @@ -20,6 +20,12 @@ DEPEND="acct-group/chrony_exporter BDEPEND="dev-util/promu" +src_prepare() { + default + # No need to enable the race detector for tests (#935442) + sed -i -e '/test-flags := -race/d' Makefile.common || die +} + src_compile() { promu build -v --cgo --prefix bin || die }