File reproducible.patch of Package python-qscintilla-qt4
https://www.riverbankcomputing.com/pipermail/qscintilla/2018-November/001349.html
From: "Bernhard M. Wiedemann" <bwiedemann@suse.de>
Date: Sun, 11 Jun 2017 05:10:57 +0000
Subject: [PATCH] Sort input file list
Sort input file list
so that Qsci.so builds in a reproducible way
in spite of indeterministic filesystem readdir order
See https://reproducible-builds.org/ for why this is good.
Without this patch, openSUSE's python-qscintilla-qt5 package
varied for every build.
On this topic: https://bugzilla.opensuse.org/show_bug.cgi?id=1041090
Index: QScintilla_gpl-2.10/Python/configure.py
===================================================================
--- QScintilla_gpl-2.10.orig/Python/configure.py
+++ QScintilla_gpl-2.10/Python/configure.py
@@ -1544,7 +1544,7 @@ macx {
pro.write('HEADERS = sipAPI%s.h\n' % mname)
pro.write('SOURCES =')
- for s in os.listdir(module_config.name):
+ for s in sorted(os.listdir(module_config.name)):
if s.endswith('.cpp'):
pro.write(' \\\n %s' % s)
pro.write('\n')