From 2044fa172d75946ec4aceaf2af3f4f3baf0b8280 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 24 Nov 2020 20:09:04 +0100 Subject: [PATCH] sssd: fix nss collision with upstream patch --- pkgs/os-specific/linux/sssd/default.nix | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/pkgs/os-specific/linux/sssd/default.nix b/pkgs/os-specific/linux/sssd/default.nix index 537764e0c73..05866f94269 100644 --- a/pkgs/os-specific/linux/sssd/default.nix +++ b/pkgs/os-specific/linux/sssd/default.nix @@ -24,6 +24,11 @@ stdenv.mkDerivation rec { url = "https://github.com/SSSD/sssd/commit/bc56b10aea999284458dcc293b54cf65288e325d.patch"; sha256 = "0q74sx5n41srq3kdn55l5j1sq4xrjsnl5y4v8yh5mwsijj74yh4g"; }) + # Fix collision with external nss symbol + (fetchpatch { + url = "https://github.com/SSSD/sssd/commit/fe9eeb51be06059721e873f77092b1e9ba08e6c1.patch"; + sha256 = "0b83b2w0rnvm26pg03a4lpmkmi7n3gqxg7lk751q61q79gnzrpz4"; + }) ]; # Something is looking for instead of @@ -54,16 +59,6 @@ stdenv.mkDerivation rec { configureFlagsArray+=("--with-sudo") ''; - preBuild = '' - # glibc-2.32 includes a full set of NSS stub module declarations - # that conflict with the ones in sssd source. Define _NSS_H to - # prevent them from breaking the compilation, but just for this - # one file. - cat >> Makefile <