nixpkgs/pkgs/development/libraries/glibc
Dmitry Kalinkin 6740593bdd
glibc: provide fallback for kernels with missing prlimit64
The current version of glibc implements support for kernels down to
3.2.0 (and we make sure to enable such support with apporopriate
--enable-kernel setting). The current RHEL6 operating system is based on
a maintained kernel based on 2.6.32 with lots of backports. We provide
basic support for this specific kernel by patching glibc to provide an
exception for this specific version of kernel. This allows for nixpkgs
software distribution to work on RHEL6 and it does so quite well with
almost no problems. There are, however, a few syscalls that are missing
in the 2.6.32 kernel, one of which is prlimit64. This commit provides a
fallback that uses an older {get,set}rlimit syscalls in cases when
prlimit64 is not available. This should streamline the experience for
nixpkgs users wanting to run it on RHEL6, namely, this fixes one of the
tests in findutils.

See also discussion in guix:
https://lists.gnu.org/archive/html/guix-devel/2018-03/msg00356.html
2020-03-01 17:33:27 -05:00
..
2.27-CVE-2019-19126.patch glibc: add patch for CVE-2019-19126 2019-12-10 18:51:16 +01:00
allow-kernel-2.6.32.patch glibc: support RHEL 6 -like kernels again 2017-12-21 21:56:31 +01:00
common.nix glibc: provide fallback for kernels with missing prlimit64 2020-03-01 17:33:27 -05:00
darwin-cross-build.patch glibc: enable cross builds on Darwin 2019-02-17 18:40:50 +01:00
default.nix glibc: Fix build error due to warning with musl. Fixes #78805 2020-01-30 04:20:52 +01:00
dont-use-system-ld-so-cache.patch glibc/*.patch: revert no-op changes done in 447edaa3 2020-02-05 13:37:06 +01:00
dont-use-system-ld-so-preload.patch glibc/*.patch: revert no-op changes done in 447edaa3 2020-02-05 13:37:06 +01:00
fix_path_attribute_in_getconf.patch glibc/*.patch: revert no-op changes done in 447edaa3 2020-02-05 13:37:06 +01:00
fix-rpc-types-musl-conflicts.patch glibc: use local copy of patch to fix w/musl 2018-04-24 16:57:57 -05:00
fix-x64-abi.patch glibc/*.patch: revert no-op changes done in 447edaa3 2020-02-05 13:37:06 +01:00
info.nix
locales-builder.sh
locales.nix glibcLocales: also build C.UTF-8 2019-03-21 06:26:07 +00:00
multi.nix
nix-locale-archive.patch glibc/*.patch: revert no-op changes done in 447edaa3 2020-02-05 13:37:06 +01:00
rpcgen-path.patch glibc/*.patch: revert no-op changes done in 447edaa3 2020-02-05 13:37:06 +01:00