nixpkgs/pkgs/stdenv/linux
Gergely Risko fca5d864b6 pkgs/stdenv/linux: stageFun refactoring
The stage3.extraAttrs.glibc argument was required for this whole build
procedure to correctly work and it was very-very hard to see why (the
comment said something about gcc47, but we're using gcc48 now).

This stage3.extraAttrs.glibc goes into stage3.stdenv.glibc after some
arg passing, and in pkgs/development/compiler/gcc an (stdenv ? glibc)
boolean expression decides to override /usr/include during the GCC
build.

All of our stages are built with glibc, so this refactoring moves this
repeating specification of glibc (once for gcc wrapper and once here for
extraAttrs) to stageFun, by getting rid of wrapGCC, as we were using
that in all of the stages anyways.

Incidentally it turned out, that this stdenv.glibc inconsistency caused
some random other stuff to behave differently:
  - stage1.pkgs.perl has threading disabled,
  - stage4.pkgs.coreutils (the production coreutils) has testing disabled.

Leave this historical accidents as they are in this commit, so the scope
of this commit can stay as a refactoring only, these issues will be
fixed in separate commits.

This commit doesn't change the derivation or the output hash of
stdenvLinux.
2014-09-14 21:35:54 +02:00
..
bootstrap Move files 2014-04-20 01:27:15 +02:00
scripts Use <nix/fetchurl.nix> to download the bootstrap tools 2014-04-20 00:54:09 +02:00
default.nix pkgs/stdenv/linux: stageFun refactoring 2014-09-14 21:35:54 +02:00
make-bootstrap-tools-crosspi.nix Another attempt to eradicate ensureDir 2014-06-30 14:56:10 +02:00
make-bootstrap-tools.nix * Don't use the "replace-literal" command in stdenv; instead use 2012-01-19 13:47:26 +00:00