From 3bf3f18d6cb79b2eac250104446eaa2f5f70b7c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Hamb=C3=BCchen?= Date: Mon, 13 May 2019 22:11:14 +0200 Subject: [PATCH] coreutils: Patch benign test case failing with musl. See https://github.com/NixOS/nixpkgs/pull/61250#issuecomment-491642024 --- pkgs/tools/misc/coreutils/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/tools/misc/coreutils/default.nix b/pkgs/tools/misc/coreutils/default.nix index 1774f9a51930f..901294bb65845 100644 --- a/pkgs/tools/misc/coreutils/default.nix +++ b/pkgs/tools/misc/coreutils/default.nix @@ -55,6 +55,13 @@ stdenv.mkDerivation rec { echo "int main() { return 77; }" > gnulib-tests/test-parse-datetime.c echo "int main() { return 77; }" > gnulib-tests/test-getlogin.c '' + # musl handles invalid times different than glibc, and coreutils has + # glibc's result in a test case for comparison, see: + # https://lists.gnu.org/archive/html/coreutils/2019-05/msg00031.html + '' + substituteInPlace ./tests/misc/date-debug.sh \ + --replace '2006-04-02 03:30:00' '2006-04-02 01:30:00' + '' ]); outputs = [ "out" "info" ];