Package: pyqt5-dev-tools
Version: 5.7+dfsg-5+b1
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: randomness

Hello.

I noticed that the python files generated by pyrcc5 are not reproducible.

I attached a patch to set the seed of QHash, which is used by the cpp part of 
pyrcc. This removes the randomness out of QHash, so generating the same 
resource file twice gives identical files.
Description: Make the build reproducible
Author: Federico Brega <charon...@gmail.com>
Last-Update: 2017-08-15

--- a/qpy/pyrcc/rcc.h
+++ b/qpy/pyrcc/rcc.h
@@ -124,6 +124,7 @@
     mCompressLevel = -1;
     mCompressThreshold = 70;
     mTreeOffset = mNamesOffset = mDataOffset = 0;
+    qSetGlobalQHashSeed(0);
 }
 
 struct RCCFileInfo
_______________________________________________
Python-modules-team mailing list
Python-modules-team@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to