Skip to content

Purge binutilsCross#25227

Merged
Ericson2314 merged 3 commits intoNixOS:masterfrom
obsidiansystems:cross-purge-binutilsCross
Apr 26, 2017
Merged

Purge binutilsCross#25227
Ericson2314 merged 3 commits intoNixOS:masterfrom
obsidiansystems:cross-purge-binutilsCross

Conversation

@Ericson2314
Copy link
Member

@Ericson2314 Ericson2314 commented Apr 26, 2017

Motivation for this change

All the *Cross derivations are bad and must go, and binutils is the first to be so purge. See the commit messages for more details.

No hashes should be changed with this commit: http://hydra.nixos.org/eval/1353380?compare=cross-trunk

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 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.

Use `buildPackages.binutils` to get build = host != target binutils,
i.e. the old `binutilsCross`, and use
`buildPackages.buildPackages.binutils` to get build = host = target
binutils, i.e. the old `binutils`.

`buildPackages` chains like this are supposed to remove the need for
all such `*Cross` derivations. We start with binutils because it's
comparatively easy.

No hashes of cross-tests should be changed
See previous commit for what was done to `binutils` to make this
possible.

There were some uses of `forcedNativePackages` added. The
combination of overrides with that attribute is highly spooky: it's
often important that if an overridden package comes from it, the
replaced arguments for that package come from it. Long term this
package set and all the spookiness should be gone and irrelevant:

  "Move along, nothing to see here!"

No hashes should be changed with this commit
@Ericson2314 Ericson2314 added the 6.topic: cross-compilation Building packages on a different platform than they will be used on label Apr 26, 2017
@mention-bot
Copy link

@Ericson2314, thanks for your PR! By analyzing the history of the files in this pull request, we identified @viric, @dezgeg and @oxij to be potential reviewers.

This was referenced Apr 26, 2017
@Ericson2314 Ericson2314 self-assigned this Apr 26, 2017
@Ericson2314
Copy link
Member Author

This one should be utterly ready to go.

@Ericson2314 Ericson2314 merged commit 761af14 into NixOS:master Apr 26, 2017
@Ericson2314 Ericson2314 deleted the cross-purge-binutilsCross branch April 26, 2017 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: cross-compilation Building packages on a different platform than they will be used on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants