Source: phpdox
Version: 0.8.1.1-2
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], I noticed
that phpdox could not be built reproducibly.

Patch attached.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/patches/0006-Reproducible-build.patch      1970-01-01 
01:00:00.000000000 +0100
--- b/debian/patches/0006-Reproducible-build.patch      2016-08-23 
13:16:58.711702318 +0100
@@ -0,0 +1,15 @@
+Description: Make the build reproducible
+Author: Chris Lamb <la...@debian.org>
+Last-Update: 2016-08-23
+
+--- phpdox-0.8.1.1.orig/src/shared/Version.php
++++ phpdox-0.8.1.1/src/shared/Version.php
+@@ -68,7 +68,7 @@ namespace TheSeer\phpDox {
+         }
+ 
+         public function getInfoString() {
+-            return 'phpDox ' . $this->getVersion() . " - Copyright (C) 2010 - 
" . date('Y') . " by Arne Blankerts";
++            return 'phpDox ' . $this->getVersion() . " - Copyright (C) 2010 - 
" . date('Y', getenv('SOURCE_DATE_EPOCH') ?: time()) . " by Arne Blankerts";
+         }
+ 
+         public function getGeneratedByString() {
--- a/debian/patches/series     2016-08-23 12:47:35.980672549 +0100
--- b/debian/patches/series     2016-08-23 13:16:57.583690049 +0100
@@ -3,3 +3,4 @@
 0003-Adpapt-to-actual-templates-path.patch
 0004-Don-t-Hardwire-PHPParser.patch
 0005-Use-expectException-instead-of-deprecated-setExpecte.patch
+0006-Reproducible-build.patch
_______________________________________________
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