coreutils: fix build on 32-bit ARM

Adds an upstream patch to fix failing tests. The patch actually affects gnulib,
which is included as a vendored dependency.
This commit is contained in:
Ben Wolsieffer
2020-11-15 17:17:31 -05:00
parent 0e89c426c7
commit b70430a3dd
2 changed files with 49 additions and 1 deletions
+4 -1
View File
@@ -31,7 +31,10 @@ stdenv.mkDerivation (rec {
patches = optional stdenv.hostPlatform.isCygwin ./coreutils-8.23-4.cygwin.patch
# included on coreutils master; TODO: apply unconditionally, I guess
++ optional stdenv.hostPlatform.isAarch64 ./sys-getdents-undeclared.patch;
++ optional stdenv.hostPlatform.isAarch64 ./sys-getdents-undeclared.patch
# fix gnulib tests on 32-bit ARM. Included on coreutils master.
# https://lists.gnu.org/r/bug-gnulib/2020-08/msg00225.html
++ optional stdenv.hostPlatform.isAarch32 ./fix-gnulib-tests-arm.patch;
postPatch = ''
# The test tends to fail on btrfs,f2fs and maybe other unusual filesystems.