From ce83f79a65f046729be05a415264bcbc9ca801a8 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 28 Jan 2013 16:55:12 +0100 Subject: [PATCH] util-linux: Update to 2.22.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This update is essential because coreutils no longer provides ‘su’. Also enable ‘last’ and some other commands so that we can get rid of sysvtools. --- pkgs/os-specific/linux/util-linux/default.nix | 29 ++++++++++++------- .../util-linux/linux-specific-header.patch | 16 ---------- 2 files changed, 19 insertions(+), 26 deletions(-) delete mode 100644 pkgs/os-specific/linux/util-linux/linux-specific-header.patch diff --git a/pkgs/os-specific/linux/util-linux/default.nix b/pkgs/os-specific/linux/util-linux/default.nix index 08f3f53e58ee..d42424e6fc86 100644 --- a/pkgs/os-specific/linux/util-linux/default.nix +++ b/pkgs/os-specific/linux/util-linux/default.nix @@ -1,15 +1,13 @@ -{ stdenv, fetchurl, zlib, ncurses ? null, perl ? null }: +{ stdenv, fetchurl, zlib, ncurses ? null, perl ? null, pam }: stdenv.mkDerivation rec { - name = "util-linux-2.21.2"; + name = "util-linux-2.22.2"; src = fetchurl { - url = "http://www.kernel.org/pub/linux/utils/util-linux/v2.21/${name}.tar.bz2"; - sha256 = "0c1xp9pzwizxfk09anvjaz5cv8gvxracvvb6s84xiaxza679svq6"; + url = "http://www.kernel.org/pub/linux/utils/util-linux/v2.22/${name}.tar.bz2"; + sha256 = "0vf3ifb45gr4cd27pmmxk8y5b3r0920mv16fv0vfwz5705xa2qvl"; }; - patches = [ ./linux-specific-header.patch ]; - crossAttrs = { # Work around use of `AC_RUN_IFELSE'. preConfigure = "export scanf_cv_type_modifier=ms"; @@ -22,13 +20,24 @@ stdenv.mkDerivation rec { # --enable-libmount-mount fixes the behaviour being /etc/mtab a symlink to /proc/monunts # http://pl.digipedia.org/usenet/thread/19513/1924/ configureFlags = '' - --disable-use-tty-group --enable-write + --enable-last + --enable-mesg + --enable-ddate + --disable-use-tty-group --enable-fs-paths-default=/var/setuid-wrappers:/var/run/current-system/sw/sbin:/sbin - --enable-libmount-mount ${if ncurses == null then "--without-ncurses" else ""} ''; - buildInputs = [ zlib ] ++ stdenv.lib.optional (ncurses != null) ncurses - ++ stdenv.lib.optional (perl != null) perl; + buildInputs = + [ zlib pam ] + ++ stdenv.lib.optional (ncurses != null) ncurses + ++ stdenv.lib.optional (perl != null) perl; + + enableParallelBuilding = true; + + meta = { + homepage = http://www.kernel.org/pub/linux/utils/util-linux/; + description = "A set of system utilities for Linux"; + }; } diff --git a/pkgs/os-specific/linux/util-linux/linux-specific-header.patch b/pkgs/os-specific/linux/util-linux/linux-specific-header.patch deleted file mode 100644 index 8d0b57dea3fb..000000000000 --- a/pkgs/os-specific/linux/util-linux/linux-specific-header.patch +++ /dev/null @@ -1,16 +0,0 @@ -The header is Linux-only and breaks GNU/Hurd builds. - ---- util-linux-2.20.1/term-utils/write.c 2012-03-07 23:06:14.000000000 +0100 -+++ util-linux-2.20.1/term-utils/write.c 2012-03-07 23:06:19.000000000 +0100 -@@ -57,7 +57,9 @@ - #include - #include - #include --#include -+#ifdef __linux__ -+# include -+#endif - #include - #include "c.h" - #include "carefulputc.h" -