Bug#845055: markdown: please make the output reproducible

2016-11-20 Thread Chris Lamb
Dear Matt,

> Thank you for the report and patch!  I've uploaded a new version of
> the package.

Thank you for the quick turnaround :)


Regards,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-



Bug#845055: markdown: please make the output reproducible

2016-11-19 Thread Matt Kraai
Hi,

On Sat, Nov 19, 2016 at 10:48:56PM +0100, Chris Lamb wrote:
> Whilst working on the Reproducible Builds effort [0], we noticed
> that markdown generates non-reproducible output.
> 
> Patch attached.

Thank you for the report and patch!  I've uploaded a new version of
the package.

-- 
Matt   https://ftbfs.org/~kraai/



Bug#845055: markdown: please make the output reproducible

2016-11-19 Thread Chris Lamb
Source: markdown
Version: 1.0.1-8
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: randomness toolchain
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed
that markdown generates non-reproducible output.

Patch attached.

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


Regards,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-
diff --git a/Markdown.pl b/Markdown.pl
index cc52c66..9264381 100755
--- a/Markdown.pl
+++ b/Markdown.pl
@@ -1208,7 +1208,7 @@ sub _EncodeEmailAddress {
 
my $addr = shift;
 
-   srand;
+   srand ($ENV{SOURCE_DATE_EPOCH} || time);
my @encode = (
sub { '