Source: v4l2loopback
Version: 0.8.0-4
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 v4l2loopback could not be built reproducibly.

The attached patch removes timestamps from the build system. Once
applied, v4l2loopback 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 v4l2loopback.orig/v4l2loopback-0.8.0/debian/rules 
v4l2loopback/v4l2loopback-0.8.0/debian/rules
--- v4l2loopback.orig/v4l2loopback-0.8.0/debian/rules   2015-02-15 
10:35:59.797417173 +0000
+++ v4l2loopback/v4l2loopback-0.8.0/debian/rules        2015-02-15 
10:37:17.976840685 +0000
@@ -20,6 +20,8 @@
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/rules/utils.mk
 
+BUILD_DATE := $(shell dpkg-parsechangelog --show-field Date)
+
 install/v4l2loopback-source::
 
        # install source code and create directory
@@ -41,7 +43,7 @@
        done
        # Prepare the debian source tarball
        tar jcf debian/v4l2loopback-source/usr/src/v4l2loopback.tar.bz2 \
-               -C debian/tmp modules
+               -C debian/tmp --mtime="$(BUILD_DATE)" modules
 
 install/v4l2loopback-dkms::
        # Create the v4l2loopback-dkms package.
_______________________________________________
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