Skip to content

Commit

Permalink
man: fix reproducibility - remove file timestamps
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
ohnatiuk1 committed Aug 27, 2024
1 parent 269a061 commit 531d8f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions man/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 531d8f1

Please sign in to comment.