3
0
Fork 0
forked from mirrors/nixpkgs

cygwin: findutils fpending and coreutils patch

This commit is contained in:
Marko Durkovic 2014-10-16 22:06:51 +02:00 committed by Rok Garbas
parent 3f6949c3ef
commit 221b5a5be5
3 changed files with 1267 additions and 0 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,7 @@
{ stdenv, fetchurl, perl, gmp ? null
, aclSupport ? false, acl ? null
, selinuxSupport? false, libselinux ? null, libsepol ? null
, autoconf, automake114x
}:
assert aclSupport -> acl != null;
@ -18,6 +19,8 @@ let
sha256 = "0bdq6yggyl7nkc2pbl6pxhhyx15nyqhz3ds6rfn448n6rxdwlhzc";
};
patches = if stdenv.isCygwin then [ ./coreutils-8.23-4.cygwin.patch ] else null;
# The test tends to fail on btrfs and maybe other unusual filesystems.
postPatch = stdenv.lib.optionalString (!stdenv.isDarwin) ''
sed '2i echo Skipping dd sparse test && exit 0' -i ./tests/dd/sparse.sh
@ -26,6 +29,7 @@ let
nativeBuildInputs = [ perl ];
buildInputs = [ gmp ]
++ optional aclSupport acl
++ optionals stdenv.isCygwin [ autoconf automake114x ] # due to patch
++ optionals selinuxSupport [ libselinux libsepol ];
crossAttrs = {

View file

@ -19,6 +19,10 @@ stdenv.mkDerivation rec {
configureFlags = [ "gl_cv_func_wcwidth_works=yes" ];
};
preConfigure = if stdenv.isCygwin then ''
sed -i gnulib/lib/fpending.h -e '/include <stdio_ext.h>/d'
'' else null;
meta = {
homepage = http://www.gnu.org/software/findutils/;
description = "GNU Find Utilities, the basic directory searching utilities of the GNU operating system";