Source: 389-ds-base
Version: 1.3.3.12-1
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi,

While working on the "reproducible builds" effort [0], we have noticed
that 389-ds-base could not be built reproducibly.

The attached patch removes build timestamps from the build system.
Once applied, 389-ds-base can be built reproducibly in our
reproducible toolchain.

 [0] https://wiki.debian.org/ReproducibleBuilds


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/patches/reproducible-build.diff    1970-01-01 01:00:00.000000000 
+0100
--- b/debian/patches/reproducible-build.diff    2015-09-14 22:46:01.812207966 
+0100
@@ -0,0 +1,11 @@
+--- 389-ds-base-1.3.3.12.orig/buildnum.pl
++++ 389-ds-base-1.3.3.12/buildnum.pl
+@@ -60,7 +60,7 @@ if ($opt_H) {exitHelp();}
+ $platdir = $opt_p;
+ 
+ # Get current time
+-@now = gmtime;
++@now = gmtime ($ENV{SOURCE_DATE_EPOCH} || time);
+ 
+ # Format buildnum as YYYY.DDD.HHMM
+ $year = $now[5] + 1900;
--- a/debian/patches/series     2015-09-14 21:52:54.516709394 +0100
--- b/debian/patches/series     2015-09-14 22:45:58.480179728 +0100
@@ -6,3 +6,4 @@
 support-kfreebsd.patch
 fix-obsolete-target.diff
 fix-saslpath.diff
+reproducible-build.diff
_______________________________________________
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