Source: php-guzzlehttp
Version: 5.3.0-1
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 php-guzzlehttp could not be built reproducibly.

The attached patch removes timezone varying timestamps from the build
system. Once applied, php-guzzlehttp 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 --git a/debian/rules b/debian/rules
index be2f94f..1a4c426 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,8 @@
 #!/usr/bin/make -f
+
+BUILD_DATE = $(shell dpkg-parsechangelog --show-field Date)
+BUILD_DATE_FORMATTED = $(shell LC_ALL=C date --utc --date="$(BUILD_DATE)" "+%B 
%d, %Y")
+
 %:
        dh $@ --with phpcomposer,sphinxdoc
 
@@ -6,7 +10,7 @@ override_dh_auto_build:
        phpab   --output src/autoload.php \
                --template debian/autoload.php.tpl \
                src
-       $(MAKE) -C docs html latexpdf
+       $(MAKE) SPHINXOPTS="-D today="$(TODAY)"" -C docs html latexpdf
        mkdir --parents vendor
        phpab   --output vendor/autoload.php \
                --basedir vendor \
_______________________________________________
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