Package: ricochet
Version: 4.0+nmu1
User: reproducible-bui...@lists.alioth.debian.org
Usertags: timestamps
Tags: patch

Ricochet appears to be entirely reproducible with the exception of the
build date being embedded in the manpage.

https://reproducible.debian.net/rb-pkg/unstable/amd64/ricochet.html

The attached patch should resolve the issue with the manpage, making the
package reproducible.

I can NMU if you like, please let me know.

Regards,

        --dkg

>From 83595c887f3b9bb74fabe684bdc9fd746e385c2b Mon Sep 17 00:00:00 2001
From: Daniel Kahn Gillmor <d...@fifthhorseman.net>
Date: Wed, 3 Jun 2015 18:39:25 -0400
Subject: [PATCH] make manpage dates match debian/changelog date

This makes the ricochet package reproducible.
---
 configure    | 4 +++-
 configure.ac | 4 +++-
 debian/rules | 5 ++++-
 3 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/configure b/configure
index 7175f54..3495cc5 100755
--- a/configure
+++ b/configure
@@ -2389,7 +2389,9 @@ fi
 
 
 
-BUILD_DATE=`date +%F`
+if test x$BUILD_DATE = x; then
+	BUILD_DATE=`date +%F`
+fi
 
 
 
diff --git a/configure.ac b/configure.ac
index 24e1e9d..4263e2d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -49,7 +49,9 @@ fi
 
 AC_SUBST(MAN_SECTION)
 
-BUILD_DATE=`date +%F`
+if test x$BUILD_DATE = x; then
+	BUILD_DATE=`date +%F`
+fi
 
 AC_SUBST(BUILD_DATE)
 
diff --git a/debian/rules b/debian/rules
index 19a4399..11c7b2e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,10 +9,13 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+BUILD_DATE=$(shell dpkg-parsechangelog -S Date | LC_ALL=C date -u "+%F" -f -)
+export BUILD_DATE
+
 configure_flags = --bindir=/usr/games --enable-gameman
 
 %:
 	dh $@  --with autotools-dev
 
 override_dh_auto_configure:
-	dh_auto_configure -- $(configure_flags)
\ No newline at end of file
+	dh_auto_configure -- $(configure_flags)
-- 
2.1.4

Reply via email to