[Reproducible-builds] Bug#762622: discount: please mangle email addresses deterministically

Jérémy Bobbio lunar at debian.org
Tue Sep 23 19:51:07 UTC 2014


Package: discount
Version: 2.1.7-1
Severity: wishlist
Tags: patches
Forwarded: https://github.com/Orc/discount/pull/112
User: reproducible-builds at lists.alioth.debian.org
Usertags: randomness

Hi!

As part of the “reproducible builds” project [1], we have identified
that currently discount output was not deterministic when the Markdown
source contained email addresses.

Some Debian packages use discount to generate their documentation. This
causes different builds of these packages to be different.

We assume that the current behavior of randomly choosing between hex and
decimal encoding for email addresses is intended to defeat email
scrapers that understand one encoding but not the other. Could discount
instead alternate every other character between hex and decimal? This
would accomplish the same effect but in a deterministic manner.

The attached patch changes the `mangle()` function accordingly. It has
already been submitted upstream.

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

-- 
Lunar                                .''`. 
lunar at debian.org                    : :Ⓐ  :  # apt-get install anarchism
                                    `. `'` 
                                      `-   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20140923/8de5e9c4/attachment.sig>


More information about the Reproducible-builds mailing list