Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 5eaea6cee01e9172ae65ccb6356861786a0f85cc
      
https://github.com/NixOS/nixpkgs/commit/5eaea6cee01e9172ae65ccb6356861786a0f85cc
  Author: John Ericson <ericson2...@yahoo.com>
  Date:   2017-02-05 (Sun, 05 Feb 2017)

  Changed paths:
    M doc/cross-compilation.xml
    M pkgs/stdenv/cross/default.nix

  Log Message:
  -----------
  cross stdenv: let build package's build deps resolve to native packages

This fixes the "sliding window" principle:
  0. Run packages:       build = native;  host = foreign; target = foreign;
  1. Build packages:     build = native;  host = native;  target = foreign;
  2. Vanilla packages:   build = native;  host = native;  target = native;
  3. Vanilla packages:   build = native;  host = native;  target = native;
  n+3. ...

Each stage's build dependencies are resolved against the previous stage,
and the "foreigns" are shifted accordingly. Vanilla packages alone are
built against themsevles, since there are no more "foreign"s to shift away.

Before, build packages' build dependencies were resolved against
themselves:
  0. Run packages:       build = native;  host = foreign; target = foreign;
  1. Build packages:     build = native;  host = native;  target = foreign;
  2. Build packages:     build = native;  host = native;  target = foreign;
  n+2. ...

This is wrong because that principle is violated by the target
platform staying foreign.

This will change the hashes of many build packages and run packages, but
that is OK. This is an unavoidable cost of fixing cross compiling.

The cross compilation docs have been updated to reflect this fix.


  Commit: f6ef6b56fe6c659c51b0b4b866e393aa285389b8
      
https://github.com/NixOS/nixpkgs/commit/f6ef6b56fe6c659c51b0b4b866e393aa285389b8
  Author: John Ericson <ericson2...@yahoo.com>
  Date:   2017-02-05 (Sun, 05 Feb 2017)

  Changed paths:
    M doc/cross-compilation.xml
    M pkgs/stdenv/cross/default.nix

  Log Message:
  -----------
  Merge pull request #22387 from Ericson2314/cross-3-platforms

cross stdenv: let build package's build deps resolve to native packages


Compare: https://github.com/NixOS/nixpkgs/compare/2c21f742b26e...f6ef6b56fe6c
_______________________________________________
nix-commits mailing list
nix-comm...@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to