Source: bbdb
Version: 2.36-4
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: fileordering timestamps username
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi!

While working on the "reproducible builds" effort [1], we have noticed
that bbdb could not be built reproducibly.
An included tarball contains files with the current build date, the
build user/group and is unsorted.

The attached patch fixes this.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/control b/debian/control
index 1968d30..87967e6 100644
--- a/debian/control
+++ b/debian/control
@@ -6,7 +6,7 @@ Uploaders: Barak A. Pearlmutter <b...@debian.org>
 Build-Depends: debhelper (>= 9),
     dh-autoreconf
 Build-Depends-Indep: texinfo, texi2html, ghostscript,
-    texlive-base, texlive-latex-base,
+    texlive-base, texlive-latex-base, tar (>= 1.28),
     emacs24-nox | emacs24 | emacs23-nox | emacs23 | emacs
 Standards-Version: 3.9.5
 Vcs-Git: git://github.com/barak/BBDB.git
diff --git a/debian/rules b/debian/rules
index 1407bdb..86119c5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -23,4 +23,4 @@ override_dh_install:
 
 bits.tar.gz:
 	tar -cf - extern/*/* | tar -C bits -xvf -
-	tar -czf bits.tar.gz bits/
+	tar -czf bits.tar.gz bits/ --sort=name --clamp-mtime --mtime="@${SOURCE_DATE_EPOCH}" --mode=go=rX,u+rw,a-s --owner=root --group=root --numeric-owner

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