diff --git a/pkgs/os-specific/linux/pwdutils/default.nix b/pkgs/os-specific/linux/pwdutils/default.nix index 617368fa79ff..6be17ca08127 100644 --- a/pkgs/os-specific/linux/pwdutils/default.nix +++ b/pkgs/os-specific/linux/pwdutils/default.nix @@ -10,7 +10,9 @@ stdenv.mkDerivation rec { buildInputs = [ pam gnutls libnscd ]; - patchPhase = + patches = [ ./sys-stat-h.patch ]; + + postPatch = '' for i in src/tst-* do sed -i "$i" -e's|/bin/bash|/bin/sh|g' @@ -38,6 +40,7 @@ stdenv.mkDerivation rec { license = "GPLv2"; + maintainers = [ stdenv.lib.maintainers.ludo ]; platforms = stdenv.lib.platforms.linux; }; } diff --git a/pkgs/os-specific/linux/pwdutils/sys-stat-h.patch b/pkgs/os-specific/linux/pwdutils/sys-stat-h.patch new file mode 100644 index 000000000000..5b5bc8440d55 --- /dev/null +++ b/pkgs/os-specific/linux/pwdutils/sys-stat-h.patch @@ -0,0 +1,37 @@ +Fix builds with current glibc git, which appears to be stricter +about . + +--- pwdutils-3.2.6/src/useradd.c~ 2008-10-16 13:46:07.000000000 +0200 ++++ pwdutils-3.2.6/src/useradd.c 2010-04-26 11:24:43.000000000 +0200 +@@ -18,6 +18,7 @@ + #include "config.h" + #endif + ++#include + #include + #include + #include + +--- pwdutils-3.2.6/src/userdel.c~ 2006-11-29 14:20:39.000000000 +0100 ++++ pwdutils-3.2.6/src/userdel.c 2010-04-26 11:26:08.000000000 +0200 +@@ -18,6 +18,7 @@ + #include "config.h" + #endif + ++#include + #include + #include + #include + +diff -ubB --show-c-function pwdutils-3.2.6/src/usermod.c\~ pwdutils-3.2.6/src/usermod.c +--- pwdutils-3.2.6/src/usermod.c~ 2006-11-29 14:20:41.000000000 +0100 ++++ pwdutils-3.2.6/src/usermod.c 2010-04-26 11:27:41.000000000 +0200 +@@ -18,6 +18,7 @@ + #include "config.h" + #endif + ++#include + #include + #include + #include +