Merge remote-tracking branch 'origin/master' into multiple-outputs

Conflicts:
	pkgs/development/libraries/acl/default.nix
	pkgs/development/libraries/atk/2.6.x.nix
	pkgs/development/libraries/attr/default.nix
	pkgs/development/libraries/cairo/default.nix
	pkgs/development/libraries/freetype/default.nix
	pkgs/development/libraries/glib/2.34.x.nix
	pkgs/development/libraries/gtk+/2.24.x.nix
	pkgs/development/libraries/libtiff/default.nix
	pkgs/development/libraries/openssl/default.nix
	pkgs/development/libraries/pango/1.30.x.nix
	pkgs/misc/cups/default.nix
	pkgs/os-specific/linux/util-linux/default.nix
	pkgs/servers/x11/xorg/builder.sh
	pkgs/servers/x11/xorg/default.nix
	pkgs/top-level/all-packages.nix
This commit is contained in:
Eelco Dolstra
2013-06-09 00:41:27 +02:00
3321 changed files with 87541 additions and 48046 deletions

View File

@@ -1,19 +1,15 @@
{ stdenv, fetchurl, zlib, ncurses ? null, perl ? null }:
{ stdenv, fetchurl, zlib, ncurses ? null, perl ? null, pam }:
stdenv.mkDerivation rec {
name = "util-linux-2.20.1";
name = "util-linux-2.22.2";
src = fetchurl {
# This used to be mirror://kernel/linux/utils/util-linux, but it
# disappeared in the kernel.org meltdown.
url = "mirror://gentoo/distfiles/${name}.tar.bz2";
sha256 = "1q5vjcvw4f067c63vj2n3xggvk5prm11571x6vnqiav47vdbqvni";
url = "http://www.kernel.org/pub/linux/utils/util-linux/v2.22/${name}.tar.bz2";
sha256 = "0vf3ifb45gr4cd27pmmxk8y5b3r0920mv16fv0vfwz5705xa2qvl";
};
outputs = [ "dev" "out" "bin" ];
patches = [ ./linux-specific-header.patch ];
crossAttrs = {
# Work around use of `AC_RUN_IFELSE'.
preConfigure = "export scanf_cv_type_modifier=ms";
@@ -23,13 +19,27 @@ stdenv.mkDerivation rec {
# (/sbin/mount.*) through an environment variable, but that's
# somewhat risky because we have to consider that mount can setuid
# root...
# --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
${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";
};
}

View File

@@ -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"