Source: klone
Version: 2.1.0~rc1-1
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 klone could not be built reproducibly.

The attached patch removes timestamps from the build system. Once
applied, klone can be built reproducibly in our current experimental
framework.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
diff -urNad klone.orig/klone-2.1.0~rc1/debian/rules 
klone/klone-2.1.0~rc1/debian/rules
--- klone.orig/klone-2.1.0~rc1/debian/rules     2015-02-08 19:28:25.681625347 
+0000
+++ klone/klone-2.1.0~rc1/debian/rules  2015-02-08 19:32:52.857349447 +0000
@@ -6,6 +6,8 @@
 
 VER := $(shell dh_testdir && ls build/dist/klone-core-*.tar* | head -n 1 | 
perl -ne 'print $$1 if /klone-core-(.*)\.tar\.gz/;')
 
+BUILD_DATE := $(shell dpkg-parsechangelog --show-field Date)
+
 build: build-stamp
 
 build-stamp:
@@ -14,7 +16,7 @@
        test -e "klone-source" || ln -s . klone-source
        test -e "build/dist/klone-core-$(VER).tar.gz.orig" || mv 
"build/dist/klone-core-$(VER).tar.gz" "build/dist/klone-core-$(VER).tar.gz.orig"
        test -L "build/dist/klone-core-$(VER).tar.gz" || ln -s 
"/usr/src/klone-core-$(VER).tar.gz" "build/dist/klone-core-$(VER).tar.gz"
-       tar cf debian/klone-source.tar.bz2 --bzip2 
--exclude=klone-source/klone-source --exclude=klone-source/debian 
--exclude=klone-source/build/dist/klone-*orig --exclude="klone-core-$(VER)" 
klone-source/*
+       tar cf debian/klone-source.tar.bz2 --bzip2 
--exclude=klone-source/klone-source --exclude=klone-source/debian 
--exclude=klone-source/build/dist/klone-*orig --exclude="klone-core-$(VER)" 
--mtime="$(BUILD_DATE)" klone-source/*
        test ! -L "build/dist/klone-core-$(VER).tar.gz" || rm 
"build/dist/klone-core-$(VER).tar.gz"
        test ! -e "build/dist/klone-core-$(VER).tar.gz.orig" || mv 
"build/dist/klone-core-$(VER).tar.gz.orig" "build/dist/klone-core-$(VER).tar.gz"
        rm -f klone-source
_______________________________________________
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