Source: desktop-profiles
Version: 1.4.20
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi,

While working on the "reproducible builds" effort [1], we have noticed
that desktop-profiles could not be built reproducibly.

The attached patch removes timestamps from the build system. Once
applied, desktop-profiles can be built reproducibly in our reproducible
toolchain.

 [1]: https://wiki.debian.org/ReproducibleBuilds


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
diff -urNad desktop-profiles.orig/desktop-profiles-1.4.20/Makefile 
desktop-profiles/desktop-profiles-1.4.20/Makefile
--- desktop-profiles.orig/desktop-profiles-1.4.20/Makefile      2015-03-02 
22:23:08.587486477 +0000
+++ desktop-profiles/desktop-profiles-1.4.20/Makefile   2015-03-02 
22:31:27.329936879 +0000
@@ -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 @@
        ./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
 
_______________________________________________
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