From 2d0464872cec02b53f5bb5ca2a037cb764641c1f Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Mon, 2 Dec 2019 10:44:23 +0100 Subject: [PATCH] Make the build reproducible. Whilst working on the Reproducible Builds effort [0] we noticed that liblopsub could not be built reproducibly. This is because it calls "gzip" manually without the -n flag. This should have been reported by lintian via the package-contains-timestamped-gzip tag. [0] https://reproducible-builds.org/ --- Makefile | 2 +- debian/rules | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index d1f89b1..e8fb7c0 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ AR := ar GROFF := groff CP := cp INSTALL := install -GZIP := gzip -f9 +GZIP := gzip -fn9 ZCAT := zcat DATE_FMT := +%B %Y diff --git a/debian/rules b/debian/rules index 3ba7a74..3e73eac 100755 --- a/debian/rules +++ b/debian/rules @@ -49,8 +49,8 @@ binary: build $(INST_FILE) debian/copyright $(DEVDOCS_DIR)/copyright $(INST_FILE) debian/changelog $(DOCS_DIR)/changelog.Debian $(INST_FILE) debian/changelog $(DEVDOCS_DIR)/changelog.Debian - gzip -f9 $(DOCS_DIR)/changelog.Debian - gzip -f9 $(DEVDOCS_DIR)/changelog.Debian + gzip -fn9 $(DOCS_DIR)/changelog.Debian + gzip -fn9 $(DEVDOCS_DIR)/changelog.Debian dh_makeshlibs dh_shlibdeps dh_strip -- 2.39.2