From caeefb8bd128c7928fdbd2b66b905776b47112f5 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 6 Nov 2021 18:02:45 +0000 Subject: [PATCH] ansifilter: fix non-determinism in gzipped manpages with s/gzip/gzip -n/ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before the change ansifilter diffoscope shows non-determinism as: $ diffoscope '...-ansifilter-2.18' '...-ansifilter-2.18.check' --- ...-ansifilter-2.18/share/man/man1/ansifilter.1.gz +++ ...-ansifilter-2.18.check/share/man/man1/ansifilter.1.gz ─ filetype from file(1) @@ -1 +1 @@ -gzip compressed data, was "ansifilter.1", last modified: Sat Oct 30 13:16:29 2021, max compression, from Unix +gzip compressed data, was "ansifilter.1", last modified: Sat Nov 6 18:04:36 2021, max compression, from Unix --- pkgs/tools/text/ansifilter/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/tools/text/ansifilter/default.nix b/pkgs/tools/text/ansifilter/default.nix index 97b06b9a0c7e..79aa4e2debcd 100644 --- a/pkgs/tools/text/ansifilter/default.nix +++ b/pkgs/tools/text/ansifilter/default.nix @@ -14,6 +14,8 @@ stdenv.mkDerivation rec { postPatch = '' substituteInPlace src/makefile --replace "CC=g++" "CC=c++" + # avoid timestamp non-determinism with '-n' + substituteInPlace makefile --replace 'gzip -9f' 'gzip -9nf' ''; makeFlags = [