3
0
Fork 0
forked from mirrors/nixpkgs

Adding ports to glibc-2.11.

Making glibc-2.11 the default in cross-compiling and also for the native armv5tel.


svn path=/nixpkgs/branches/stdenv-updates/; revision=18744
This commit is contained in:
Lluís Batlle i Rossell 2009-12-01 21:33:11 +00:00
parent 980d7c04a0
commit 8910d4e646
3 changed files with 22 additions and 17 deletions

View file

@ -1,8 +1,8 @@
/* Build configuration used to build glibc, Info files, and locale
information. */
{ name, fetchurl, stdenv, installLocales ? false
, cross ? null, gccCross ? null, kernelHeaders ? null
cross : { name, fetchurl, stdenv, installLocales ? false
, gccCross ? null, kernelHeaders ? null
, profilingLibraries ? false, meta, ... }@args :
let version = "2.11";
@ -107,6 +107,11 @@ stdenv.mkDerivation ({
sha256 = "0b6nbr89qmqcvzz26ggnw7gcxhvnzbc8z299h12wqjmcix4hxwcy";
};
srcPorts = fetchurl {
url = "mirror://gnu/glibc/glibc-ports-${version}.tar.bz2";
sha256 = "12b53f5k4gcr8rr1kg2ycf2701rygqsyf9r8gz4j3l9flaqi5liq";
};
# `fetchurl' is a function and thus should not be passed to the
# `derivation' primitive.
fetchurl = null;
@ -119,6 +124,9 @@ stdenv.mkDerivation ({
# built yet in the bootstrap.
sed -i "$i" -e "s^/bin/pwd^$PWD_P^g"
done
tar xvjf "$srcPorts"
mkdir ../build
cd ../build

View file

@ -8,11 +8,11 @@ let
build = import ./common.nix;
cross = if gccCross != null then gccCross.target else null;
in
build ({
build cross ({
name = "glibc";
inherit fetchurl stdenv kernelHeaders installLocales profilingLibraries
cross;
gccCross;
builder = ./builder.sh;
@ -45,7 +45,7 @@ EOF
export AR="$crossConfig-ar"
export RANLIB="$crossConfig-ranlib"
dontStrip = 1
dontStrip=1
'';
}
else {}))

View file

@ -3429,8 +3429,7 @@ let
haveBrokenRedHatKernel = haveRedHatKernel && getConfig ["brokenRedHatKernel"] false;
in
useFromStdenv "glibc" (if haveBrokenRedHatKernel then glibc25 else
# glibc211 does not have ports still.
if (system == "armv5tel-linux") then glibc210 else glibc211);
glibc211);
glibc25 = import ../development/libraries/glibc-2.5 {
inherit fetchurl stdenv kernelHeaders;
@ -3454,6 +3453,11 @@ let
installLocales = getPkgConfig "glibc" "locales" false;
});
glibc210 = makeOverridable (import ../development/libraries/glibc-2.10) {
inherit fetchurl stdenv kernelHeaders;
installLocales = getPkgConfig "glibc" "locales" false;
};
glibc210Cross = cross: forceBuildDrv (makeOverridable (import ../development/libraries/glibc-2.10) {
inherit stdenv fetchurl;
gccCross = gccCrossStageStatic cross;
@ -3461,26 +3465,19 @@ let
installLocales = getPkgConfig "glibc" "locales" false;
});
glibcCross = cross: glibc210Cross cross;
glibc210 = makeOverridable (import ../development/libraries/glibc-2.10) {
inherit fetchurl stdenv kernelHeaders;
installLocales = getPkgConfig "glibc" "locales" false;
};
glibc211 = makeOverridable (import ../development/libraries/glibc-2.11) {
inherit fetchurl stdenv kernelHeaders;
installLocales = getPkgConfig "glibc" "locales" false;
};
glibc211CrossReal = cross : forceBuildDrv (makeOverridable (import ../development/libraries/glibc-2.11) {
inherit stdenv fetchurl cross;
glibc211Cross = cross : forceBuildDrv (makeOverridable (import ../development/libraries/glibc-2.11) {
inherit stdenv fetchurl;
gccCross = gccCrossStageStatic cross;
kernelHeaders = kernelHeadersCross cross;
installLocales = getPkgConfig "glibc" "locales" false;
});
glibc211Cross = cross : forceBuildDrv (glibc211CrossReal cross);
glibcCross = cross: glibc211Cross cross;
eglibc = import ../development/libraries/eglibc {
inherit fetchsvn stdenv kernelHeaders;