Package: cloc Version: 1.60-1 User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps Tags: patch
Hi there-- cloc currently embeds the build date in the manpage. This makes it hard to build reproducibly: https://reproducible.debian.net/dbd/unstable/amd64/cloc_1.60-1.debbindiff.htmlhttps://reproducible.debian.net/dbd/unstable/amd64/cloc_1.60-1.debbindiff.html The attached patch to the build system should fix that. Thanks for maintaining cloc in debian, --dkg
>From 26fe1a3150f91c4c8ccc226bee795bc567fc8b97 Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor <d...@fifthhorseman.net> Date: Wed, 3 Jun 2015 18:23:43 -0400 Subject: [PATCH] avoid embedding build date in manpage The man page for cloc normally gets the current build time embedded in it. This change forces us to regenerate the manpage each time from the preferred form of modification, and embeds the timestamp from the last debian revision. --- debian/rules | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/debian/rules b/debian/rules index 496b0fc..d8d85f4 100755 --- a/debian/rules +++ b/debian/rules @@ -6,6 +6,9 @@ BINDIR = debian/$(PACKAGE)/usr/bin DOCDIR = debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)/doc CHANGELOG = debian/upstream.changelog +PODDATE=$(shell dpkg-parsechangelog -S Date | LC_ALL=C date -u "+%Y-%m-%d" -f -) +export PODDATE + # Run manaually to get an update get-changelog: svn log https://svn.code.sf.net/p/cloc/code | \ @@ -13,8 +16,8 @@ get-changelog: > $(CHANGELOG) override_dh_auto_build: - # If packaged directly from upstream VCS tree - [ -f $(PACKAGE).1 ] || $(MAKE) man + rm -f $(PACKAGE).1 + $(MAKE) man override_dh_auto_install: install -D -m 755 $(BIN) $(BINDIR)/$(PACKAGE) -- 2.1.4