Bug#840143: mypy: please make the build reproducible

Chris Lamb lamby at debian.org
Sat Oct 8 19:47:17 UTC 2016


Source: mypy
Version: 0.4.5-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: randomness
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed
that mypy 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	1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/reproducible-build	2016-10-08 20:40:39.850818707 +0100
@@ -0,0 +1,15 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2016-10-08
+
+--- mypy-0.4.5.orig/mypy/main.py
++++ mypy-0.4.5/mypy/main.py
+@@ -220,7 +220,7 @@ def process_options(args: List[str],
+     report_group = parser.add_argument_group(
+         title='report generation',
+         description='Generate a report in the specified format.')
+-    for report_type in reporter_classes:
++    for report_type in sorted(reporter_classes):
+         report_group.add_argument('--%s-report' % report_type.replace('_', '-'),
+                                   metavar='DIR',
+                                   dest='special-opts:%s_report' % report_type)
--- a/debian/patches/series	2016-10-08 20:10:45.393077994 +0100
--- b/debian/patches/series	2016-10-08 20:40:19.622573108 +0100
@@ -1 +1,2 @@
 amend-runner
+reproducible-build


More information about the Reproducible-builds mailing list