mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 11:34:13 +00:00
* Switching.
svn path=/nixpkgs/trunk/; revision=6827
This commit is contained in:
parent
ec0d20103c
commit
60a9aa66bf
@ -5,11 +5,6 @@ export NIX_DONT_SET_RPATH=1
|
|||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
source $substitute
|
source $substitute
|
||||||
|
|
||||||
glibc=`cat $NIX_GCC/nix-support/orig-glibc`
|
|
||||||
echo $glibc
|
|
||||||
|
|
||||||
export LD_LIBRARY_PATH=$glibc/lib
|
|
||||||
|
|
||||||
# Explicitly tell glibc to use our pwd, not /bin/pwd.
|
# Explicitly tell glibc to use our pwd, not /bin/pwd.
|
||||||
export PWD_P=$(type -tP pwd)
|
export PWD_P=$(type -tP pwd)
|
||||||
|
|
||||||
|
@ -8,18 +8,6 @@ stdenv.mkDerivation {
|
|||||||
builder = ./builder.sh;
|
builder = ./builder.sh;
|
||||||
substitute = ../../../build-support/substitute/substitute.sh;
|
substitute = ../../../build-support/substitute/substitute.sh;
|
||||||
|
|
||||||
/*
|
|
||||||
src = fetchurl {
|
|
||||||
url = http://nix.cs.uu.nl/dist/tarballs/glibc-2.3.6.tar.bz2;
|
|
||||||
md5 = "bfdce99f82d6dbcb64b7f11c05d6bc96";
|
|
||||||
};
|
|
||||||
|
|
||||||
linuxthreadsSrc = fetchurl {
|
|
||||||
url = http://nix.cs.uu.nl/dist/tarballs/glibc-linuxthreads-2.3.6.tar.bz2;
|
|
||||||
md5 = "d4eeda37472666a15cc1f407e9c987a9";
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://ftp.gnu.org/gnu/glibc/glibc-2.5.tar.bz2;
|
url = http://ftp.gnu.org/gnu/glibc/glibc-2.5.tar.bz2;
|
||||||
md5 = "1fb29764a6a650a4d5b409dda227ac9f";
|
md5 = "1fb29764a6a650a4d5b409dda227ac9f";
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
{stdenv, fetchurl, noSysDirs}:
|
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
name = "binutils-2.17";
|
|
||||||
builder = ./builder.sh;
|
|
||||||
src = fetchurl {
|
|
||||||
url = http://nix.cs.uu.nl/dist/tarballs/binutils-2.17.tar.bz2;
|
|
||||||
md5 = "e26e2e06b6e4bf3acf1dc8688a94c0d1";
|
|
||||||
};
|
|
||||||
inherit noSysDirs;
|
|
||||||
configureFlags = "--disable-werror"; # needed for dietlibc build
|
|
||||||
}
|
|
@ -1,11 +1,12 @@
|
|||||||
{stdenv, fetchurl, noSysDirs}:
|
{stdenv, fetchurl, noSysDirs}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "binutils-2.16.1";
|
name = "binutils-2.17";
|
||||||
builder = ./builder.sh;
|
builder = ./builder.sh;
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://nix.cs.uu.nl/dist/tarballs/binutils-2.16.1.tar.bz2;
|
url = http://nix.cs.uu.nl/dist/tarballs/binutils-2.17.tar.bz2;
|
||||||
md5 = "6a9d529efb285071dad10e1f3d2b2967";
|
md5 = "e26e2e06b6e4bf3acf1dc8688a94c0d1";
|
||||||
};
|
};
|
||||||
inherit noSysDirs;
|
inherit noSysDirs;
|
||||||
|
configureFlags = "--disable-werror"; # needed for dietlibc build
|
||||||
}
|
}
|
||||||
|
@ -6,22 +6,22 @@
|
|||||||
tar = ./tar.bz2;
|
tar = ./tar.bz2;
|
||||||
|
|
||||||
staticToolsURL = {
|
staticToolsURL = {
|
||||||
url = http://nix.cs.uu.nl/dist/tarballs/stdenv-linux/i686/r6800/static-tools.tar.bz2;
|
url = http://nix.cs.uu.nl/dist/tarballs/stdenv-linux/i686/r6824/static-tools.tar.bz2;
|
||||||
sha1 = "18c5e93a23a16282a12e9af05f4dc28254dc9013";
|
sha1 = "4cc936e5c5881eb1466dd8c2cb968e255fa446b7";
|
||||||
};
|
};
|
||||||
|
|
||||||
binutilsURL = {
|
binutilsURL = {
|
||||||
url = http://nix.cs.uu.nl/dist/tarballs/stdenv-linux/i686/r6800/binutils.tar.bz2;
|
url = http://nix.cs.uu.nl/dist/tarballs/stdenv-linux/i686/r6824/binutils.tar.bz2;
|
||||||
sha1 = "4bf2859aa705acdcc08d333200f0e55754fab4a9";
|
sha1 = "d7d85684fae7ec5b51d31e105f8fc041a3553c82";
|
||||||
};
|
};
|
||||||
|
|
||||||
gccURL = {
|
gccURL = {
|
||||||
url = http://nix.cs.uu.nl/dist/tarballs/stdenv-linux/i686/r6800/gcc.tar.bz2;
|
url = http://nix.cs.uu.nl/dist/tarballs/stdenv-linux/i686/r6824/gcc.tar.bz2;
|
||||||
sha1 = "bd69a67b779014a683fa93706497eef0afede2b2";
|
sha1 = "c1a6f1a6de2cd3cc1b112614661c9f6adf8a6377";
|
||||||
};
|
};
|
||||||
|
|
||||||
glibcURL = {
|
glibcURL = {
|
||||||
url = http://nix.cs.uu.nl/dist/tarballs/stdenv-linux/i686/r6800/glibc.tar.bz2;
|
url = http://nix.cs.uu.nl/dist/tarballs/stdenv-linux/i686/r6824/glibc.tar.bz2;
|
||||||
sha1 = "9f3f3f1248d672d5a845326ed36d8ca470de0094";
|
sha1 = "666b5a6c179bd6aedeeb40d34336716eb0d659ce";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -62,21 +62,11 @@ rec {
|
|||||||
|
|
||||||
# A helper function to call gcc-wrapper.
|
# A helper function to call gcc-wrapper.
|
||||||
wrapGCC =
|
wrapGCC =
|
||||||
{gcc ? staticGCC, glibc, binutils, shell ? ""}:
|
{gcc ? staticGCC, libc, binutils, shell ? ""}:
|
||||||
(import ../../build-support/gcc-wrapper) {
|
(import ../../build-support/gcc-wrapper) {
|
||||||
nativeTools = false;
|
nativeTools = false;
|
||||||
nativeLibc = false;
|
nativeLibc = false;
|
||||||
inherit gcc binutils glibc shell;
|
inherit gcc binutils libc shell;
|
||||||
stdenv = stdenvInitial;
|
|
||||||
};
|
|
||||||
|
|
||||||
wrapGCC2 =
|
|
||||||
{gcc ? staticGCC, glibc, binutils, shell ? ""}:
|
|
||||||
(import ../../build-support/gcc-wrapper-new) {
|
|
||||||
nativeTools = false;
|
|
||||||
nativeLibc = false;
|
|
||||||
inherit gcc binutils shell;
|
|
||||||
libc = glibc;
|
|
||||||
stdenv = stdenvInitial;
|
stdenv = stdenvInitial;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -126,7 +116,7 @@ rec {
|
|||||||
# the gcc configure script happy.
|
# the gcc configure script happy.
|
||||||
stdenvLinuxBoot1 = stdenvBootFun {
|
stdenvLinuxBoot1 = stdenvBootFun {
|
||||||
# Use the statically linked, downloaded glibc/gcc/binutils.
|
# Use the statically linked, downloaded glibc/gcc/binutils.
|
||||||
gcc = wrapGCC {glibc = staticGlibc; binutils = staticBinutils;};
|
gcc = wrapGCC {libc = staticGlibc; binutils = staticBinutils;};
|
||||||
staticGlibc = true;
|
staticGlibc = true;
|
||||||
extraAttrs = {inherit curl;};
|
extraAttrs = {inherit curl;};
|
||||||
};
|
};
|
||||||
@ -150,7 +140,7 @@ rec {
|
|||||||
# statically linked tools.
|
# statically linked tools.
|
||||||
stdenvLinuxBoot2 = removeAttrs (stdenvBootFun {
|
stdenvLinuxBoot2 = removeAttrs (stdenvBootFun {
|
||||||
staticGlibc = false;
|
staticGlibc = false;
|
||||||
gcc = wrapGCC2 {binutils = staticBinutils; glibc = stdenvLinuxGlibc;};
|
gcc = wrapGCC {binutils = staticBinutils; libc = stdenvLinuxGlibc;};
|
||||||
extraAttrs = {inherit curl; glibc = stdenvLinuxGlibc;};
|
extraAttrs = {inherit curl; glibc = stdenvLinuxGlibc;};
|
||||||
}) ["gcc" "binutils"];
|
}) ["gcc" "binutils"];
|
||||||
|
|
||||||
@ -167,10 +157,9 @@ rec {
|
|||||||
# 5. The other tools (e.g. coreutils) are still static.
|
# 5. The other tools (e.g. coreutils) are still static.
|
||||||
stdenvLinuxBoot3 = stdenvBootFun {
|
stdenvLinuxBoot3 = stdenvBootFun {
|
||||||
staticGlibc = false;
|
staticGlibc = false;
|
||||||
gcc = wrapGCC2 {
|
gcc = wrapGCC {
|
||||||
# inherit (stdenvLinuxBoot2Pkgs) binutils;
|
inherit (stdenvLinuxBoot2Pkgs) binutils;
|
||||||
binutils = stdenvLinuxBoot2Pkgs.binutils217;
|
libc = stdenvLinuxGlibc;
|
||||||
glibc = stdenvLinuxGlibc;
|
|
||||||
gcc = stdenvLinuxBoot2Pkgs.gcc.gcc;
|
gcc = stdenvLinuxBoot2Pkgs.gcc.gcc;
|
||||||
};
|
};
|
||||||
extraAttrs = {inherit curl;};
|
extraAttrs = {inherit curl;};
|
||||||
@ -198,9 +187,8 @@ rec {
|
|||||||
stdenv = stdenvInitial;
|
stdenv = stdenvInitial;
|
||||||
|
|
||||||
gcc = wrapGCC {
|
gcc = wrapGCC {
|
||||||
# inherit (stdenvLinuxBoot2Pkgs) binutils;
|
inherit (stdenvLinuxBoot2Pkgs) binutils;
|
||||||
binutils = stdenvLinuxBoot2Pkgs.binutils217;
|
libc = stdenvLinuxGlibc;
|
||||||
glibc = stdenvLinuxGlibc;
|
|
||||||
gcc = stdenvLinuxBoot2Pkgs.gcc.gcc;
|
gcc = stdenvLinuxBoot2Pkgs.gcc.gcc;
|
||||||
shell = stdenvLinuxBoot3Pkgs.bash + "/bin/sh";
|
shell = stdenvLinuxBoot3Pkgs.bash + "/bin/sh";
|
||||||
};
|
};
|
||||||
|
@ -788,7 +788,8 @@ rec {
|
|||||||
nativeTools = false;
|
nativeTools = false;
|
||||||
nativeLibc = false;
|
nativeLibc = false;
|
||||||
gcc = baseGCC;
|
gcc = baseGCC;
|
||||||
inherit stdenv binutils glibc;
|
libc = glibc;
|
||||||
|
inherit stdenv binutils;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -968,10 +969,6 @@ rec {
|
|||||||
cross = "sparc-linux";
|
cross = "sparc-linux";
|
||||||
};
|
};
|
||||||
|
|
||||||
binutils217 = import ../development/tools/misc/binutils/binutils-2.17.nix {
|
|
||||||
inherit fetchurl stdenv noSysDirs;
|
|
||||||
};
|
|
||||||
|
|
||||||
bison = bison1875;
|
bison = bison1875;
|
||||||
|
|
||||||
bison1875 = import ../development/tools/parsing/bison/bison-1.875.nix {
|
bison1875 = import ../development/tools/parsing/bison/bison-1.875.nix {
|
||||||
|
Loading…
Reference in New Issue
Block a user