Source: cdbs
Version: 0.4.130
Severity: wishlist
Tags: patch
Usertags: timestamps


The Debian reproducible builds team [1] recently proposed a new
environment variable $SOURCE_DATE_EPOCH to be used by packages to
produce reproducible timestamps (for example in documentation) [2].

This environment variable is currently being exported by debhelper from
our experimental git repository which we have patched such that packages
using dh (debhelper >= 9) in debian/rules become automatically reproducible.

The patch to debhelper does not affect packages which use cdbs as their
build system. Therefore I propose the attached patch which makes cdbs

A version of cdbs with this patch is currently being used in the
reproducible builds git repository and it has been successful at making
a package become reproducible.

This bug is in addition to this other bug from the reproducible builds team:

Kind Regards,

diff --git a/1/rules/ b/1/rules/
index 2aec68d..7be6d72 100644
--- a/1/rules/
+++ b/1/rules/
@@ -75,6 +75,8 @@
 #   Completely override argument passing to dh_perl.
+export SOURCE_DATE_EPOCH = $(shell date -d "$$(dpkg-parsechangelog --count 1 -SDate)" +%s)
 ifndef _cdbs_rules_debhelper
diff --git a/debian/changelog b/debian/changelog
index be3a7ed..5b10c15 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+cdbs ( UNRELEASED; urgency=medium
+  * Export environment variable $SOURCE_DATE_EPOCH to produce reproducible
+    output 
+ -- akira <>  Wed, 29 Jul 2015 16:07:07 +0200
 cdbs ( UNRELEASED; urgency=medium
   * Remove call of dh_fixmtimes, which is now part of dh_builddeb.

Attachment: signature.asc
Description: OpenPGP digital signature

Reproducible-builds mailing list

Reply via email to