Source: device3dfx
Version: 2013.08.08-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]

Hi,

While working on the "reproducible builds" effort [1], we have noticed
that device3dfx could not be built reproducibly.

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

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
diff -urNad device3dfx.orig/device3dfx-2013.08.08/debian/rules 
device3dfx/device3dfx-2013.08.08/debian/rules
--- device3dfx.orig/device3dfx-2013.08.08/debian/rules  2015-02-12 
12:28:38.711013848 +0000
+++ device3dfx/device3dfx-2013.08.08/debian/rules       2015-02-12 
12:30:35.615998066 +0000
@@ -13,6 +13,8 @@
 psource = $(pname)-source
 pmodule = $(pname)-module
 
+BUILD_DATE := $(shell dpkg-parsechangelog --show-field Date)
+
 build-indep build-arch build:
 
 .PHONY: build-indep build-arch build
@@ -41,7 +43,7 @@
        cp -R debian/source $(target)/debian
        chown -R root.root $(target)
        chmod +x $(target)/debian/rules
-       tar -C debian/$(psource)/usr/src -cvJf 
debian/$(psource)/usr/src/$(pname).tar.xz modules/$(pname)
+       tar --mtime="$(BUILD_DATE)" -C debian/$(psource)/usr/src -cvJf 
debian/$(psource)/usr/src/$(pname).tar.xz modules/$(pname)
        rm -r debian/$(psource)/usr/src/modules
 
 testmodule: install

Reply via email to