3
0
Fork 0
forked from mirrors/nixpkgs

* e2fsprogs updated to 1.41.6. Also keep the previous version around

so that we don't have to rebuild everything that depends on libuuid
  (such as all X programs).

svn path=/nixpkgs/trunk/; revision=15964
This commit is contained in:
Eelco Dolstra 2009-06-15 16:45:48 +00:00
parent 588eb7a351
commit 85978b1efa
6 changed files with 52 additions and 10 deletions

View file

@ -0,0 +1,35 @@
{stdenv, fetchurl}:
stdenv.mkDerivation rec {
name = "e2fsprogs-1.41.6";
src = fetchurl {
url = "mirror://sourceforge/e2fsprogs/${name}.tar.gz";
sha256 = "0i5ldfgx3rccr4d59fgxc1zcv33i1jm4ggb3nqyvr5wik5qmv5sq";
};
configureFlags =
if stdenv ? isDietLibC
then "--with-diet-libc"
else "--enable-elf-shlibs";
preBuild = if stdenv ? isDietLibC then ''
sed -e 's/-lpthread//' -i Makefile */Makefile */*/Makefile
'' else "";
preInstall = "installFlagsArray=('LN=ln -s')";
postInstall = "make install-libs";
NIX_CFLAGS_COMPILE =
if stdenv ? isDietLibC then
"-UHAVE_SYS_PRCTL_H " +
(if stdenv.system == "x86_64-linux" then "-DHAVE_LSEEK64_PROTOTYPE=1 -Dstat64=stat" else "")
+ " -lcompat -lpthread "
else "";
meta = {
homepage = http://e2fsprogs.sourceforge.net/;
description = "Tools for creating and checking ext2/ext3/ext4 filesystems";
};
}

View file

@ -1,7 +1,7 @@
{ stdenv, fetchurl, ncurses ? null { stdenv, fetchurl, ncurses ? null
, # Util-linux-ng requires libuuid and libblkid. , # Util-linux-ng requires libuuid and libblkid.
e2fsprogs libuuid
, # Build mount/umount only. , # Build mount/umount only.
buildMountOnly ? false buildMountOnly ? false
@ -24,7 +24,7 @@ stdenv.mkDerivation {
${if ncurses == null then "--without-ncurses" else ""} ${if ncurses == null then "--without-ncurses" else ""}
''; '';
buildInputs = [e2fsprogs] buildInputs = [libuuid]
++ stdenv.lib.optional (ncurses != null) ncurses; ++ stdenv.lib.optional (ncurses != null) ncurses;
inherit mountHelpers; inherit mountHelpers;

View file

@ -614,8 +614,8 @@ let
url = mirror://xorg/X11R7.4/src/everything/libSM-1.1.0.tar.bz2; url = mirror://xorg/X11R7.4/src/everything/libSM-1.1.0.tar.bz2;
sha256 = "10iap6ydxmk0g5qcfnsf9yc30fhvqshgppm0sca21y0z5qwaqdkm"; sha256 = "10iap6ydxmk0g5qcfnsf9yc30fhvqshgppm0sca21y0z5qwaqdkm";
}; };
buildInputs = [pkgconfig libICE e2fsprogs xproto xtrans ]; buildInputs = [pkgconfig libICE libuuid xproto xtrans ];
})) // {inherit libICE e2fsprogs xproto xtrans ;}; })) // {inherit libICE libuuid xproto xtrans ;};
libWindowsWM = (stdenv.mkDerivation ((if overrides ? libWindowsWM then overrides.libWindowsWM else x: x) { libWindowsWM = (stdenv.mkDerivation ((if overrides ? libWindowsWM then overrides.libWindowsWM else x: x) {
name = "libWindowsWM-1.0.0"; name = "libWindowsWM-1.0.0";

View file

@ -26,7 +26,7 @@ $pcMap{$_} = $_ foreach @missingPCs;
$pcMap{"freetype2"} = "freetype"; $pcMap{"freetype2"} = "freetype";
$pcMap{"libpng12"} = "libpng"; $pcMap{"libpng12"} = "libpng";
$pcMap{"dbus-1"} = "dbus"; $pcMap{"dbus-1"} = "dbus";
$pcMap{"uuid"} = "e2fsprogs"; $pcMap{"uuid"} = "libuuid";
$pcMap{"gl"} = "mesa"; $pcMap{"gl"} = "mesa";
$pcMap{"\$PIXMAN"} = "pixman"; $pcMap{"\$PIXMAN"} = "pixman";
$pcMap{"\$RENDERPROTO"} = "renderproto"; $pcMap{"\$RENDERPROTO"} = "renderproto";

View file

@ -4595,7 +4595,7 @@ let
xorg = recurseIntoAttrs (import ../servers/x11/xorg/default.nix { xorg = recurseIntoAttrs (import ../servers/x11/xorg/default.nix {
inherit fetchurl stdenv pkgconfig freetype fontconfig inherit fetchurl stdenv pkgconfig freetype fontconfig
libxslt expat libdrm libpng zlib perl mesa mesaHeaders libxslt expat libdrm libpng zlib perl mesa mesaHeaders
xkeyboard_config dbus hal e2fsprogs openssl gperf m4; xkeyboard_config dbus hal libuuid openssl gperf m4;
# !!! pythonBase is use instead of python because this cause an infinite # !!! pythonBase is use instead of python because this cause an infinite
# !!! recursion when the flag python.full is set to true. Packages # !!! recursion when the flag python.full is set to true. Packages
@ -4637,7 +4637,7 @@ let
}; };
nfsUtils = import ../os-specific/linux/nfs-utils { nfsUtils = import ../os-specific/linux/nfs-utils {
inherit fetchurl stdenv tcpWrapper e2fsprogs; inherit fetchurl stdenv tcpWrapper e2fsprogs;
}; };
acpi = import ../os-specific/linux/acpi { acpi = import ../os-specific/linux/acpi {
@ -4708,11 +4708,18 @@ let
stdenv = if stdenv.system == "powerpc-linux" then overrideGCC stdenv gcc34 else stdenv; stdenv = if stdenv.system == "powerpc-linux" then overrideGCC stdenv gcc34 else stdenv;
}; };
e2fsprogs = import ../os-specific/linux/e2fsprogs { # libuuid is used as an (indirect) dependency for lots of other
# packages such as X and KDE, which we don't want to rebuild every
# time we update e2fsprogs.
e2fsprogsOld = import ../os-specific/linux/e2fsprogs/1.41.5.nix {
inherit fetchurl stdenv; inherit fetchurl stdenv;
}; };
libuuid = e2fsprogs; libuuid = e2fsprogsOld;
e2fsprogs = import ../os-specific/linux/e2fsprogs/1.41.6.nix {
inherit fetchurl stdenv;
};
e3cfsprogs = import ../os-specific/linux/e3cfsprogs { e3cfsprogs = import ../os-specific/linux/e3cfsprogs {
inherit stdenv fetchurl gettext; inherit stdenv fetchurl gettext;
@ -5493,7 +5500,7 @@ let
utillinuxCurses = utillinuxngCurses; utillinuxCurses = utillinuxngCurses;
utillinuxng = makeOverridable (import ../os-specific/linux/util-linux-ng) { utillinuxng = makeOverridable (import ../os-specific/linux/util-linux-ng) {
inherit fetchurl stdenv e2fsprogs; inherit fetchurl stdenv libuuid;
}; };
utillinuxngCurses = utillinuxng.override { utillinuxngCurses = utillinuxng.override {