Source: python-bleach Version: 3.1.0-1 Severity: wishlist Tags: patch User: [email protected] Usertags: randomness X-Debbugs-Cc: [email protected]
Hi, Whilst working on the Reproducible Builds effort [0] we noticed that python-bleach could not be built reproducibly. This is because the documentation included a default arguments that was (originally) generated from a "frozenset" type which are iterated over at runtime in a nondeterministic order. Patch attached. [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` [email protected] / chris-lamb.co.uk `-
--- a/debian/patches/0003-reproducible_build.patch 1970-01-01 01:00:00.000000000 +0100 --- b/debian/patches/0003-reproducible_build.patch 2019-08-07 09:24:23.478886645 +0100 @@ -0,0 +1,15 @@ +Description: Make the build reproducible +Author: Chris Lamb <[email protected]> +Last-Update: 2019-08-07 + +--- python-bleach-3.1.0.orig/bleach/linkifier.py ++++ python-bleach-3.1.0/bleach/linkifier.py +@@ -49,7 +49,7 @@ def build_url_re(tlds=TLDS, protocols=ht + (?:[/?][^\s\{{\}}\|\\\^\[\]`<>"]*)? + # /path/zz (excluding "unsafe" chars from RFC 1738, + # except for # and ~, which happen in practice) +- """.format('|'.join(protocols), '|'.join(tlds)), ++ """.format('|'.join(sorted(protocols)), '|'.join(sorted(tlds))), + re.IGNORECASE | re.VERBOSE | re.UNICODE) + + --- a/debian/patches/series 2019-08-07 09:15:44.021885792 +0100 --- b/debian/patches/series 2019-08-07 09:24:21.370708546 +0100 @@ -1,2 +1,3 @@ 0001-remove-privacy-breach.patch 0002-no_vendored_html5lib.patch +0003-reproducible_build.patch
_______________________________________________ Python-modules-team mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/python-modules-team
