Skip to content

go_1_6: Fix darwin (sierra) compile, backport systime syscall fix #27230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 8, 2017

Conversation

robx
Copy link
Contributor

@robx robx commented Jul 7, 2017

This patches go1.6 minimally with a change that was backported
to upstream go1.4.

Motivation for this change

Trying to reproduce #18223, the build failed for me quite a bit worse, with stack traces such as in this golang issue: golang/go#16627

It turns out that go1.6 is broken on macOS sierra. Not sure to what extent it makes sense to keep go1.6 working, but this adds a patch that fixes the build on my system.

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

Sorry, something went wrong.

This patches go1.6 minimally with a change that was backported
to upstream go1.4.
@mention-bot
Copy link

@robx, thanks for your PR! By analyzing the history of the files in this pull request, we identified @edef1c, @cstrahan and @globin to be potential reviewers.

@copumpkin
Copy link
Member

Awesome, I hated this bug enough to file an issue with Go asking them to stop writing their own syscall wrappers 😄 I don't use Go 1.6 anymore, but this looks good, thanks!

@copumpkin copumpkin merged commit ca1089a into NixOS:master Jul 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants