From 531d8f17159a88021fd5683fbcd711cf5cef7270 Mon Sep 17 00:00:00 2001 From: Oleksandr Hnatiuk Date: Tue, 27 Aug 2024 12:35:20 -0700 Subject: [PATCH] man: fix reproducibility - remove file timestamps Man pages for kpatch are created via gzip which includes timestamp of original file by default. This means the compressed file will change depending on the time at which the repository was cloned / updated, leading to non-deterministic builds. Pass option to disable this. Signed-off-by: Oleksandr Hnatiuk --- man/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man/Makefile b/man/Makefile index 762042d..489b61f 100644 --- a/man/Makefile +++ b/man/Makefile @@ -3,10 +3,10 @@ include ../Makefile.inc all: kpatch.1.gz kpatch-build.1.gz kpatch.1.gz: kpatch.1 - gzip -c -9 $< > $@ + gzip -n -c -9 $< > $@ kpatch-build.1.gz: kpatch-build.1 - gzip -c -9 $< > $@ + gzip -n -c -9 $< > $@ install: all $(INSTALL) -d $(MANDIR)