> Tags: patch

Here it is.

-- 
Lunar                                .''`. 
lu...@debian.org                    : :Ⓐ  :  # apt-get install anarchism
                                    `. `'` 
                                      `-   
diff -Nru base-files-8/debian/changelog base-files-8.0~reproducible1/debian/changelog
--- base-files-8/debian/changelog	2014-11-30 13:36:23.000000000 +0100
+++ base-files-8.0~reproducible1/debian/changelog	2015-01-03 14:36:15.000000000 +0100
@@ -1,3 +1,11 @@
+base-files (8.0~reproducible1) UNRELEASED; urgency=low
+
+  * Make package build reproducibly:
+  - Stop recording current time in gzip headers.
+  - Fix mtimes before building the binary package.
+
+ -- Jérémy Bobbio <lu...@debian.org>  Sat, 03 Jan 2015 13:35:32 +0000
+
 base-files (8) unstable; urgency=low
 
   * Release for jessie as stable:
diff -Nru base-files-8/debian/rules base-files-8.0~reproducible1/debian/rules
--- base-files-8/debian/rules	2014-07-20 12:11:12.000000000 +0200
+++ base-files-8.0~reproducible1/debian/rules	2015-01-03 14:35:30.000000000 +0100
@@ -11,6 +11,8 @@
   OSNAME=GNU/Hurd
 endif
 
+BUILD_DATE := $(shell dpkg-parsechangelog | sed -n -e 's/^Date: //p')
+
 VENDORFILE = debian
 
 VERSION = $(shell cat etc/debian_version)
@@ -64,7 +66,7 @@
 		> debian/tmp/etc/os-release
 	mv debian/tmp/etc/os-release debian/tmp/usr/lib
 	ln -s ../usr/lib/os-release debian/tmp/etc/os-release
-	gzip -9 $(docdir)/changelog
+	gzip -9n $(docdir)/changelog
 	cd debian/tmp && \
 		md5sum `find usr -type f` > DEBIAN/md5sums
 	chown -R root:root debian/tmp
@@ -74,6 +76,8 @@
 	cd debian/tmp && chmod 2775 `cat ../2775-dirs`
 	cd debian/tmp && chmod 700 root
 	dpkg-gencontrol -pbase-files
+	find debian/tmp -depth -newermt '$(BUILD_DATE)' -print0 | \
+		xargs -0r touch --no-dereference --date='$(BUILD_DATE)'
 	dpkg-deb --build -Zgzip debian/tmp ..
 
 binary-indep: build

Attachment: signature.asc
Description: Digital signature

Reply via email to