[guiqwt] 01/04: reproducible

Frédéric-Emmanuel Picca picca at moszumanska.debian.org
Sun Aug 21 08:24:24 UTC 2016


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

picca pushed a commit to branch master
in repository guiqwt.

commit df41bccea2906b845dea2d495b933e152756cb58
Author: Picca Frédéric-Emmanuel <picca at debian.org>
Date:   Sun Aug 21 08:56:25 2016 +0200

    reproducible
---
 ...ild-reproducible-by-supporting-SOURCE_DAT.patch | 24 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 25 insertions(+)

diff --git a/debian/patches/0001-make-the-build-reproducible-by-supporting-SOURCE_DAT.patch b/debian/patches/0001-make-the-build-reproducible-by-supporting-SOURCE_DAT.patch
new file mode 100644
index 0000000..1f4989d
--- /dev/null
+++ b/debian/patches/0001-make-the-build-reproducible-by-supporting-SOURCE_DAT.patch
@@ -0,0 +1,24 @@
+From: =?utf-8?q?Picca_Fr=C3=A9d=C3=A9ric-Emmanuel?= <picca at debian.org>
+Date: Sun, 21 Aug 2016 08:56:01 +0200
+Subject: make the build reproducible by supporting SOURCE_DATE_EPOCH
+
+---
+ doc/conf.py | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/doc/conf.py b/doc/conf.py
+index ebb5e52..a2a55a9 100644
+--- a/doc/conf.py
++++ b/doc/conf.py
+@@ -45,8 +45,10 @@ master_doc = 'index'
+ 
+ # General information about the project.
+ project = 'guiqwt'
++import os
+ import time
+-this_year = time.strftime("%Y", time.localtime())
++import datetime
++this_year = datetime.datetime.utcfromtimestamp(int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))).strftime("%Y")
+ copyright = "2009-%s, CEA - Commissariat à l'Energie Atomique et aux Energies Alternatives" % this_year
+ 
+ # The version info for the project you're documenting, acts as replacement for
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..4e996d1
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-make-the-build-reproducible-by-supporting-SOURCE_DAT.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/guiqwt.git



More information about the debian-science-commits mailing list