Source: daemontools
Version: 1:0.76-6
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]
Hi,
While working on the "reproducible builds" effort [1], we have noticed
that daemontools could not be built reproducibly.
The attached patch removes timestamps from the build system. Once
applied, daemontools can be built reproducibly in our current
experimental
framework.
[1]: https://wiki.debian.org/ReproducibleBuilds
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
diff -urNad daemontools.orig/daemontools-0.76/debian/implicit
daemontools/daemontools-0.76/debian/implicit
--- daemontools.orig/daemontools-0.76/debian/implicit 2015-02-02
19:43:04.575255533 +0000
+++ daemontools/daemontools-0.76/debian/implicit 2015-02-02
19:46:43.568967310 +0000
@@ -35,7 +35,7 @@
debian/$*/usr/share/doc/$*/changelog'
@test -s debian/$*/usr/share/doc/$*/changelog || \
sh -cx 'rm -f debian/$*/usr/share/doc/$*/changelog'
- @gzip -9 debian/$*/usr/share/doc/$*/changelog*
+ @gzip -9n debian/$*/usr/share/doc/$*/changelog*
%.deb-docs-docs: %.deb-docs-base
@for i in `cat debian/$*.docs 2>/dev/null || :`; do \
if test -d $$i; then \
@@ -54,7 +54,7 @@
@if test -r debian/$*.NEWS.Debian; then \
sh -cx 'install -m0644 debian/$*.NEWS.Debian \
debian/$*/usr/share/doc/$*/NEWS.Debian && \
- gzip -9 debian/$*/usr/share/doc/$*/NEWS.Debian'; \
+ gzip -9n debian/$*/usr/share/doc/$*/NEWS.Debian'; \
fi
%.deb-docs-examples: %.deb-docs-docs
@rm -rf debian/$*/usr/share/doc/$*/examples
diff -urNad daemontools.orig/daemontools-0.76/debian/rules
daemontools/daemontools-0.76/debian/rules
--- daemontools.orig/daemontools-0.76/debian/rules 2015-02-02
19:43:04.575255533 +0000
+++ daemontools/daemontools-0.76/debian/rules 2015-02-02 19:44:01.937792978
+0000
@@ -47,7 +47,7 @@
install -d -m0755 '$(DIR)'/usr/share/man/man8
for i in debian/daemontools-man/*.8; do \
install -m0644 $$i '$(DIR)'/usr/share/man/man8/ && \
- gzip -9 '$(DIR)'/usr/share/man/man8/$${i##*/} || exit 1; \
+ gzip -9n '$(DIR)'/usr/share/man/man8/$${i##*/} || exit 1; \
done
# changelog
test -r changelog || ln -s daemontools-0.76/src/CHANGES changelog
@@ -62,7 +62,7 @@
'$(DIR)'-run/usr/sbin/update-service
install -d -m0755 '$(DIR)'-run/usr/share/man/man8
install -m0644 debian/update-service.8 '$(DIR)'-run/usr/share/man/man8/
- gzip -9 '$(DIR)'-run/usr/share/man/man8/update-service.8
+ gzip -9n '$(DIR)'-run/usr/share/man/man8/update-service.8
# systemd service
install -d -m0755 '$(DIR)'-run/lib/systemd/system
install -m0644 debian/systemd/daemontools.service \