From: Debian 389ds Team Date: Wed, 10 May 2017 06:25:03 +0000 (+0100) Subject: reproducible-build X-Git-Tag: archive/raspbian/1.4.0.19-3+rpi1~1^2^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=db9357e7c08ca7eb86a010f537d4ab8a5a1e3063;p=389-ds-base.git reproducible-build Gbp-Pq: Name reproducible-build.diff --- diff --git a/buildnum.pl b/buildnum.pl index 6d8804f..f5e7f3e 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;