[Reproducible-builds] Bug#835145: udpcast: please make the build reproducible

Chris Lamb lamby at debian.org
Mon Aug 22 21:59:16 UTC 2016


Source: udpcast
Version: 20120424-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], I noticed
that udpcast could not be built reproducibly.

Patch attached.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/patches/reproducible_build.diff	1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/reproducible_build.diff	2016-08-22 22:55:53.225400230 +0100
@@ -0,0 +1,15 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2016-08-22
+
+--- udpcast-20120424.orig/html2man.pl
++++ udpcast-20120424/html2man.pl
+@@ -122,7 +122,7 @@ if($release eq "") {
+ 	$release = "current";
+ }
+ if($date eq "") {
+-	my @lt = localtime(time);
++	my @lt = gmtime($ENV{SOURCE_DATE_EPOCH} || time);
+ 	$date = sprintf("%s %d, %d", $mons[$lt[4]], $lt[3], 1900+$lt[5]);
+ }
+ 
--- a/debian/patches/series	2016-08-22 22:45:55.992997564 +0100
--- b/debian/patches/series	2016-08-22 22:55:52.037382691 +0100
@@ -1,3 +1,4 @@
 nostrip.diff
 manpage_fixes.diff
 missing_fd_set.diff
+reproducible_build.diff


More information about the Reproducible-builds mailing list