findutils: fix build on 32-bit ARM

Add 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 b70430a3dd
commit 0f5235b688
2 changed files with 49 additions and 3 deletions
+4 -3
View File
@@ -20,9 +20,10 @@ stdenv.mkDerivation rec {
substituteInPlace xargs/xargs.c --replace 'char default_cmd[] = "echo";' 'char default_cmd[] = "${coreutils}/bin/echo";'
'';
patches = [
./no-install-statedir.patch
];
patches = [ ./no-install-statedir.patch ]
# fix gnulib tests on 32-bit ARM. Included on findutils master.
# https://lists.gnu.org/r/bug-gnulib/2020-08/msg00225.html
++ stdenv.lib.optional stdenv.hostPlatform.isAarch32 ./fix-gnulib-tests-arm.patch;
buildInputs = [ coreutils ]; # bin/updatedb script needs to call sort