Lunar:
> The attached patch […]

For real!

-- 
Lunar                                .''`. 
lu...@debian.org                    : :Ⓐ  :  # apt-get install anarchism
                                    `. `'` 
                                      `-   
diff -Nru linux-minidisc-0.9.13/debian/changelog linux-minidisc-0.9.13/debian/changelog
--- linux-minidisc-0.9.13/debian/changelog	2014-01-06 10:12:49.000000000 +0000
+++ linux-minidisc-0.9.13/debian/changelog	2015-05-22 21:19:46.000000000 +0000
@@ -1,3 +1,11 @@
+linux-minidisc (0.9.13-1.0~reproducible1) UNRELEASED; urgency=low
+
+  * Make the build reproducible:
+    - Add a patch to use the time of the latest debian/changelog entry as the
+      build date.
+
+ -- Jérémy Bobbio <lu...@debian.org>  Fri, 22 May 2015 21:18:45 +0000
+
 linux-minidisc (0.9.13-1) unstable; urgency=medium
 
    * New upstream release.
diff -Nru linux-minidisc-0.9.13/debian/patches/series linux-minidisc-0.9.13/debian/patches/series
--- linux-minidisc-0.9.13/debian/patches/series	1970-01-01 00:00:00.000000000 +0000
+++ linux-minidisc-0.9.13/debian/patches/series	2015-05-22 21:17:48.000000000 +0000
@@ -0,0 +1 @@
+use-debian-changelog-for-build-date.patch
diff -Nru linux-minidisc-0.9.13/debian/patches/use-debian-changelog-for-build-date.patch linux-minidisc-0.9.13/debian/patches/use-debian-changelog-for-build-date.patch
--- linux-minidisc-0.9.13/debian/patches/use-debian-changelog-for-build-date.patch	1970-01-01 00:00:00.000000000 +0000
+++ linux-minidisc-0.9.13/debian/patches/use-debian-changelog-for-build-date.patch	2015-05-22 21:18:41.000000000 +0000
@@ -0,0 +1,18 @@
+Description: Use debian/changelog to extract build date
+ To make qhimdtransfer build in a reproducible manner, we now use
+ the date of the latest entry in debian/changelog as the build date.
+Author: Jérémy Bobbio <lu...@debian.org>
+
+diff --git a/qhimdtransfer/qhimdtransfer.pro b/qhimdtransfer/qhimdtransfer.pro
+index 94125ff..843ec72 100644
+--- a/qhimdtransfer/qhimdtransfer.pro
++++ b/qhimdtransfer/qhimdtransfer.pro
+@@ -20,7 +20,7 @@ VERSTR = '\\"$${VERSION}\\"'  # place quotes around the version string
+ DEFINES += VER=\"$${VERSTR}\" # create a VER macro containing the version string
+ 
+ # determine build date
+-unix:BUILDDATE = $$system(date +%a\\ %m\\/%d\\/%Y)
++unix:BUILDDATE = $$system(dpkg-parsechangelog -l ../debian/changelog -S Date | LC_ALL=C date -u -f - +%a\\ %m\\/%d\\/%Y)
+ win32:BUILDDATE = $$system(date /T)
+ 
+ BDATESTR = '\\"$${BUILDDATE}\\"'  # place quotes around the build date string

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to