3
0
Fork 0
forked from mirrors/nixpkgs

coreutils: Build with libattr to support xattrs

Fixes #21649
This commit is contained in:
Tuomas Tynkkynen 2017-01-05 00:46:34 +02:00
parent ea7b252c9a
commit bde8632106
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; };