[debian-edu-commits] debian-edu/ 01/01: Make the build reproducable (Closes: #779602).

Petter Reinholdtsen pere at moszumanska.debian.org
Fri Jan 22 21:31:36 UTC 2016


This is an automated email from the git hooks/post-receive script.

pere pushed a commit to branch master
in repository desktop-profiles.

commit 9f7a5c562573cd22c8248a3640b959f8cbc31c05
Author: Petter Reinholdtsen <pere at hungry.com>
Date:   Fri Jan 22 22:31:20 2016 +0100

    Make the build reproducable (Closes: #779602).
---
 Makefile         | 8 +++++++-
 debian/changelog | 6 ++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 3f14db8..9bfd570 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,8 @@
 DESTDIR =
 PREFIX = /usr
 
+BUILD_DATE = $(shell dpkg-parsechangelog --show-field Date)
+
 build: documentation l10n check
 
 documentation: dh_installlisting.1
@@ -39,7 +41,11 @@ install: install-l10n
 	./dh_installlisting
 
 zip-tests:
-	tar -cvzf tests.tgz tests
+	find tests -not -type d -print0 | \
+		LC_ALL="C" sort --zero-terminated | \
+		GZIP="-9n" tar --create --gzip --null --files-from=- \
+			--file=tests.tgz --mtime="$(BUILD_DATE)" \
+			--owner=root --group=root --numeric-owner
 
 check: zip-tests
 
diff --git a/debian/changelog b/debian/changelog
index 20996fe..4885624 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+desktop-profiles (1.4.21) UNRELEASED; urgency=medium
+
+  * Make the build reproducable (Closes: #779602).
+
+ -- Petter Reinholdtsen <pere at debian.org>  Fri, 22 Jan 2016 22:29:14 +0100
+
 desktop-profiles (1.4.20) unstable; urgency=low
 
   * Correct Vcs control file links to new location.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/upstream/desktop-profiles.git



More information about the debian-edu-commits mailing list