From a43e8ad8b1085c9f92f79d71ef49b24531398de2 Mon Sep 17 00:00:00 2001 From: milahu Date: Thu, 9 Sep 2021 19:58:42 +0200 Subject: [PATCH] unpackFile: ignore timestamp warnings --- pkgs/stdenv/generic/setup.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/stdenv/generic/setup.sh b/pkgs/stdenv/generic/setup.sh index ec5a5e6dcb9d8..c7dc7d75e3a1d 100644 --- a/pkgs/stdenv/generic/setup.sh +++ b/pkgs/stdenv/generic/setup.sh @@ -829,15 +829,16 @@ _defaultUnpack() { else + # warning=no-timestamp: ignore "time stamp is in the future" case "$fn" in *.tar.xz | *.tar.lzma | *.txz) # Don't rely on tar knowing about .xz. - xz -d < "$fn" | tar xf - + xz -d < "$fn" | tar xf - --warning=no-timestamp ;; *.tar | *.tar.* | *.tgz | *.tbz2 | *.tbz) # GNU tar can automatically select the decompression method # (info "(tar) gzip"). - tar xf "$fn" + tar xf "$fn" --warning=no-timestamp ;; *) return 1