This is an automated email from the git hooks/post-receive script.
firstyear pushed a commit to branch master
in repository 389-ds-base.
commit 219661481e427791fe9d31fb637bc7fceebf6cdb
Author: William Brown <firstyear(a)redhat.com>
Date: Wed Aug 9 09:19:14 2017 +1000
Ticket 49347 - reproducable build numbers
Bug Description: in order to make builds reproducible.
See
https://reproducible-builds.org/ for why this is good
and
https://reproducible-builds.org/specs/source-date-epoch/
for the definition of this variable.
Fix Description: Add the environment valiable as requested for
reproducable builds.
https://pagure.io/389-ds-base/issue/49347
Author: Bernhard M. Wiedemann
Review by: wibrown
---
buildnum.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/buildnum.pl b/buildnum.pl
index 6d8804f..8db83da 100755
--- a/buildnum.pl
+++ b/buildnum.pl
@@ -31,7 +31,7 @@ if ($opt_H) {exitHelp();}
$platdir = $opt_p;
# Get current time
-@now = gmtime;
+@now = gmtime($ENV{SOURCE_DATE_EPOCH} || time);
# Format buildnum as YYYY.DDD.HHMM
$year = $now[5] + 1900;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.