1Build compressed archives with -n
2
3The compressed archives contain a header with the field MTIME
4(Modification Time) which is initialized from the built date.
5As a consequence, two separate builds generate compressed archives
6whose checksum differs. Such behavior prevents reproducible builds.
7
8Adding the -n option to gzip while compressing the archive does
9not save the original time stamp by default hence making
10reproducible build.
11
12Upstream-Status: Inappropriate
13
14Signed-off-by: Jean-Marc BOUCHE <jean-marc.bouche@foss.st.com>
15Index: terminus-font-4.49.1/Makefile
16===================================================================
17--- terminus-font-4.49.1.orig/Makefile
18+++ terminus-font-4.49.1/Makefile
19@@ -92,9 +92,9 @@ otbdir  = $(prefix)/share/fonts/terminus
20
21 install: $(PSF) $(PCF)
22 	mkdir -p $(DESTDIR)$(psfdir)
23-	for i in $(PSF) ; do gzip -c $$i > $(DESTDIR)$(psfdir)/$$i.gz ; done
24+	for i in $(PSF) ; do gzip -c -n $$i > $(DESTDIR)$(psfdir)/$$i.gz ; done
25 	mkdir -p $(DESTDIR)$(x11dir)
26-	for i in $(PCF) ; do gzip -c $$i > $(DESTDIR)$(x11dir)/$$i.gz ; done
27+	for i in $(PCF) ; do gzip -c -n $$i > $(DESTDIR)$(x11dir)/$$i.gz ; done
28
29 uninstall:
30 	for i in $(PSF) ; do rm -f $(DESTDIR)$(psfdir)/$$i.gz ; done
31@@ -193,7 +193,7 @@ psf: $(PSF)
32
33 install-psf: $(PSF)
34 	mkdir -p $(DESTDIR)$(psfdir)
35-	for i in $(PSF) ; do gzip -c $$i > $(DESTDIR)$(psfdir)/$$i.gz ; done
36+	for i in $(PSF) ; do gzip -c -n $$i > $(DESTDIR)$(psfdir)/$$i.gz ; done
37
38 uninstall-psf:
39 	for i in $(PSF) ; do rm -f $(DESTDIR)$(psfdir)/$$i.gz ; done
40@@ -202,7 +202,7 @@ psf-vgaw: $(PSF_VGAW)
41
42 install-psf-vgaw: $(PSF_VGAW)
43 	mkdir -p $(DESTDIR)$(psfdir)
44-	for i in $(PSF_VGAW) ; do gzip -c $$i > $(DESTDIR)$(psfdir)/$$i.gz ; done
45+	for i in $(PSF_VGAW) ; do gzip -c -n $$i > $(DESTDIR)$(psfdir)/$$i.gz ; done
46
47 uninstall-psf-vgaw:
48 	for i in $(PSF_VGAW) ; do rm -f $(DESTDIR)$(psfdir)/$$i.gz ; done
49@@ -279,7 +279,7 @@ pcf: $(PCF)
50
51 install-pcf: $(PCF)
52 	mkdir -p $(DESTDIR)$(x11dir)
53-	for i in $(PCF) ; do gzip -c $$i > $(DESTDIR)$(x11dir)/$$i.gz ; done
54+	for i in $(PCF) ; do gzip -c -n $$i > $(DESTDIR)$(x11dir)/$$i.gz ; done
55
56 uninstall-pcf:
57 	for i in $(PCF) ; do rm -f $(DESTDIR)$(x11dir)/$$i.gz ; done
58@@ -288,7 +288,7 @@ pcf-8bit: $(PCF_8BIT)
59
60 install-pcf-8bit: $(PCF_8BIT)
61 	mkdir -p $(DESTDIR)$(x11dir)
62-	for i in $(PCF_8BIT) ; do gzip -c $$i > $(DESTDIR)$(x11dir)/$$i.gz ; done
63+	for i in $(PCF_8BIT) ; do gzip -c -n $$i > $(DESTDIR)$(x11dir)/$$i.gz ; done
64
65 uninstall-pcf-8bit:
66 	for i in $(PCF_8BIT) ; do rm -f $(DESTDIR)$(x11dir)/$$i.gz ; done
67