Source: allegro4.4
Version: 2:4.4.2-5
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 allegro4.4 could not be built reproducibly.

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

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
diff -urNad allegro4.4.orig/allegro4.4-4.4.2/debian/rules 
allegro4.4/allegro4.4-4.4.2/debian/rules
--- allegro4.4.orig/allegro4.4-4.4.2/debian/rules       2015-02-12 
12:32:21.576511758 +0000
+++ allegro4.4/allegro4.4-4.4.2/debian/rules    2015-02-12 13:32:27.232091692 
+0000
@@ -10,6 +10,8 @@
 CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS)
 LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed
 
+BUILD_DATE := $(shell dpkg-parsechangelog --show-field Date)
+
 # Use this variable to allow options passed to cmake to be overridable.
 # WANT_EXAMPLES and WANT_TESTS are set to ON only to check if they build
 # successfully, as their source is shipped in the doc package.
@@ -56,7 +58,7 @@
 # Create examples source tar.gz
        rm -rf build/tmp; mkdir build/tmp
        cp examples/*.c examples/*.h examples/*.dat examples/*.pcx 
examples/*.txt examples/*.ini tests/*.c build/tmp/
-       cd build/tmp; tar zcvf source.tar.gz *
+       cd build/tmp; GZIP="-9n" tar zcvf source.tar.gz --mtime="$(BUILD_DATE)" 
*
        cp build/tmp/source.tar.gz $(CURDIR)/debian/tmp/$(DOC_EXAMPLES_DIR)
 
 override_dh_makeshlibs:
_______________________________________________
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