Source: init-system-helpers
Version: 1.22
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps

Hi!

While working on the “reproducible builds” effort [1], we have noticed
that init-system-helpers could not be built reproducibly.

The attached patch — based on Git master — set the date for the manpages
date using the latest debian/changelog entry.

Once applied, init-system-helpers can be built reproducibly in our
current experimental framework.

-- 
Lunar                                .''`. 
lu...@debian.org                    : :Ⓐ  :  # apt-get install anarchism
                                    `. `'` 
                                      `-   
From 60bfa66e36ce8f405e1250d3cd6bd02fd8244e0d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Bobbio?= <lu...@debian.org>
Date: Sat, 18 Apr 2015 22:52:17 +0200
Subject: [PATCH] Make the package build reproducibly

Set the date for the manpages from the latest debian/changelog entry.
---
 debian/changelog | 4 ++++
 debian/rules     | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 70569c9..00a1b32 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -25,6 +25,10 @@ init-system-helpers (1.23) UNRELEASED; urgency=medium
   * Bump Standards-Version to 3.9.6 (no changes necessary).
   * debian/copyright: Fix short license name for BSD-3-clause.
 
+  [ Jérémy Bobbio ]
+  * Make the package build reproducibly by using latest entry in
+    debian/changelog to set the manpages date.
+
  -- Didier Roche <didro...@ubuntu.com>  Fri, 07 Nov 2014 15:01:27 +0100
 
 init-system-helpers (1.22) unstable; urgency=medium
diff --git a/debian/rules b/debian/rules
index 8f307a1..da603c0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,6 +9,10 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+BUILD_DATE = $(shell dpkg-parsechangelog -S Date)
+POD_MAN_DATE = $(shell date -u +"%Y-%m-%d" --date="$(BUILD_DATE)")
+export POD_MAN_DATE
+
 override_dh_perl:
 	dh_perl -d --package=init-system-helpers
 	dh_perl --no-package=init-system-helpers
-- 
1.9.1

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to