3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs
John Ericson 5eaea6cee0 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.
2017-02-05 12:01:53 -05:00
..
applications cataract: init at 1.1.0 and HEAD 2017-01-31 09:20:08 +00:00
build-support Add a pkgs.dhallToNix utility 2017-01-26 20:11:49 -08:00
data siji: init at 2016-05-14 2017-01-30 11:32:52 +01:00
desktops gnome3.vte-ng: nitpick: gperf is a native input 2017-01-28 08:55:57 +01:00
development Merge pull request #22280 from lsix/pytest_defaults_to_30 2017-01-31 09:48:38 +01:00
games ioquake3: 2016-11-02 -> 2017-01-27 2017-01-31 03:27:11 +03:00
misc Merge #16501: add a guide about vim plugins 2017-01-30 18:28:20 +01:00
os-specific Excise use of importJSON 2017-01-30 11:44:08 +01:00
servers pgroonga: init at 1.1.9 2017-01-31 09:27:36 +01:00
shells tcsh: 6.19.00 -> 6.20.00 2017-01-26 03:52:49 +01:00
stdenv cross stdenv: let build package's build deps resolve to native packages 2017-02-05 12:01:53 -05:00
test
tools Merge pull request #22280 from lsix/pytest_defaults_to_30 2017-01-31 09:48:38 +01:00
top-level cataract: init at 1.1.0 and HEAD 2017-01-31 09:20:08 +00:00