Commit graph

126 commits

Author SHA1 Message Date
Robin Gloster
8031cba2ab Merge remote-tracking branch 'upstream/master' into hardened-stdenv 2016-06-10 09:27:04 +00:00
rushmorem
0e262f52f3 go: v1.5.3 -> v1.5.4 2016-06-09 19:18:07 +02:00
Franz Pletz
f8d481754c
Merge remote-tracking branch 'origin/master' into hardened-stdenv 2016-05-18 17:10:02 +02:00
Vladimír Čunát
65a9fa8cdc Merge branch 'master' into staging 2016-05-08 21:24:48 +02:00
Charles Strahan
e965e42dc5 go: fix build on Darwin
The go tests get tripped up due to error messages along the lines of:

    ld: warning: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation, ignoring unexpected dylib file

Which is due to us passing that along via $NIX_LDFLAGS in the `clang` wrapper.
To keep `go` from getting confused, I create a small `clang` wrapper that
filters out that warning.

Also, the strip.patch is no longer necessary, and only causes problems when
testing DWARF support:

    --- FAIL: TestDwarfAranges (0.59s)
        runtime-lldb_test.go:218: Missing aranges section
    FAIL
    FAIL    runtime 17.123s

Also, I disable the misc/cgo/errors test, as I suspect it is also due to similar
problems regarding `ld`:

    ##### ../misc/cgo/errors
    misc/cgo/errors/test.bash: BUG: expected error output to contain "err1.go:11:" but saw:
    # command-line-arguments
    cannot parse gcc output $WORK/command-line-arguments/_obj//_cgo_.o as ELF, Mach-O, PE object
    2016/05/07 02:07:58 Failed: exit status 1

Closes #14208
2016-05-06 22:34:16 -04:00
Robin Gloster
c92bca56f8 Merge remote-tracking branch 'upstream/master' into hardened-stdenv 2016-05-02 22:58:02 +00:00
Nikolay Amiantov
5ff40ddedf add get* helper functions and mass-replace manual outputs search with them 2016-04-25 13:24:39 +03:00
Charles Strahan
0657ddca95 go: 1.6 -> 1.6.2 2016-04-23 00:39:17 -04:00
Robin Gloster
d020caa5b2 Merge remote-tracking branch 'upstream/master' into hardened-stdenv 2016-04-18 13:49:22 +00:00
Vladimír Čunát
ab15a62c68 Merge branch 'master' into closure-size
Beware that stdenv doesn't build. It seems something more will be needed
than just resolution of merge conflicts.
2016-04-01 10:06:01 +02:00
Robin Gloster
f60c9df0ba Merge remote-tracking branch 'upstream/master' into hardened-stdenv 2016-03-28 15:16:29 +00:00
Domen Kožar
b07e7bfc7b Merge remote-tracking branch 'origin/staging' 2016-03-27 13:19:04 +01:00
Charles Strahan
c18106a223 go-1.6: fix segfault when using musl
See https://github.com/golang/go/issues/14476
2016-03-23 18:14:02 -04:00
Charles Strahan
0547fd247f go-1.6: fix the build
One of the test scripts dynamically creates and executes a bash script,
which attempts to use `/usr/bin/env bash`. This patches the file to
use the stdenv's shell instead.

Otherwise, the only way this could have worked was by building go_1_6
outside of the sandbox.
2016-03-22 21:39:45 -04:00
Eelco Dolstra
a11a281071 go-1.4: Update binutils patch to handle i686-linux
http://hydra.nixos.org/build/32872391
2016-03-10 21:06:13 +01:00
Vladimír Čunát
09af15654f Merge master into closure-size
The kde-5 stuff still didn't merge well.
I hand-fixed what I saw, but there may be more problems.
2016-03-08 09:58:19 +01:00
Eelco Dolstra
ff69fc6fb9 go-1.4: Fix build against binutils 2.26
The go linker barfed on the new relocation types emitted by binutils
2.26.

https://github.com/golang/go/issues/13114
http://hydra.nixos.org/build/32554876
2016-03-07 13:03:31 +01:00
Franz Pletz
aff1f4ab94 Use general hardening flag toggle lists
The following parameters are now available:

  * hardeningDisable
    To disable specific hardening flags
  * hardeningEnable
    To enable specific hardening flags

Only the cc-wrapper supports this right now, but these may be reused by
other wrappers, builders or setup hooks.

cc-wrapper supports the following flags:

  * fortify
  * stackprotector
  * pie (disabled by default)
  * pic
  * strictoverflow
  * format
  * relro
  * bindnow
