diff --git a/pkgs/development/libraries/glibc-2.12/common.nix b/pkgs/development/libraries/glibc-2.12/common.nix index 0d56d8770189..8f0c092d35ca 100644 --- a/pkgs/development/libraries/glibc-2.12/common.nix +++ b/pkgs/development/libraries/glibc-2.12/common.nix @@ -12,7 +12,7 @@ cross : let # For GNU/Hurd, see below. - version = if hurdHeaders != null then "20111025" else "2.12.2"; + version = if hurdHeaders != null then "20120221" else "2.12.2"; needsPortsNative = stdenv.isMips || stdenv.isArm; needsPortsCross = cross.arch == "mips" || cross.arch == "arm"; @@ -75,7 +75,8 @@ stdenv.mkDerivation ({ /* Allow nixos and nix handle the locale-archive. */ ./nix-locale-archive.patch - ]; + ] + ++ (stdenv.lib.optional (hurdHeaders != null) ./hurd-sigstate-functions.patch); postPatch = '' # Needed for glibc to build with the gnumake 3.82 @@ -143,8 +144,8 @@ stdenv.mkDerivation ({ # maintained by the Hurd folks, `tschwinge/Roger_Whittaker' branch. # See . url = "git://git.sv.gnu.org/hurd/glibc.git"; - sha256 = "3fb3dd7030a4b6d3e144fa94c32a0c4f46f17f94e2dfbc6bef41cfc3198725ca"; - rev = "d740cf9d201dc9ecb0335b0a585828dea9cce793"; + sha256 = "fbc053f23167059af414ae1ba9a65931a9d9afaf7d2efb9eba3e258757d12f7d"; + rev = "b29b3d0ae35be390cab59e4798cbaf9b45fb06e3"; } else fetchurl { url = "mirror://gnu/glibc/glibc-${version}.tar.bz2"; diff --git a/pkgs/development/libraries/glibc-2.12/hurd-sigstate-functions.patch b/pkgs/development/libraries/glibc-2.12/hurd-sigstate-functions.patch new file mode 100644 index 000000000000..d46db7b6393d --- /dev/null +++ b/pkgs/development/libraries/glibc-2.12/hurd-sigstate-functions.patch @@ -0,0 +1,20 @@ +This patch adds a GNU ld version script entry for the `_hurd_sigstate_*' +functions that were introduced to support SA_SIGINFO. A similar patch +should be applied upstream soon. + +diff --git a/hurd/Versions b/hurd/Versions +index 83c8ab1..295cfda 100644 +--- a/hurd/Versions ++++ b/hurd/Versions +@@ -156,6 +156,11 @@ libc { + # functions used in macros & inline functions + __errno_location; + } ++ GLIBC_2.13 { ++ # functions introduced for SA_SIGINFO support and referenced from ++ # ++ _hurd_sigstate_*; ++ } + + %if !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2) + HURD_CTHREADS_0.3 {