Merge #21661: coreutils: build with xattr support

This commit is contained in:
Vladimír Čunát 2017-01-05 00:18:43 +01:00
commit 6f2840c158
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA
4 changed files with 8 additions and 4 deletions

View file

@ -87,8 +87,9 @@ rec {
coreutilsMinimal = (pkgs.coreutils.override (args: {
# We want coreutils without ACL support.
# We want coreutils without ACL/attr support.
aclSupport = false;
attrSupport = false;
# Our tooling currently can't handle scripts in bin/, only ELFs and symlinks.
singleBinary = "symlinks";
})).crossDrv;

View file

@ -6,8 +6,9 @@ rec {
coreutilsMinimal = coreutils.override (args: {
# We want coreutils without ACL support.
# We want coreutils without ACL/attr support.
aclSupport = false;
attrSupport = false;
# Our tooling currently can't handle scripts in bin/, only ELFs and symlinks.
singleBinary = "symlinks";
});

View file

@ -1,5 +1,6 @@
{ lib, stdenv, fetchurl, perl, xz, gmp ? null
, aclSupport ? false, acl ? null
, attrSupport ? false, attr ? null
, selinuxSupport? false, libselinux ? null, libsepol ? null
, autoconf, automake114x, texinfo
, withPrefix ? false
@ -44,12 +45,14 @@ let
buildInputs = [ gmp ]
++ optional aclSupport acl
++ optional attrSupport attr
++ optionals stdenv.isCygwin [ autoconf automake114x texinfo ] # due to patch
++ optionals selinuxSupport [ libselinux libsepol ];
crossAttrs = {
buildInputs = [ gmp.crossDrv ]
++ optional aclSupport acl.crossDrv
++ optional attrSupport attr.crossDrv
++ optionals selinuxSupport [ libselinux.crossDrv libsepol.crossDrv ]
++ optional (stdenv.ccCross.libc ? libiconv)
stdenv.ccCross.libc.libiconv.crossDrv;
@ -90,8 +93,6 @@ let
makeFlags = optionalString stdenv.isDarwin "CFLAGS=-D_FORTIFY_SOURCE=0";
postFixup = ""; # FIXME: remove on next mass rebuild
meta = {
homepage = http://www.gnu.org/software/coreutils/;
description = "The basic file, shell and text manipulation utilities of the GNU operating system";

View file

@ -1287,6 +1287,7 @@ in
coreutils = callPackage ../tools/misc/coreutils {
aclSupport = stdenv.isLinux;
attrSupport = stdenv.isLinux;
};
coreutils-prefixed = coreutils.override { withPrefix = true; singleBinary = false; };