git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #104774 from grahamc/sssd

sssd: fix build on glibc-2.32

commit43082f7f19404f1e8c15e652ceb292b332e8256a authorSandro <sandro.jaeckel@gmail.com> dateTue 24 Nov 2020, 19:53 (6 years ago) parent4e7211622965d8
1 file changed+10
pkgs/os-specific/linux/sssd/default.nix+10
pkgs/os-specific/linux/sssd/default.nix+10
@@ -54,6 +54,16 @@ stdenv.mkDerivation rec {
5454 configureFlagsArray+=("--with-sudo")
5555 '';
5656
57+ preBuild = ''
58+ # glibc-2.32 includes a full set of NSS stub module declarations
59+ # that conflict with the ones in sssd source. Define _NSS_H to
60+ # prevent them from breaking the compilation, but just for this
61+ # one file.
62+ cat >> Makefile <<EOF
63+ src/responder/nss/nss_cmd.\$(OBJEXT) : DEFS = -DHAVE_CONFIG_H -D_NSS_H
64+ EOF
65+ '';
66+
5767 enableParallelBuilding = true;
5868 buildInputs = [ augeas dnsutils c-ares curl cyrus_sasl ding-libs libnl libunistring nss
5969 samba nfs-utils doxygen python python3 popt