diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index b1ea9e5a28..f5aa69d871 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -883,6 +883,13 @@ (define-public go-1.21 (substitute* "src/cmd/go/testdata/script/cgo_path_space.txt" (("/bin/sh") (which "sh"))))) + (add-after 'unpack 'remove-failing-test + (lambda _ + ;; This test fails with newer gcc's + ;; https://github.com/golang/go/issues/57691 + (substitute* "src/cmd/cgo/internal/testsanitizers/asan_test.go" + ((".*arena_fail.*") "")))) + (add-after 'enable-external-linking 'enable-external-linking-1.21 (lambda _ ;; Invoke GCC to link any archives created with GCC (that is,