[libglib-perl] 01/03: Glib::GenPod: honour SOURCE_DATE_EPOCH for embedded timestamp, if it is set, for build reproducibility of reverse build-dependencies, such as libgoo-canvas-perl.

Intrigeri intrigeri at moszumanska.debian.org
Sun Jun 26 18:47:18 UTC 2016


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

intrigeri pushed a commit to branch master
in repository libglib-perl.

commit 050ad3011fa3438e43c8d93842410074691a6c83
Author: intrigeri <intrigeri at boum.org>
Date:   Sun Jun 26 18:22:46 2016 +0000

    Glib::GenPod: honour SOURCE_DATE_EPOCH for embedded timestamp, if it is set, for build reproducibility of reverse build-dependencies, such as libgoo-canvas-perl.
---
 ...ur-SOURCE_DATE_EPOCH-for-embedded-timesta.patch | 25 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 26 insertions(+)

diff --git a/debian/patches/Glib-GenPod-honour-SOURCE_DATE_EPOCH-for-embedded-timesta.patch b/debian/patches/Glib-GenPod-honour-SOURCE_DATE_EPOCH-for-embedded-timesta.patch
new file mode 100644
index 0000000..a2c4011
--- /dev/null
+++ b/debian/patches/Glib-GenPod-honour-SOURCE_DATE_EPOCH-for-embedded-timesta.patch
@@ -0,0 +1,25 @@
+From: intrigeri <intrigeri at boum.org>
+Date: Sun, 26 Jun 2016 18:20:15 +0000
+Subject: Glib::GenPod: honour SOURCE_DATE_EPOCH for embedded timestamp,
+ if it is set, for build reproducibility of reverse build-dependencies.
+
+https://tests.reproducible-builds.org/debian/dbd/unstable/amd64/libgoo-canvas-perl_0.06-2.diffoscope.html
+is one isolated example of the build output non-determinism depending on
+the build time.
+---
+ lib/Glib/GenPod.pm | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/Glib/GenPod.pm b/lib/Glib/GenPod.pm
+index 047f622..3171bb5 100644
+--- a/lib/Glib/GenPod.pm
++++ b/lib/Glib/GenPod.pm
+@@ -40,7 +40,7 @@ our @EXPORT = qw(
+ our $COPYRIGHT = undef;
+ our $AUTHORS = 'Gtk2-Perl Team';
+ our $MAIN_MOD = undef;
+-our $YEAR = strftime "%Y", gmtime;
++our $YEAR = strftime "%Y", gmtime($ENV{SOURCE_DATE_EPOCH} || time);
+ 
+ our ($xspods, $data);
+ 	
diff --git a/debian/patches/series b/debian/patches/series
index ffc1ed9..7338165 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 remove-version-checking
 Add-missing-information-to-POD.patch
 Fix-typos-in-POD.patch
+Glib-GenPod-honour-SOURCE_DATE_EPOCH-for-embedded-timesta.patch

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



More information about the Pkg-perl-cvs-commits mailing list