Source: v4l2loopback
Version: 0.9.1-3
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: fileordering
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi!

While working on the "reproducible builds" effort [1], we have noticed
that v4l2loopback could not be built reproducibly.
The files inside the v4l2loopback tarball are unsorted.

The attached patch fixes this by telling tar to sort the files by name [2]
(supported since tar 1.28).

Regards,
 Reiner

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

diff --git a/debian/control b/debian/control
index 2de2a84..1e56d27 100644
--- a/debian/control
+++ b/debian/control
@@ -8,6 +8,7 @@ Build-Depends: cdbs,
  devscripts,
  help2man (>= 1.37.1~),
  dkms,
+ tar (>= 1.28),
  bzip2
 Standards-Version: 3.9.6
 Homepage: http://github.com/umlaeute/v4l2loopback
diff --git a/debian/rules b/debian/rules
index 6e58fc7..9c18549 100755
--- a/debian/rules
+++ b/debian/rules
@@ -42,7 +42,7 @@ install/v4l2loopback-source::
 			debian/tmp/modules/v4l2loopback/debian/; \
 	done
 	# Prepare the debian source tarball
-	tar jcf debian/v4l2loopback-source/usr/src/v4l2loopback.tar.bz2 \
+	tar --sort=name -jcf debian/v4l2loopback-source/usr/src/v4l2loopback.tar.bz2 \
 		-C debian/tmp --mtime="$(BUILD_DATE)" modules
 
 install/v4l2loopback-dkms::

Attachment: signature.asc
Description: OpenPGP 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