Source: vine Version: 1.1.3+dfsg-2 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: randomness X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
Hi, Whilst working on the Reproducible Builds effort [0], we noticed that vine could not be built reproducibly. Patch attached. [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
--- a/debian/patches/0002-Reproducible-build.patch 1970-01-01 01:00:00.000000000 +0100 --- b/debian/patches/0002-Reproducible-build.patch 2017-03-28 19:34:19.772697779 +0100 @@ -0,0 +1,24 @@ +Description: Make the build reproducible +Author: Chris Lamb <la...@debian.org> +Last-Update: 2017-03-28 + +--- vine-1.1.3+dfsg.orig/vine/five.py ++++ vine-1.1.3+dfsg/vine/five.py +@@ -236,7 +236,7 @@ else: + exec_("""def reraise(tp, value, tb=None): raise tp, value, tb""") + + +-def with_metaclass(Type, skip_attrs={'__dict__', '__weakref__'}): ++def with_metaclass(Type, skip_attrs=None): + """Class decorator to set metaclass. + + Works with both Python 2 and Python 3 and it does not add +@@ -244,6 +244,8 @@ def with_metaclass(Type, skip_attrs={'__ + (that is -- it copies the original class instead of using inheritance). + + """ ++ if skip_attrs is None: ++ skip_attrs = {'__dict__', '__weakref__'} + def _clone_with_metaclass(Class): + attrs = {key: value for key, value in items(vars(Class)) + if key not in skip_attrs} --- a/debian/patches/series 2017-03-28 19:30:13.971932688 +0100 --- b/debian/patches/series 2017-03-28 19:34:18.320693227 +0100 @@ -1 +1,2 @@ 0001-Remove-image-from-remote-donation-site-privacy-issue.patch +0002-Reproducible-build.patch