[pkg-php-pear] Bug#834754: phpab: please make the build reproducible

Chris Lamb lamby at debian.org
Thu Aug 18 16:46:15 UTC 2016


Source: phpab
Version: 1.21.0-2
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Hi,

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

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/patches/0002-Reproducible-build.patch	1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/0002-Reproducible-build.patch	2016-08-18 17:36:46.820798610 +0100
@@ -0,0 +1,15 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2016-08-18
+
+--- phpab-1.21.0.orig/src/Version.php
++++ phpab-1.21.0/src/Version.php
+@@ -58,7 +58,7 @@ namespace TheSeer\Autoload {
+         }
+ 
+         public static function getInfoString() {
+-            return 'phpab ' . self::getVersion() . " - Copyright (C) 2009 - " . date('Y') . " by Arne Blankerts";
++            return 'phpab ' . self::getVersion() . " - Copyright (C) 2009 - " . date('Y', getenv('SOURCE_DATE_EPOCH') ?: time()) . " by Arne Blankerts";
+         }
+ 
+     }
--- a/debian/patches/series	2016-08-18 17:24:08.526939252 +0100
--- b/debian/patches/series	2016-08-18 17:36:45.740790202 +0100
@@ -1 +1,2 @@
 0001-Use-global-autoload.php.patch
+0002-Reproducible-build.patch


More information about the pkg-php-pear mailing list