2016-03-05 18:55:26 +01:00
Robin Gloster
3477e662e6 Merge remote-tracking branch 'upstream/master' into hardened-stdenv 2016-02-27 00:08:08 +00:00
Graham Christensen
8132a5ae76 go-1.6: remove the cacert 1.5 patch
Removed in 58dbaf69b7
2016-02-26 12:32:33 -06:00
zimbatm
accc1f1484 go: 1.4: disable failing test in sandbox 2016-02-26 18:00:11 +00:00
zimbatm
58dbaf69b7 go: remove ssl certs patches
Those are not needed since we now use a standard location to store our
bundles.

See bfebc7342e
2016-02-26 17:58:58 +00:00
Robin Gloster
c677109fcd go_1_6: disable all hardening 2016-02-24 22:56:56 +00:00
Robin Gloster
bb2639aafc Merge branch 'curl-7.15-fixup' of https://github.com/zimbatm/nixpkgs into hardened-stdenv 2016-02-22 01:14:22 +00:00
Nathan Zadoks
673bc7f32a go: add 1.6 compiler and packages 2016-02-19 12:26:47 +01:00
Robin Gloster
179ae282e0 go_1_4: turn off all hardening 2016-02-07 19:59:43 +00:00
Robin Gloster
0516626101 go: turn off all hardening 2016-01-30 16:36:57 +00:00
Franz Pletz
c4537af1dc go: Disable stackprotector 2016-01-30 16:36:57 +00:00
Robin Gloster
f6d3b7a2ae switch hardening flags 2016-01-30 16:36:57 +00:00
Franz Pletz
954e9903ad Use a hardened stdenv by default 2016-01-30 16:36:57 +00:00
Vladimír Čunát
716aac2519 Merge branch 'staging' into closure-size 2016-01-19 09:55:31 +01:00
Nathan Zadoks
174221b744 go: 1.5.2 -> 1.5.3
This addresses CVE-2015-8618 (a vulnerability in math/big)
This issue can affect RSA computations in crypto/rsa, which is used by
crypto/tls. TLS servers on 32-bit systems could plausibly leak their RSA
private key due to this issue. Other protocol implementations that
create many RSA signatures could also be impacted in the same way.
https://groups.google.com/forum/#!topic/golang-dev/MEATuOi_ei4
2016-01-14 14:55:43 +01:00
Benjamin Staffin
212b83433d go1.5: Fix Darwin build by disabling a broken test (close #12075)
TestNohup appears to work on Darwin if the test suite is running
attached to a terminal, but not when Nix runs it.
2016-01-02 12:29:26 +01:00
Luca Bruno
5b0352a6a4 Merge branch 'master' into closure-size 2015-12-11 18:31:00 +01:00
zimbatm
8111e1c902 go: 1.5.1 -> 1.5.2, fixes #11498 2015-12-08 02:09:59 +01:00
Luca Bruno
a412927924 Merge remote-tracking branch 'origin/master' into closure-size 2015-11-25 21:37:30 +01:00
Vladimír Čunát
333d69a5f0 Merge staging into closure-size
The most complex problems were from dealing with switches reverted in
the meantime (gcc5, gmp6, ncurses6).
It's likely that darwin is (still) broken nontrivially.
2015-11-20 14:32:58 +01:00
Stefan Junker
63edfb1871 go14: 1.4.2 -> 1.4.3 (close #10702) 2015-11-16 16:39:08 +01:00
Daiderd Jordan
adaf347bde disabled some failing tests for darwin 2015-10-22 19:33:16 +02:00
Jude Taylor
f77bf46c1e go-1.5: fix build on darwin, set to default version for all platforms 2015-10-19 16:14:36 -07:00
Vladimír Čunát
5227fb1dd5 Merge commit staging+systemd into closure-size
Many non-conflict problems weren't (fully) resolved in this commit yet.
2015-10-03 13:33:37 +02:00
William A. Kennington III
1f1caff5c1 go: 1.5 -> 1.5.1 2015-09-08 23:35:42 -07:00
William A. Kennington III
645709eaa5 go1.5: Remove the bootstrap as it is unneeded 2015-08-28 16:29:22 -07:00
William A. Kennington III
500f871d45 go1.5: Fix references to go1.4 2015-08-28 16:17:47 -07:00
William A. Kennington III
2c4186b045 Fix go-tools to include cover/vet for 1.4 but not 1.5 onward 2015-08-27 01:02:00 -07:00
Jude Taylor
ba57bbf8dc go-1.4: fix a few more possibly impure tests 2015-08-21 13:25:49 -07:00
William A. Kennington III
d730646832 go1.5: Fix pcre and port the remove-tools patch 2015-08-19 20:49:11 -07:00
William A. Kennington III
15a7e0ab71 go1.4: Fix some of the tests by adding missing pcre 2015-08-19 20:49:10 -07:00
William A. Kennington III
5344252155 go1.4: Cleanup compiler expression 2015-08-19 14:54:38 -07:00
Luca Bruno
d05cb3e0ea go: add 1.5 compiler and packages 2015-08-19 23:25:16 +02:00