Source: apg
Version: 2.2.3.dfsg.1-2
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 apg could not be built reproducibly.
The attached patch removes timestamps from the build system. Once
applied, apg 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 apg.orig/apg-2.2.3.dfsg.1/debian/rules
apg/apg-2.2.3.dfsg.1/debian/rules
--- apg.orig/apg-2.2.3.dfsg.1/debian/rules 2015-02-12 12:32:18.016360160
+0000
+++ apg/apg-2.2.3.dfsg.1/debian/rules 2015-02-12 12:36:20.134966457 +0000
@@ -8,6 +8,7 @@
DEB_MAKE_CLEAN_TARGET := clean
DEB_MAKE_BUILD_TARGET := standalone
DEB_MAKE_INSTALL_TARGET := install INSTALL_PREFIX=$(CURDIR)/debian/apg/usr
+BUILD_DATE := $(shell dpkg-parsechangelog --show-field Date)
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/dpatch.mk
@@ -18,7 +19,7 @@
install/apg::
mv $(CURDIR)/debian/apg/usr/bin/apg $(CURDIR)/debian/apg/usr/lib/apg/apg
- tar --create --gzip --file php.tar.gz --directory
$(CURDIR)/php/apgonline/ .
+ GZIP="-9n" tar --create --gzip --file php.tar.gz --directory
$(CURDIR)/php/apgonline/ --mtime="$(BUILD_DATE)" .
install -D --mode=0644 php.tar.gz
$(CURDIR)/debian/apg/usr/share/doc/apg/php.tar.gz
rm php.tar.gz
install -D --mode=0755 $(CURDIR)/debian/apg.wrapper
$(CURDIR)/debian/apg/usr/bin/apg