[spring] 01/01: make generated .sdz (zip) archives reproducible
Alexandre Detiste
detiste-guest at moszumanska.debian.org
Tue Mar 1 09:30:13 UTC 2016
This is an automated email from the git hooks/post-receive script.
detiste-guest pushed a commit to branch master
in repository spring.
commit 2e0d65bb565da435b38ffce5059d9c5000b04371
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Tue Mar 1 10:29:47 2016 +0100
make generated .sdz (zip) archives reproducible
---
debian/changelog | 7 +++++++
debian/rules | 4 ++++
2 files changed, 11 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index d70d165..6624482 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+spring (100.0+dfsg-3) UNRELEASED; urgency=medium
+
+ [ Alexandre Detiste ]
+ * Make generated .sdz (zip) archives reproducible
+
+ -- Markus Koschany <apo at gambaru.de> Tue, 01 Mar 2016 10:28:40 +0100
+
spring (100.0+dfsg-2) unstable; urgency=medium
* Add remove-ThreadPool-test.patch.
diff --git a/debian/rules b/debian/rules
index ead942e..82a2b2c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,7 @@ PKG := $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source)
UVER := $(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
DTYPE := +dfsg
VER ?= $(subst $(DTYPE),,$(UVER))
+BUILD_DATE := $(shell dpkg-parsechangelog --show-field=Date)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
@@ -31,6 +32,9 @@ override_dh_auto_configure:
-DMARCH_FLAG=$(MARCH_FLAG)
override_dh_auto_build:
+ # Reproducible: these files get packed in .sdz (= .zip) files
+ find cont/base -type f -exec touch --date='$(BUILD_DATE)' {} \;
+ find cont/base -type f -exec chmod 0644 {} \;
dh_auto_build
cd $(CURDIR)/obj-$(DEB_HOST_GNU_TYPE)/test && make tests
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/spring.git
More information about the Pkg-games-commits
mailing list