[Reproducible-commits] [txt2man] 13/13: Added patch to honour SOURCE_DATE_EPOCH

Reiner Herrmann reiner at reiner-h.de
Thu Jul 2 16:52:20 UTC 2015


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

deki-guest pushed a commit to branch pu/reproducible_builds
in repository txt2man.

commit 75755a0cf9bba6f629443e1bafe9b034afad3ca6
Author: Reiner Herrmann <reiner at reiner-h.de>
Date:   Thu Jul 2 18:46:56 2015 +0200

    Added patch to honour SOURCE_DATE_EPOCH
---
 debian/changelog                 |  7 +++++++
 debian/patches/reproducible-date | 23 +++++++++++++++++++++++
 debian/patches/series            |  1 +
 3 files changed, 31 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index db9fa44..c775553 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+txt2man (1.5.6-3~reproducible1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Added patch to honour SOURCE_DATE_EPOCH.
+
+ -- Reiner Herrmann <reiner at reiner-h.de>  Thu, 02 Jul 2015 18:41:39 +0200
+
 txt2man (1.5.6-3) unstable; urgency=medium
 
   * Upload to unstable. Welcome Jessie Stable!
diff --git a/debian/patches/reproducible-date b/debian/patches/reproducible-date
new file mode 100644
index 0000000..f404281
--- /dev/null
+++ b/debian/patches/reproducible-date
@@ -0,0 +1,23 @@
+Author: Reiner Herrmann <reiner at reiner-h.de>
+Description: Honour SOURCE_DATE_EPOCH if available
+ Using the current date for timestamps will produce unreproducible
+ manpages. If the environment variable SOURCE_DATE_EPOCH is set,
+ as proposed by the Reproducible Builds effort [1], a deterministic
+ timestamp is avilable that can be used to embed dates.
+
+ [1]: https://wiki.debian.org/ReproducibleBuilds/TimestampsProposal
+
+Index: txt2man-1.5.6/txt2man
+===================================================================
+--- txt2man-1.5.6.orig/txt2man
++++ txt2man-1.5.6/txt2man
+@@ -145,7 +145,8 @@ do
+ 	esac
+ done
+ shift $(($OPTIND - 1))
+-date=${date:-$(date +'%d %B %Y')}
++date_arg="-d @${SOURCE_DATE_EPOCH:-$(date +%s)}"
++date=${date:-$(LC_ALL=C date -u +'%d %B %Y' $date_arg)}
+ 
+ if test "$doprobe"
+ then
diff --git a/debian/patches/series b/debian/patches/series
index f8bb28f..a0943fc 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ fix-path-hyphen
 fix-bashisms
 fix-pager-option
 fix-spelling-hyphen
+reproducible-date

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



More information about the Reproducible-commits mailing list