[Reproducible-commits] [perl] 06/06: Use gmtime instead of localtime. (Closes: #780259)

Jérémy Bobbio lunar at moszumanska.debian.org
Tue Apr 7 11:47:14 UTC 2015


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch pu/reproducible_builds
in repository perl.

commit ed32a316e041df858f532a7776bfa56460fa014e
Author: Holger Levsen <holger at layer-acht.org>
Date:   Thu Mar 12 00:44:44 2015 +0100

    Use gmtime instead of localtime. (Closes: #780259)
    
    Thanks to Chris Lamb for the patch!
---
 cpan/podlators/lib/Pod/Man.pm                      |  2 +-
 debian/changelog                                   |  8 +++++++
 ...mtime-instead-of-localtime.-Closes-780259.patch | 26 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 4 files changed, 36 insertions(+), 1 deletion(-)

diff --git a/cpan/podlators/lib/Pod/Man.pm b/cpan/podlators/lib/Pod/Man.pm
index 0536662..c3ba201 100644
--- a/cpan/podlators/lib/Pod/Man.pm
+++ b/cpan/podlators/lib/Pod/Man.pm
@@ -910,7 +910,7 @@ sub devise_date {
 
     # Can't use POSIX::strftime(), which uses Fcntl, because MakeMaker uses
     # this and it has to work in the core which can't load dynamic libraries.
-    my ($year, $month, $day) = (localtime($time))[5,4,3];
+    my ($year, $month, $day) = (gmtime($time))[5,4,3];
     return sprintf("%04d-%02d-%02d", $year + 1900, $month + 1, $day);
 }
 
diff --git a/debian/changelog b/debian/changelog
index 2c1cc6c..d13c52f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+perl (5.20.2-3.0~reproducible1) UNRELEASED; urgency=low
+
+  [ Holger Levsen ]
+  * Use gmtime instead of localtime. (Closes: #780259)
+    Thanks to Chris Lamb for the patch!
+
+ -- Jérémy Bobbio <lunar at debian.org>  Tue, 07 Apr 2015 11:49:11 +0200
+
 perl (5.20.2-3) unstable; urgency=medium
 
   * Improve the error message when a path is inaccessible during
diff --git a/debian/patches/debian/0001-use-gmtime-instead-of-localtime.-Closes-780259.patch b/debian/patches/debian/0001-use-gmtime-instead-of-localtime.-Closes-780259.patch
new file mode 100644
index 0000000..124e6d8
--- /dev/null
+++ b/debian/patches/debian/0001-use-gmtime-instead-of-localtime.-Closes-780259.patch
@@ -0,0 +1,26 @@
+From 32c6e11d40c9cf7f1cd0f4320099b04e11030d9a Mon Sep 17 00:00:00 2001
+From: Holger Levsen <holger at layer-acht.org>
+Date: Thu, 12 Mar 2015 00:24:05 +0100
+Subject: [PATCH] use gmtime instead of localtime. (Closes: #780259)
+
+Thanks to Chris Lamb for the patch!
+---
+ cpan/podlators/lib/Pod/Man.pm | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/cpan/podlators/lib/Pod/Man.pm b/cpan/podlators/lib/Pod/Man.pm
+index 0536662..c3ba201 100644
+--- a/cpan/podlators/lib/Pod/Man.pm
++++ b/cpan/podlators/lib/Pod/Man.pm
+@@ -910,7 +910,7 @@ sub devise_date {
+ 
+     # Can't use POSIX::strftime(), which uses Fcntl, because MakeMaker uses
+     # this and it has to work in the core which can't load dynamic libraries.
+-    my ($year, $month, $day) = (localtime($time))[5,4,3];
++    my ($year, $month, $day) = (gmtime($time))[5,4,3];
+     return sprintf("%04d-%02d-%02d", $year + 1900, $month + 1, $day);
+ }
+ 
+-- 
+1.9.1
+
diff --git a/debian/patches/series b/debian/patches/series
index 6e530be..ed1f446 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -38,3 +38,4 @@ fixes/socket_test_recv_fix.diff
 fixes/hurd_socket_recv_todo.diff
 fixes/regexp-performance.diff
 fixes/failed_require_diagnostics.diff
+debian/0001-use-gmtime-instead-of-localtime.-Closes-780259.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/perl.git



More information about the Reproducible-commits mailing list