Source: phpab
Version: 1.21.0-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 phpab 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/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 <la...@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
_______________________________________________
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