Source: debdelta
Version: 0.55
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 debdelta could not be built reproducibly.
The attached patch removes timestamps from the build system. Once
applied, debdelta 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 debdelta.orig/debdelta-0.55/debian/rules
debdelta/debdelta-0.55/debian/rules
--- debdelta.orig/debdelta-0.55/debian/rules 2015-02-11 22:53:24.179853333
+0000
+++ debdelta/debdelta-0.55/debian/rules 2015-02-11 23:13:19.171868158 +0000
@@ -51,7 +51,7 @@
rm -rf $(D2)
install -d $(D2)/DEBIAN $(docdir2) $(docdir2doc)
cp doc/debdelta_suite.pdf debian/copyright debian/changelog
$(docdir2doc)
- cd $(docdir2doc) && gzip -9 changelog
+ cd $(docdir2doc) && gzip -9n changelog
cp -r doc/html $(docdir2doc)
ln -s ../debdelta-doc/debdelta_suite.pdf $(docdir2)
ln -s ../debdelta-doc/html $(docdir2)
@@ -94,10 +94,10 @@
ln -s debdelta $(D)/usr/bin/debdelta-upgrade
# /usr/share/doc
cp FAQ README.features debian/copyright debian/changelog $(docdir)
- cd $(docdir) && gzip -9 changelog FAQ
+ cd $(docdir) && gzip -9n changelog FAQ
# man
cp *.1 $(mandir)
- gzip -9 $(mandir)/*.1
+ gzip -9n $(mandir)/*.1
# build package
dpkg-shlibdeps $(D)/usr/lib/debdelta/minigzip
$(D)/usr/lib/debdelta/minibzip2
dpkg-gencontrol -Pdebian/debdelta -pdebdelta