Source: qtruby Version: 4:4.14.3-1 Severity: wishlist Tags: patch User: reproducible-builds@lists.alioth.debian.org Usertags: fileordering timestamps umask X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org Hi! While working on the "reproducible builds" effort [1], we have noticed that qtruby could not be built reproducibly. A tarball generated during build is unsorted, its files have the current time as timestamps and the permissions vary with the umask. The attached patch fixes those issues. Regards, Reiner [1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/control b/debian/control
index 9fc9321..5b35a07 100644
--- a/debian/control
+++ b/debian/control
@@ -17,7 +17,8 @@ Build-Depends: cmake,
pkg-kde-tools (>= 0.6.8),
ruby,
ruby-dev,
- smoke-dev-tools (>= 4:4.11)
+ smoke-dev-tools (>= 4:4.11),
+ tar (>= 1.28)
Build-Conflicts: libqtwebkit-dev
Standards-Version: 3.9.6
Homepage: http://projects.kde.org/projects/kde/kdebindings/ruby/qtruby
diff --git a/debian/rules b/debian/rules
index 2e222a0..c16b5f6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -27,7 +27,7 @@ override_dh_compress:
override_dh_installexamples-arch:
dh_installexamples -a
- tar cvzf $(CURDIR)/debian/ruby-qt4/usr/share/doc/ruby-qt4/examples.tar.gz examples
+ tar cvzf $(CURDIR)/debian/ruby-qt4/usr/share/doc/ruby-qt4/examples.tar.gz examples --clamp-mtime --mtime="@$(SOURCE_DATE_EPOCH)" --sort=name --mode=go=rX,u+rw,a-s --owner=root --group=root --numeric-owner
override_dh_makeshlibs:
dh_makeshlibs -V
Attachment:
signature.asc
Description: Digital signature