glibc: Update to 2.17
Note that glibc-ports is now part of the main glibc tarball.
This commit is contained in:
parent
88b11196c1
commit
db418fce3d
@ -11,24 +11,12 @@ cross:
|
|||||||
, preConfigure ? "", ... }@args:
|
, preConfigure ? "", ... }@args:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "2.16.0";
|
|
||||||
|
|
||||||
needsPortsNative = stdenv.isMips || stdenv.isArm;
|
version = "2.17";
|
||||||
needsPortsCross = cross.arch == "mips" || cross.arch == "arm";
|
|
||||||
needsPorts =
|
|
||||||
if stdenv.cross or null != null && hurdHeaders == null then true
|
|
||||||
else if cross == null then needsPortsNative
|
|
||||||
else needsPortsCross;
|
|
||||||
|
|
||||||
srcPorts = fetchurl {
|
|
||||||
url = "mirror://gnu/glibc/glibc-ports-${version}.tar.bz2";
|
|
||||||
sha256 = "0qw4n71rqykl83ybq0c92w1n8afsx079sw3hn5nyib5nw6iphrfm";
|
|
||||||
};
|
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
assert cross != null -> gccCross != null;
|
assert cross != null -> gccCross != null;
|
||||||
|
|
||||||
assert mig != null -> machHeaders != null;
|
assert mig != null -> machHeaders != null;
|
||||||
assert machHeaders != null -> hurdHeaders != null;
|
assert machHeaders != null -> hurdHeaders != null;
|
||||||
assert hurdHeaders != null -> libpthreadHeaders != null;
|
assert hurdHeaders != null -> libpthreadHeaders != null;
|
||||||
@ -151,7 +139,7 @@ stdenv.mkDerivation ({
|
|||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnu/glibc/glibc-${version}.tar.gz";
|
url = "mirror://gnu/glibc/glibc-${version}.tar.gz";
|
||||||
sha256 = "0vlz4x6cgz7h54qq4528q526qlhnsjzbsvgc4iizn76cb0bfanx7";
|
sha256 = "0ym3zk9ii64279wgw7pw9xkbxczy2ci7ka6mnfs05rhlainhicm3";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Remove absolute paths from `configure' & co.; build out-of-tree.
|
# Remove absolute paths from `configure' & co.; build out-of-tree.
|
||||||
@ -163,8 +151,6 @@ stdenv.mkDerivation ({
|
|||||||
sed -i "$i" -e "s^/bin/pwd^$PWD_P^g"
|
sed -i "$i" -e "s^/bin/pwd^$PWD_P^g"
|
||||||
done
|
done
|
||||||
|
|
||||||
${if needsPorts then "tar xvf ${srcPorts}" else ""}
|
|
||||||
|
|
||||||
mkdir ../build
|
mkdir ../build
|
||||||
cd ../build
|
cd ../build
|
||||||
|
|
@ -3624,7 +3624,7 @@ let
|
|||||||
|
|
||||||
glfw = callPackage ../development/libraries/glfw { };
|
glfw = callPackage ../development/libraries/glfw { };
|
||||||
|
|
||||||
glibc = glibc216;
|
glibc = glibc217;
|
||||||
|
|
||||||
glibcCross = glibc213Cross;
|
glibcCross = glibc213Cross;
|
||||||
|
|
||||||
@ -3649,7 +3649,7 @@ let
|
|||||||
inherit fetchgit;
|
inherit fetchgit;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
glibc216 = callPackage ../development/libraries/glibc/2.16 {
|
glibc217 = callPackage ../development/libraries/glibc/2.17 {
|
||||||
kernelHeaders = linuxHeaders;
|
kernelHeaders = linuxHeaders;
|
||||||
installLocales = config.glibc.locales or false;
|
installLocales = config.glibc.locales or false;
|
||||||
machHeaders = null;
|
machHeaders = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user