util-linux: Update to 2.22.2
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.
This commit is contained in:
@@ -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";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
The <asm/param.h> 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 <sys/param.h>
|
||||
#include <sys/stat.h>
|
||||
#include <paths.h>
|
||||
-#include <asm/param.h>
|
||||
+#ifdef __linux__
|
||||
+# include <asm/param.h>
|
||||
+#endif
|
||||
#include <getopt.h>
|
||||
#include "c.h"
|
||||
#include "carefulputc.h"
|
||||
|
||||
Reference in New Issue
Block a user