* Glibc updated to 2.11.1. Also cleaned up the expression a bit
(don't use args.<attr> for instance). svn path=/nixpkgs/branches/stdenv-updates/; revision=19745
This commit is contained in:
parent
2dfeeb47bb
commit
822db4b9a9
@ -1,12 +1,15 @@
|
|||||||
/* Build configuration used to build glibc, Info files, and locale
|
/* Build configuration used to build glibc, Info files, and locale
|
||||||
information. */
|
information. */
|
||||||
|
|
||||||
cross : { name, fetchurl, stdenv, installLocales ? false
|
cross :
|
||||||
, gccCross ? null, kernelHeaders ? null
|
|
||||||
, profilingLibraries ? false, meta, ... }@args :
|
{ name, fetchurl, stdenv, installLocales ? false
|
||||||
|
, gccCross ? null, kernelHeaders ? null
|
||||||
|
, profilingLibraries ? false, meta
|
||||||
|
, preConfigure ? "", ... }@args :
|
||||||
|
|
||||||
|
let version = "2.11.1"; in
|
||||||
|
|
||||||
let version = "2.11";
|
|
||||||
in
|
|
||||||
assert (cross != null) -> (gccCross != null);
|
assert (cross != null) -> (gccCross != null);
|
||||||
|
|
||||||
stdenv.mkDerivation ({
|
stdenv.mkDerivation ({
|
||||||
@ -80,38 +83,28 @@ stdenv.mkDerivation ({
|
|||||||
# prevent a retained dependency on the bootstrap tools in the stdenv-linux
|
# prevent a retained dependency on the bootstrap tools in the stdenv-linux
|
||||||
# bootstrap.
|
# bootstrap.
|
||||||
BASH_SHELL = "/bin/sh";
|
BASH_SHELL = "/bin/sh";
|
||||||
}
|
|
||||||
|
|
||||||
//
|
|
||||||
|
|
||||||
(if (stdenv.system == "i686-linux")
|
|
||||||
then {
|
|
||||||
# Workaround for this bug:
|
# Workaround for this bug:
|
||||||
# http://sourceware.org/bugzilla/show_bug.cgi?id=411
|
# http://sourceware.org/bugzilla/show_bug.cgi?id=411
|
||||||
# I.e. when gcc is compiled with --with-arch=i686, then the
|
# I.e. when gcc is compiled with --with-arch=i686, then the
|
||||||
# preprocessor symbol `__i686' will be defined to `1'. This causes
|
# preprocessor symbol `__i686' will be defined to `1'. This causes
|
||||||
# the symbol __i686.get_pc_thunk.dx to be mangled.
|
# the symbol __i686.get_pc_thunk.dx to be mangled.
|
||||||
NIX_CFLAGS_COMPILE = "-U__i686";
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString (stdenv.system == "i686-linux") "-U__i686";
|
||||||
}
|
}
|
||||||
else {})
|
|
||||||
|
|
||||||
//
|
// args //
|
||||||
|
|
||||||
args
|
|
||||||
|
|
||||||
//
|
|
||||||
|
|
||||||
{
|
{
|
||||||
name = args.name + "-${version}" +
|
name = name + "-${version}" +
|
||||||
stdenv.lib.optionalString (cross != null) "-${cross.config}";
|
stdenv.lib.optionalString (cross != null) "-${cross.config}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnu/glibc/glibc-${version}.tar.bz2";
|
url = "mirror://gnu/glibc/glibc-${version}.tar.bz2";
|
||||||
sha256 = "0b6nbr89qmqcvzz26ggnw7gcxhvnzbc8z299h12wqjmcix4hxwcy";
|
sha256 = "18azb6518ryqhkfmddr25p0h1s2msrmx7dblij58sjlnzh61vq34";
|
||||||
};
|
};
|
||||||
|
|
||||||
srcPorts = fetchurl {
|
srcPorts = fetchurl {
|
||||||
url = "mirror://gnu/glibc/glibc-ports-${version}.tar.bz2";
|
url = "mirror://gnu/glibc/glibc-ports-2.11.tar.bz2";
|
||||||
sha256 = "12b53f5k4gcr8rr1kg2ycf2701rygqsyf9r8gz4j3l9flaqi5liq";
|
sha256 = "12b53f5k4gcr8rr1kg2ycf2701rygqsyf9r8gz4j3l9flaqi5liq";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -135,12 +128,10 @@ stdenv.mkDerivation ({
|
|||||||
|
|
||||||
configureScript="../$sourceRoot/configure"
|
configureScript="../$sourceRoot/configure"
|
||||||
|
|
||||||
${if args ? preConfigure
|
${preConfigure}
|
||||||
then args.preConfigure
|
|
||||||
else ""}
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = ({
|
meta = {
|
||||||
homepage = http://www.gnu.org/software/libc/;
|
homepage = http://www.gnu.org/software/libc/;
|
||||||
description = "The GNU C Library";
|
description = "The GNU C Library";
|
||||||
|
|
||||||
@ -157,8 +148,5 @@ stdenv.mkDerivation ({
|
|||||||
|
|
||||||
maintainers = [ stdenv.lib.maintainers.ludo ];
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = stdenv.lib.platforms.linux;
|
||||||
}
|
} // meta;
|
||||||
//
|
|
||||||
args.meta
|
|
||||||
);
|
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user