File: 0002-Reproducible-build.patch

package info (click to toggle)
phpab 1.25.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 768 kB
  • sloc: php: 3,227; xml: 257; makefile: 29
file content (21 lines) | stat: -rw-r--r-- 741 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Chris Lamb <lamby@debian.org>
Date: Thu, 18 Aug 2016 17:46:15 +0100
Subject: Make the build reproducibe

---
 src/Version.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Version.php b/src/Version.php
index a9f84f8..73bc8bc 100644
--- a/src/Version.php
+++ b/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 and Contributors';
+            return 'phpab ' . self::getVersion() . ' - Copyright (C) 2009 - ' . date('Y', getenv('SOURCE_DATE_EPOCH') ?: time()) . ' by Arne Blankerts and Contributors';
         }
 
     }