mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: Go 1.9: Fix test failure with binutils >= 2.31.
* gnu/packages/golang.scm (go-1.9)[arguments]: Add a substitution to the prebuild phase.
This commit is contained in:
parent
e8bd1946ec
commit
0a3e9bf621
1 changed files with 9 additions and 0 deletions
|
@ -273,6 +273,15 @@ (define-public go-1.9
|
|||
(string-append
|
||||
"\"-Wl,-rpath=" gcclib "\", \"-lgcc_s\", ")))
|
||||
|
||||
;; XXX Commit 65fa2b615b72c1fa61a7 in the Go repo. We do this
|
||||
;; without a patch because ((guix packages) patch-and-repack)
|
||||
;; resets file mtimes, and parts of Go's test suite rely on
|
||||
;; those timestamps.
|
||||
;; <https://github.com/golang/go/issues/26369>
|
||||
(substitute* "cmd/internal/objfile/elf.go"
|
||||
(("PT_LOAD")
|
||||
"PT_LOAD && p.Flags&elf.PF_X != 0"))
|
||||
|
||||
;; Disable failing tests: these tests attempt to access
|
||||
;; commands or network resources which are neither available
|
||||
;; nor necessary for the build to succeed.
|
||||
|
|
Loading…
Reference in a new issue