summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Fritsch <sf@sfritsch.de>2016-08-13 13:30:28 +0200
committerStefan Fritsch <sf@sfritsch.de>2016-08-21 22:27:02 +0200
commit7abdc58106f53df3da2aa658f2107799a39342c9 (patch)
treec5f73d58b6c8ba81be967e379c7ee9c9adbad4d5
parentda7d3edd067dd8b475486e3407ccfb62613fc415 (diff)
downloadapache2-7abdc58106f53df3da2aa658f2107799a39342c9.tar.gz
Improve preinst for reproducible build
The timestamps inside the tar file are not used for anything. Set them to an arbitrary fixed value. Same for permissions (because of umask), user, umask.
-rw-r--r--debian/changelog7
-rwxr-xr-xdebian/rules9
2 files changed, 15 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 4dcec89d..861d2851 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+apache2 (2.4.23-5) UNRELEASED; urgency=medium
+
+ * Tweak creation of .tar.gz embedded in preinst to get reproducible
+ build.
+
+ -- Stefan Fritsch <sf@debian.org> Sat, 13 Aug 2016 13:38:30 +0200
+
apache2 (2.4.23-4) unstable; urgency=medium
* Fix pre-inst script for new installations. Closes: #834169
diff --git a/debian/rules b/debian/rules
index 709623d0..0202f75d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -55,7 +55,14 @@ debian/fixup_conffiles.tgz: \
debian/config-dir/mods-available/cern_meta.load \
debian/config-dir/mods-available/ident.load \
debian/config-dir/mods-available/imagemap.load
- tar --transform 's,.*/,,' -cz -f $@ $^
+ @# mtime/owner/group/mode are for reproducible build
+ tar \
+ --mtime=2000-01-01T00:00 \
+ --owner=root:0 \
+ --group=root:0 \
+ --mode=0644 \
+ --transform 's,.*/,,' \
+ -cz -f $@ $^
debian/fixup_conffiles.b64: debian/fixup_conffiles.tgz
base64 < $< > $@