From: Chris Lamb Date: Mon, 2 Dec 2019 09:44:23 +0000 (+0100) Subject: Make the build reproducible. X-Git-Tag: v1.0.4~9 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=2d0464872cec02b53f5bb5ca2a037cb764641c1f;p=lopsub.git 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/ --- 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