[libur-perl] 01/02: Honour-SOURCE_DATE_EPOCH-for-embedded-timestamp-in-genera.patch: output build time in UTC, for build reproducibility.
Intrigeri
intrigeri at moszumanska.debian.org
Thu Jun 30 15:25:13 UTC 2016
This is an automated email from the git hooks/post-receive script.
intrigeri pushed a commit to branch master
in repository libur-perl.
commit 1dc06c5532d47eafeb19dcd9a9303e5d858622d6
Author: intrigeri <intrigeri at boum.org>
Date: Thu Jun 30 14:47:24 2016 +0000
Honour-SOURCE_DATE_EPOCH-for-embedded-timestamp-in-genera.patch: output build time in UTC, for build reproducibility.
---
...r-SOURCE_DATE_EPOCH-for-embedded-timestamp-in-genera.patch | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/debian/patches/Honour-SOURCE_DATE_EPOCH-for-embedded-timestamp-in-genera.patch b/debian/patches/Honour-SOURCE_DATE_EPOCH-for-embedded-timestamp-in-genera.patch
index 09e30d3..87fa7f0 100644
--- a/debian/patches/Honour-SOURCE_DATE_EPOCH-for-embedded-timestamp-in-genera.patch
+++ b/debian/patches/Honour-SOURCE_DATE_EPOCH-for-embedded-timestamp-in-genera.patch
@@ -13,8 +13,8 @@ In the case it is not defined, fall back to current time.
---
lib/Command/V1.pm | 2 +-
lib/Command/View/DocMethods.pm | 2 +-
- lib/UR/Context.pm | 7 +++++++
- 3 files changed, 9 insertions(+), 2 deletions(-)
+ lib/UR/Context.pm | 8 ++++++++
+ 3 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/lib/Command/V1.pm b/lib/Command/V1.pm
index 6a6a3b3..b5d6c07 100644
@@ -43,17 +43,18 @@ index afb55d4..e87279d 100644
push(@sections, UR::Doc::Section->create(
diff --git a/lib/UR/Context.pm b/lib/UR/Context.pm
-index 840f127..ba20df7 100644
+index 840f127..2d1036e 100644
--- a/lib/UR/Context.pm
+++ b/lib/UR/Context.pm
-@@ -113,6 +113,13 @@ sub now {
+@@ -113,6 +113,14 @@ sub now {
return Date::Format::time2str(date_template(), time());
}
+sub build_time {
+ return Date::Format::time2str(
+ date_template(),
-+ $ENV{SOURCE_DATE_EPOCH} || time()
++ $ENV{SOURCE_DATE_EPOCH} || time(),
++ 'UTC'
+ );
+}
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libur-perl.git
More information about the Pkg-perl-cvs-commits
mailing list