gentoo-ebuilds/net-p2p/syncthing/files/syncthing-1.29.5-remove_race_in_tests.patch
Filip Kobierski 1e0dff7352
net-p2p/syncthing: port previously dropped patch
Closes: https://bugs.gentoo.org/955442
Signed-off-by: Filip Kobierski <fkobi@pm.me>
Part-of: https://github.com/gentoo/gentoo/pull/41941
Closes: https://github.com/gentoo/gentoo/pull/41941
Signed-off-by: Marc Schiffbauer <mschiff@gentoo.org>
2025-05-06 20:54:19 +02:00

15 lines
489 B
Diff

This patch removes conditional appending of "-race" flag.
It is needed as we build in PIE mode and race is incompatible with that.
https://bugs.gentoo.org/955442
--- a/build.go
+++ b/build.go
@@ -396,7 +396,7 @@
}
args = append(args, "-timeout", timeout)
- if runtime.GOARCH == "amd64" {
+ if false {
switch runtime.GOOS {
case buildpkg.Darwin, buildpkg.Linux, buildpkg.FreeBSD: // , "windows": # See https://github.com/golang/go/issues/27089
args = append(args, "-race")